Codeforces Beta Round 99 (Div. 1)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
138 Codeforces Beta Round 99 (Div. 1) FINISHED False 7200 407095199 Dec. 24, 2011, noon

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1039 ) B Digits Permutations PROGRAMMING greedy 2200

B"Andrey's favourite number is n. Andrey's friends gave him two identical numbers n as a New Year present. He hung them on a wall and watched them adoringly. Then Andrey got bored from looking at the same number and he started to swap digits first in one, then in the other number, then again in the first number and so on (arbitrary number of changes could be made in each number). At some point it turned out that if we sum the resulting numbers, then the number of zeroes with which the sum will end would be maximum among the possible variants of digit permutations in those numbers. Given number n, can you find the two digit permutations that have this property? The first line contains a positive integer n -- the original number. The number of digits in this number does not exceed 105. The number is written without any leading zeroes. Print two permutations of digits of number n, such that the sum of these numbers ends with the maximum number of zeroes. The permutations can have leading zeroes (if they are present, they all should be printed). The permutations do not have to be different. If there are several answers, print any of them."...

Tutorials

Codeforces Beta Round #99: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
982487 PanZverski B Dec. 24, 2011, 3:01 p.m. OK Delphi TESTS 48 50 1536000 2200
983126 agul B Dec. 24, 2011, 4:20 p.m. OK Delphi TESTS 48 50 1945600 2200
983120 alexander-nsk94 B Dec. 24, 2011, 4:18 p.m. OK Delphi TESTS 48 50 1945600 2200
993330 ruban B Dec. 31, 2011, 6:13 p.m. OK Delphi TESTS 48 50 10854400 2200
984034 Quercitron B Dec. 24, 2011, 8:54 p.m. OK Delphi TESTS 48 60 1740800 2200
981938 Depool B Dec. 24, 2011, 2:34 p.m. OK Delphi TESTS 48 80 3174400 2200
1508914 AleksanderBalobanov B April 10, 2012, 2:50 p.m. OK Delphi TESTS 48 520 1331200 2200
1238991 object022 B Feb. 27, 2012, 12:25 p.m. OK FPC TESTS 48 30 1024000 2200
1353920 Dinomino B March 13, 2012, 6:32 a.m. OK FPC TESTS 48 50 1536000 2200
986929 coolinging B Dec. 26, 2011, 11:11 a.m. OK FPC TESTS 48 50 2150400 2200
980770 alexej B Dec. 24, 2011, 1:43 p.m. OK FPC TESTS 48 50 2252800 2200
980884 Rubanenko B Dec. 24, 2011, 1:45 p.m. OK FPC TESTS 48 50 3072000 2200
978746 Sereja B Dec. 24, 2011, 1:10 p.m. OK FPC TESTS 48 50 6246400 2200
1651428 vlad107 B May 3, 2012, 7:28 p.m. OK FPC TESTS 48 50 7475200 2200
978253 superpear B Dec. 24, 2011, 1:02 p.m. OK FPC TESTS 48 50 9318400 2200
988810 giongto35 B Dec. 27, 2011, 6:54 p.m. OK FPC TESTS 48 90 3276800 2200
982160 Saimon_Saret B Dec. 24, 2011, 2:41 p.m. OK FPC TESTS 48 1530 1638400 2200
3031558 cpy B Jan. 29, 2013, 4:05 a.m. OK GNU C TESTS 48 15 307200 2200
978474 kawatea B Dec. 24, 2011, 1:06 p.m. OK GNU C TESTS 48 30 1638400 2200
977115 eduardische B Dec. 24, 2011, 12:45 p.m. OK GNU C TESTS 48 30 1638400 2200
1045244 mage B Jan. 14, 2012, 1:43 p.m. OK GNU C TESTS 48 30 2252800 2200
982518 Sender B Dec. 24, 2011, 3:05 p.m. OK GNU C TESTS 48 50 2150400 2200
22361407 vjudge5 B Nov. 20, 2016, 11:56 a.m. OK GNU C++ TESTS 48 15 102400 2200
3071110 vjudge4 B Feb. 4, 2013, 2:09 p.m. OK GNU C++ TESTS 48 15 307200 2200
3069342 editor369 B Feb. 4, 2013, 3:25 a.m. OK GNU C++ TESTS 48 15 307200 2200
14536251 vjudge3 B Nov. 28, 2015, 7:12 a.m. OK GNU C++ TESTS 48 15 614400 2200
3081020 woaishizhan B Feb. 7, 2013, 1 p.m. OK GNU C++ TESTS 48 15 614400 2200
14182165 130705009 B Nov. 10, 2015, 9:23 a.m. OK GNU C++ TESTS 48 15 1024000 2200
14477568 AmirAz B Nov. 25, 2015, 6:35 p.m. OK GNU C++ TESTS 48 15 1740800 2200
24079959 plevattbllin B Jan. 23, 2017, 8:08 p.m. OK GNU C++ TESTS 48 15 2048000 2200
17590513 vjudge4 B April 30, 2016, 6:44 a.m. OK GNU C++ TESTS 48 15 2560000 2200
25303587 nihalpi1 B March 6, 2017, 9:31 p.m. OK GNU C++ TESTS 48 15 2662400 2200
4543071 yutaka1999 B Sept. 23, 2013, 2:26 p.m. OK GNU C++0x TESTS 48 30 921600 2200
977418 Andrew_Makar B Dec. 24, 2011, 12:49 p.m. OK GNU C++0x TESTS 48 30 1740800 2200
982894 ronaflx B Dec. 24, 2011, 3:41 p.m. OK GNU C++0x TESTS 48 30 2457600 2200
4098126 lovefly1983 B July 18, 2013, 8:49 a.m. OK GNU C++0x TESTS 48 31 716800 2200
3815821 kraskevich B June 2, 2013, 1:19 p.m. OK GNU C++0x TESTS 48 31 819200 2200
986671 AleksBannikov B Dec. 26, 2011, 7:53 a.m. OK GNU C++0x TESTS 48 50 2969600 2200
977379 package.zaic B Dec. 24, 2011, 12:48 p.m. OK GNU C++0x TESTS 48 50 3891200 2200
6261107 marat.snowbear B April 4, 2014, 10:32 p.m. OK GNU C++0x TESTS 48 60 1228800 2200
6602597 hyoussef B May 12, 2014, 9:33 a.m. OK GNU C++0x TESTS 48 60 1638400 2200
989110 masibonge B Dec. 28, 2011, 2:11 a.m. OK GNU C++0x TESTS 48 60 2252800 2200
18846069 saatwik27 B July 1, 2016, 8:49 p.m. OK GNU C++11 TESTS 48 15 512000 2200
14075541 stefanzzz B Nov. 4, 2015, 7:20 p.m. OK GNU C++11 TESTS 48 15 512000 2200
31866831 The-Legend B Oct. 29, 2017, 12:44 p.m. OK GNU C++11 TESTS 48 15 819200 2200
27205197 Shawkivich B May 18, 2017, 10:21 p.m. OK GNU C++11 TESTS 48 15 1126400 2200
24020591 y_shindoh B Jan. 21, 2017, 11:30 p.m. OK GNU C++11 TESTS 48 15 2150400 2200
33128949 minson123 B Dec. 11, 2017, 5:24 p.m. OK GNU C++11 TESTS 48 15 2252800 2200
19779296 FennecFox B Aug. 11, 2016, 7:50 a.m. OK GNU C++11 TESTS 48 15 2355200 2200
17075185 freebsdx B March 31, 2016, 1:49 p.m. OK GNU C++11 TESTS 48 15 3174400 2200
10522683 Kvark161 B March 30, 2015, 8:30 a.m. OK GNU C++11 TESTS 48 30 614400 2200
24020464 y_shindoh B Jan. 21, 2017, 11:10 p.m. OK GNU C++11 TESTS 48 30 2150400 2200
33860925 Minnakhmetov B Jan. 2, 2018, 9:35 a.m. OK GNU C++14 TESTS 48 15 3481600 2200
27001971 Kerim.K B May 10, 2017, 7:02 p.m. OK GNU C++14 TESTS 48 30 1945600 2200
29967858 andwho B Sept. 1, 2017, 9:25 a.m. OK GNU C++14 TESTS 48 30 2355200 2200
65739081 vjudge4 B Nov. 26, 2019, 9:17 a.m. OK GNU C++14 TESTS 48 31 307200 2200
65739751 vjudge2 B Nov. 26, 2019, 9:35 a.m. OK GNU C++14 TESTS 48 31 409600 2200
59645087 vjudge4 B Aug. 29, 2019, 5:12 a.m. OK GNU C++14 TESTS 48 31 409600 2200
41156654 allvphx B Aug. 3, 2018, 12:39 p.m. OK GNU C++14 TESTS 48 31 512000 2200
42289831 caustique B Aug. 30, 2018, 7:52 p.m. OK GNU C++14 TESTS 48 31 614400 2200
42144826 UncleGrandpa B Aug. 27, 2018, 8:12 a.m. OK GNU C++14 TESTS 48 31 614400 2200
59645459 vjudge5 B Aug. 29, 2019, 5:28 a.m. OK GNU C++14 TESTS 48 31 819200 2200
64788631 iliakruchinin B Nov. 13, 2019, 10:13 a.m. OK GNU C++17 TESTS 48 31 614400 2200
59683501 Malomalomalomalo B Aug. 29, 2019, 10:45 p.m. OK GNU C++17 TESTS 48 31 614400 2200
42094379 ruo B Aug. 25, 2018, 3:10 p.m. OK GNU C++17 TESTS 48 31 614400 2200
59646563 vjudge5 B Aug. 29, 2019, 6:07 a.m. OK GNU C++17 TESTS 48 31 819200 2200
59644658 vjudge2 B Aug. 29, 2019, 4:53 a.m. OK GNU C++17 TESTS 48 31 819200 2200
59643787 vjudge1 B Aug. 29, 2019, 4:15 a.m. OK GNU C++17 TESTS 48 31 921600 2200
49943779 smartnj B Feb. 15, 2019, 11:05 a.m. OK GNU C++17 TESTS 48 31 3174400 2200
62442764 Phortox B Oct. 12, 2019, 8:22 p.m. OK GNU C++17 TESTS 48 46 716800 2200
65739522 BlockChanZJ B Nov. 26, 2019, 9:29 a.m. OK GNU C++17 TESTS 48 46 921600 2200
65739519 vjudge5 B Nov. 26, 2019, 9:29 a.m. OK GNU C++17 TESTS 48 46 921600 2200
979216 bjin B Dec. 24, 2011, 1:17 p.m. OK Haskell TESTS 48 50 3276800 2200
993825 Ahmed_Salama B Jan. 1, 2012, 12:36 p.m. OK Java 6 TESTS 48 110 43315200 2200
977608 shevchen B Dec. 24, 2011, 12:52 p.m. OK Java 6 TESTS 48 110 43315200 2200
988204 ahmad_mamdouh B Dec. 27, 2011, 11:46 a.m. OK Java 6 TESTS 48 110 43417600 2200
983124 anhdt B Dec. 24, 2011, 4:19 p.m. OK Java 6 TESTS 48 110 43417600 2200
981488 Omar.Darwish B Dec. 24, 2011, 1:54 p.m. OK Java 6 TESTS 48 110 43417600 2200
978800 Di735 B Dec. 24, 2011, 1:11 p.m. OK Java 6 TESTS 48 110 43520000 2200
976594 uwi B Dec. 24, 2011, 12:36 p.m. OK Java 6 TESTS 48 130 43315200 2200
979836 Egor B Dec. 24, 2011, 1:27 p.m. OK Java 6 TESTS 48 130 43417600 2200
983129 anhdt B Dec. 24, 2011, 4:21 p.m. OK Java 6 TESTS 48 130 43417600 2200
982911 cyon B Dec. 24, 2011, 3:44 p.m. OK Java 6 TESTS 48 130 43417600 2200
4231249 a.nabil B Aug. 5, 2013, 4:57 a.m. OK Java 7 TESTS 48 218 102400 2200
9596234 AlexFetisov B Jan. 28, 2015, 2:31 a.m. OK Java 8 TESTS 48 248 0 2200
10549702 A.Elahi B April 2, 2015, 10:28 a.m. OK Java 8 TESTS 48 280 0 2200
1235458 NickSerg B Feb. 25, 2012, 9 p.m. OK Mono C# TESTS 48 90 17305600 2200
979712 MRoizner B Dec. 24, 2011, 1:25 p.m. OK Mono C# TESTS 48 130 12902400 2200
12777473 luckyone2014 B Aug. 30, 2015, 1:51 p.m. OK MS C++ TESTS 48 30 307200 2200
6583327 Mikhail_Amirov B May 10, 2014, 3:47 p.m. OK MS C++ TESTS 48 30 307200 2200
980658 Anarivu B Dec. 24, 2011, 1:41 p.m. OK MS C++ TESTS 48 30 1638400 2200
995034 Kenny_HORROR B Jan. 2, 2012, 5:07 p.m. OK MS C++ TESTS 48 30 1638400 2200
994316 ksjuchi B Jan. 1, 2012, 8:36 p.m. OK MS C++ TESTS 48 30 1638400 2200
981951 pfctgeorge B Dec. 24, 2011, 2:35 p.m. OK MS C++ TESTS 48 30 1740800 2200
981579 bharsi B Dec. 24, 2011, 1:55 p.m. OK MS C++ TESTS 48 30 1740800 2200
979957 zjut_DD B Dec. 24, 2011, 1:29 p.m. OK MS C++ TESTS 48 30 1740800 2200
984526 JalbaRu B Dec. 25, 2011, 3:51 a.m. OK MS C++ TESTS 48 30 1740800 2200
985631 mongolrgata B Dec. 25, 2011, 2:12 p.m. OK MS C++ TESTS 48 30 1740800 2200
58512590 CtrlAlt B Aug. 9, 2019, 8 p.m. OK MS C++ 2017 TESTS 48 31 204800 2200
985047 nab B Dec. 25, 2011, 8:50 a.m. OK Python 2 TESTS 48 60 3379200 2200
15914847 not_bot_but_POT B Feb. 9, 2016, 1:54 p.m. OK Python 2 TESTS 48 62 921600 2200
3655114 nealzane B April 30, 2013, 3:28 p.m. OK Python 2 TESTS 48 62 921600 2200
35839081 ______n______ B March 2, 2018, 1:46 p.m. OK Python 2 TESTS 48 62 5529600 2200
35839076 ______u______ B March 2, 2018, 1:46 p.m. OK Python 2 TESTS 48 62 5529600 2200
35838966 _____i_____ B March 2, 2018, 1:44 p.m. OK Python 2 TESTS 48 62 5529600 2200
35838965 _____k_____ B March 2, 2018, 1:44 p.m. OK Python 2 TESTS 48 62 5529600 2200
35834291 ______h______ B March 2, 2018, 11:59 a.m. OK Python 2 TESTS 48 62 5529600 2200
35834280 ______k______ B March 2, 2018, 11:58 a.m. OK Python 2 TESTS 48 62 5529600 2200
35833245 ______i______ B March 2, 2018, 11:10 a.m. OK Python 2 TESTS 48 62 5529600 2200

remove filters

Back to search problems