Codeforces Round 249 (Div. 2)

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
435 Codeforces Round 249 (Div. 2) FINISHED False 7200 336234597 May 30, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7097 ) B Pasha Maximizes PROGRAMMING greedy 1500

B'Pasha has a positive integer a without leading zeroes. Today he decided that the number is too small and he should make it larger. Unfortunately, the only operation Pasha can do is to swap two adjacent decimal digits of the integer. Help Pasha count the maximum number he can get if he has the time to make at most k swaps. The single line contains two integers a and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Print the maximum number that Pasha can get if he makes at most k swaps.'...

Tutorials

Codeforces Round #249 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6786370 izban B June 3, 2014, 9:39 a.m. OK Delphi TESTS 46 15 0 1500
6749198 igor.glushkov B May 30, 2014, 4:51 p.m. OK Delphi TESTS 46 15 102400 1500
6749087 Casio B May 30, 2014, 4:48 p.m. OK Delphi TESTS 46 15 102400 1500
6747418 danildudin B May 30, 2014, 4:23 p.m. OK Delphi TESTS 46 15 102400 1500
6747266 Maestr0 B May 30, 2014, 4:21 p.m. OK Delphi TESTS 46 15 102400 1500
6744612 Al2K B May 30, 2014, 3:53 p.m. OK Delphi TESTS 46 15 102400 1500
7452416 Grossmester B Aug. 15, 2014, 10:38 a.m. OK Delphi TESTS 46 15 102400 1500
6757536 chdn B May 31, 2014, 2:04 p.m. OK Delphi TESTS 46 15 102400 1500
6783501 ZOTAC89 B June 2, 2014, 5:49 p.m. OK Delphi TESTS 46 31 0 1500
8497157 metalopocalipsis B Oct. 31, 2014, 12:18 p.m. OK Delphi TESTS 46 31 102400 1500
6745810 Alstom_Citadis B May 30, 2014, 4:04 p.m. OK FPC TESTS 46 15 0 1500
15850541 GiannisAntetokounmpo B Feb. 6, 2016, 10:36 p.m. OK FPC TESTS 46 15 0 1500
6762689 Duc_cmn_Le B June 1, 2014, 6:42 a.m. OK FPC TESTS 46 15 0 1500
6755746 acoehu B May 31, 2014, 8:04 a.m. OK FPC TESTS 46 15 0 1500
6755601 giabao4498 B May 31, 2014, 7:36 a.m. OK FPC TESTS 46 15 0 1500
6752810 katarina B May 30, 2014, 7:39 p.m. OK FPC TESTS 46 15 0 1500
6750031 dacnguyen2101 B May 30, 2014, 5:06 p.m. OK FPC TESTS 46 15 0 1500
6749157 I_Love_EEvilCatt B May 30, 2014, 4:50 p.m. OK FPC TESTS 46 15 0 1500
6746502 WuHongxun B May 30, 2014, 4:12 p.m. OK FPC TESTS 46 15 0 1500
6746371 pqhuy98 B May 30, 2014, 4:10 p.m. OK FPC TESTS 46 15 0 1500
20469081 rainboy B Sept. 8, 2016, 9:52 p.m. OK GNU C TESTS 46 15 0 1500
20426737 yigezhe B Sept. 7, 2016, 12:02 a.m. OK GNU C TESTS 46 15 0 1500
16225070 ekrem B Feb. 20, 2016, 8:16 a.m. OK GNU C TESTS 46 15 0 1500
12018305 robin_0 B July 12, 2015, 11:37 a.m. OK GNU C TESTS 46 15 0 1500
11383373 optimus___prime B June 1, 2015, 8:37 p.m. OK GNU C TESTS 46 15 0 1500
11020710 ving.xia B May 7, 2015, 12:36 p.m. OK GNU C TESTS 46 15 0 1500
8396787 Geon B Oct. 25, 2014, 1:30 a.m. OK GNU C TESTS 46 15 0 1500
7373704 vjudge5 B Aug. 8, 2014, 6:14 a.m. OK GNU C TESTS 46 15 0 1500
7373681 vjudge2 B Aug. 8, 2014, 6:11 a.m. OK GNU C TESTS 46 15 0 1500
7373644 vjudge5 B Aug. 8, 2014, 6:06 a.m. OK GNU C TESTS 46 15 0 1500
29715667 ziad.khobeiz B Aug. 23, 2017, 7:09 p.m. OK GNU C++ TESTS 46 15 0 1500
26891692 vjudge1 B May 6, 2017, 2:56 a.m. OK GNU C++ TESTS 46 15 0 1500
26891262 vjudge2 B May 6, 2017, 2:13 a.m. OK GNU C++ TESTS 46 15 0 1500
22391385 KingOfWrongAnswer B Nov. 21, 2016, 7:54 p.m. OK GNU C++ TESTS 46 15 0 1500
22187575 vjudge4 B Nov. 13, 2016, 5:56 a.m. OK GNU C++ TESTS 46 15 0 1500
22174636 clcr B Nov. 12, 2016, 8:52 a.m. OK GNU C++ TESTS 46 15 0 1500
21959945 FUCK_YOU_BITCH B Nov. 1, 2016, 7:46 a.m. OK GNU C++ TESTS 46 15 0 1500
21235701 C0derZer0 B Oct. 6, 2016, 1:26 p.m. OK GNU C++ TESTS 46 15 0 1500
20931839 its_like_never_before B Sept. 26, 2016, 6:09 p.m. OK GNU C++ TESTS 46 15 0 1500
20830289 4EJ B Sept. 23, 2016, 4:49 a.m. OK GNU C++ TESTS 46 15 0 1500
9296514 HAEtaRhoEta B Dec. 29, 2014, 8:51 a.m. OK GNU C++0x TESTS 46 15 0 1500
10211297 DimaHv B March 8, 2015, 6:34 p.m. OK GNU C++0x TESTS 46 15 0 1500
9814082 woyeshizuile B Feb. 13, 2015, 7:43 a.m. OK GNU C++0x TESTS 46 15 0 1500
9812822 tariq.khundakji B Feb. 13, 2015, 2:14 a.m. OK GNU C++0x TESTS 46 15 0 1500
9508363 JackieWilshere B Jan. 23, 2015, 6 a.m. OK GNU C++0x TESTS 46 15 0 1500
9446007 urusant B Jan. 16, 2015, 7:38 p.m. OK GNU C++0x TESTS 46 15 0 1500
9349853 justinz2018 B Jan. 3, 2015, 4:18 a.m. OK GNU C++0x TESTS 46 15 0 1500
9083781 Awa149 B Dec. 11, 2014, 4:41 p.m. OK GNU C++0x TESTS 46 15 0 1500
8585589 fcbruce B Nov. 6, 2014, 7:46 a.m. OK GNU C++0x TESTS 46 15 0 1500
8239431 tuna_salad B Oct. 15, 2014, 4:32 p.m. OK GNU C++0x TESTS 46 15 0 1500
15753599 norhh B Feb. 2, 2016, 3:57 p.m. OK GNU C11 TESTS 46 15 0 1500
11896034 mjf B July 2, 2015, 11:12 a.m. OK GNU C11 TESTS 46 30 0 1500
30194268 __timus B Sept. 8, 2017, 3:35 a.m. OK GNU C++11 TESTS 46 15 0 1500
29902632 Black B Aug. 29, 2017, 8:48 p.m. OK GNU C++11 TESTS 46 15 0 1500
29902038 jamnik B Aug. 29, 2017, 8:12 p.m. OK GNU C++11 TESTS 46 15 0 1500
27888042 final_tsu B June 18, 2017, 4:26 p.m. OK GNU C++11 TESTS 46 15 0 1500
27883764 MohamedHamada_ B June 18, 2017, 11:46 a.m. OK GNU C++11 TESTS 46 15 0 1500
27821300 move_on B June 16, 2017, 9:15 a.m. OK GNU C++11 TESTS 46 15 0 1500
27792988 HD_Saleh B June 15, 2017, 12:08 p.m. OK GNU C++11 TESTS 46 15 0 1500
31927613 Heisenberg veronsh73 Anveshc05 B Oct. 31, 2017, 4:37 p.m. OK GNU C++11 TESTS 46 15 0 1500
30946635 RNS_KSB B Oct. 2, 2017, 3:15 p.m. OK GNU C++11 TESTS 46 15 0 1500
32110887 Omar B Nov. 7, 2017, 6:15 a.m. OK GNU C++11 TESTS 46 15 0 1500
40306763 vjudge4 B July 14, 2018, 6:11 a.m. OK GNU C++14 TESTS 46 15 0 1500
39268811 iit2015023 B June 15, 2018, 2:29 p.m. OK GNU C++14 TESTS 46 15 0 1500
32503852 quotitquot B Nov. 20, 2017, 3:12 p.m. OK GNU C++14 TESTS 46 15 0 1500
32128409 shreyansh08 B Nov. 7, 2017, 6:45 p.m. OK GNU C++14 TESTS 46 15 0 1500
32101657 brijeshpanara24 B Nov. 6, 2017, 5:13 p.m. OK GNU C++14 TESTS 46 15 0 1500
32074008 legendary B Nov. 5, 2017, 10:57 a.m. OK GNU C++14 TESTS 46 15 0 1500
31995682 gabriel_M B Nov. 3, 2017, 1:05 a.m. OK GNU C++14 TESTS 46 15 0 1500
31792957 PetitAPetit B Oct. 27, 2017, 11:25 a.m. OK GNU C++14 TESTS 46 15 0 1500
39423215 Ahmed__mohamed B June 19, 2018, 11:04 p.m. OK GNU C++14 TESTS 46 15 0 1500
66522429 Kareem_Khaled B Dec. 9, 2019, 12:40 a.m. OK GNU C++14 TESTS 46 15 0 1500
46914621 mohaned2014 B Dec. 11, 2018, 7:17 p.m. OK GNU C++17 TESTS 46 15 0 1500
44970284 mahmoud_aboeleneen B Oct. 27, 2018, 11:03 p.m. OK GNU C++17 TESTS 46 15 204800 1500
42185980 Ahmedabdalmola B Aug. 27, 2018, 9:20 p.m. OK GNU C++17 TESTS 46 15 204800 1500
35765436 112 B Feb. 27, 2018, 2:25 p.m. OK GNU C++17 TESTS 46 15 1945600 1500
35804473 k24 B March 1, 2018, 7:13 a.m. OK GNU C++17 TESTS 46 15 2048000 1500
53883988 Hitesh2023 B May 8, 2019, 4:44 p.m. OK GNU C++17 TESTS 46 15 3174400 1500
37835956 arbitrary_A B May 2, 2018, 9:58 a.m. OK GNU C++17 TESTS 46 15 3379200 1500
67568260 shimps B Dec. 24, 2019, 8:25 p.m. OK GNU C++17 TESTS 46 30 0 1500
68928837 jogarao B Jan. 16, 2020, 10:53 a.m. OK GNU C++17 TESTS 46 30 0 1500
67986599 Mohamed-Mostafa B Dec. 30, 2019, 11:27 p.m. OK GNU C++17 TESTS 46 30 0 1500
7945979 rizalgow B Sept. 25, 2014, 12:42 p.m. OK Go TESTS 46 30 0 1500
7859430 vjudge1 B Sept. 19, 2014, 10:03 p.m. OK Haskell TESTS 46 15 0 1500
6745448 m2ym B May 30, 2014, 4:01 p.m. OK Haskell TESTS 46 15 0 1500
6756127 ssmike B May 31, 2014, 9:13 a.m. OK Haskell TESTS 46 30 0 1500
6775948 spruett3 B June 1, 2014, 6:06 p.m. OK Haskell TESTS 46 31 0 1500
67139409 rahulmistry33 B Dec. 18, 2019, 6:03 a.m. OK Java 11 TESTS 46 234 0 1500
7860916 vjudge3 B Sept. 20, 2014, 1:28 a.m. OK Java 6 TESTS 46 77 0 1500
7518156 mkirsche B Aug. 20, 2014, 3:35 p.m. OK Java 6 TESTS 46 77 0 1500
6891683 maxkvant B June 14, 2014, 6:17 p.m. OK Java 6 TESTS 46 77 0 1500
6745205 luismo B May 30, 2014, 3:58 p.m. OK Java 6 TESTS 46 77 0 1500
9555627 siddv B Jan. 26, 2015, 2:44 a.m. OK Java 6 TESTS 46 78 0 1500
7940200 vjudge5 B Sept. 24, 2014, 7:31 p.m. OK Java 6 TESTS 46 78 0 1500
7862145 vjudge2 B Sept. 20, 2014, 5:12 a.m. OK Java 6 TESTS 46 78 0 1500
7861217 vjudge5 B Sept. 20, 2014, 2:25 a.m. OK Java 6 TESTS 46 78 0 1500
6834680 rf810808 B June 8, 2014, 1:40 a.m. OK Java 6 TESTS 46 78 0 1500
6759028 ArkCoder B May 31, 2014, 9:24 p.m. OK Java 6 TESTS 46 78 0 1500
6751865 Shahzodbek B May 30, 2014, 5:57 p.m. OK Java 7 TESTS 46 62 0 1500
6747962 Hell_Knight B May 30, 2014, 4:31 p.m. OK Java 7 TESTS 46 62 0 1500
6745475 alexey.kasatkin B May 30, 2014, 4:01 p.m. OK Java 7 TESTS 46 62 0 1500
6745252 I_love_Malika B May 30, 2014, 3:58 p.m. OK Java 7 TESTS 46 62 0 1500
6744345 OnShuffle B May 30, 2014, 3:51 p.m. OK Java 7 TESTS 46 62 0 1500
9302382 vjudge2 B Dec. 30, 2014, 3:26 a.m. OK Java 7 TESTS 46 62 0 1500
8130264 Ahmah2009 B Oct. 7, 2014, 12:13 p.m. OK Java 7 TESTS 46 62 0 1500
7861632 vjudge2 B Sept. 20, 2014, 3:39 a.m. OK Java 7 TESTS 46 62 0 1500
7186335 khoahoc1024 B July 20, 2014, 12:41 p.m. OK Java 7 TESTS 46 62 0 1500
13810189 snrahul B Oct. 23, 2015, 2:24 p.m. OK Java 7 TESTS 46 77 0 1500
45686821 noobspotted B Nov. 13, 2018, 6:52 p.m. OK Java 8 TESTS 46 109 0 1500
14096601 TWO_POINTER B Nov. 5, 2015, 9:24 p.m. OK Java 8 TESTS 46 109 0 1500
12701615 Abkreno94 B Aug. 25, 2015, 10:18 p.m. OK Java 8 TESTS 46 109 0 1500
12387102 yasser_adel B Aug. 6, 2015, 10:57 a.m. OK Java 8 TESTS 46 109 0 1500
12244256 .tx B July 27, 2015, 7:21 p.m. OK Java 8 TESTS 46 109 0 1500
12126074 bharanikrishna7 B July 20, 2015, 6:49 a.m. OK Java 8 TESTS 46 109 0 1500
11729238 akshay_miterani B June 23, 2015, 11:27 p.m. OK Java 8 TESTS 46 109 0 1500
11334757 turmoil B May 28, 2015, 3:01 p.m. OK Java 8 TESTS 46 109 0 1500
10030918 essar B Feb. 26, 2015, 10:25 a.m. OK Java 8 TESTS 46 109 0 1500
9920142 niyaznigmatul B Feb. 18, 2015, 9:27 p.m. OK Java 8 TESTS 46 109 0 1500
43705583 montacir B Oct. 2, 2018, 9:24 p.m. OK JavaScript TESTS 46 31 0 1500
8545881 tomdmitriev B Nov. 4, 2014, 11:35 a.m. OK JavaScript TESTS 46 31 0 1500
6909930 Eeyore B June 19, 2014, 3:30 a.m. OK JavaScript TESTS 46 31 0 1500
6849314 DDDDDDDDDDDDDDDDDDDDDDDD B June 8, 2014, 5:50 p.m. OK JavaScript TESTS 46 31 307200 1500
6750113 Duwa B May 30, 2014, 5:08 p.m. OK Mono C# TESTS 46 46 204800 1500
33195659 chopik B Dec. 12, 2017, 8:17 p.m. OK Mono C# TESTS 46 46 11673600 1500
6751918 hungb.nguyen B May 30, 2014, 6 p.m. OK Mono C# TESTS 46 62 102400 1500
6746081 sbaraian B May 30, 2014, 4:07 p.m. OK Mono C# TESTS 46 62 2150400 1500
6756662 dev8546 B May 31, 2014, 10:50 a.m. OK MS C# TESTS 46 46 0 1500
7241954 fr0st B July 25, 2014, noon OK MS C# TESTS 46 46 102400 1500
7073973 gautam_v_s B July 13, 2014, noon OK MS C# TESTS 46 46 102400 1500
6752779 kasarino B May 30, 2014, 7:34 p.m. OK MS C# TESTS 46 46 102400 1500
6743992 og.kostya B May 30, 2014, 3:48 p.m. OK MS C# TESTS 46 46 204800 1500
6746146 scanhex B May 30, 2014, 4:08 p.m. OK MS C# TESTS 46 46 204800 1500
6746637 Kavir B May 30, 2014, 4:13 p.m. OK MS C# TESTS 46 46 204800 1500
6746779 ParanoidAndroid B May 30, 2014, 4:15 p.m. OK MS C# TESTS 46 46 2048000 1500
6744762 igor.pisarev B May 30, 2014, 3:54 p.m. OK MS C# TESTS 46 61 102400 1500
6757142 nick5 B May 31, 2014, 12:37 p.m. OK MS C# TESTS 46 61 204800 1500
12385718 BRAD_BIT B Aug. 6, 2015, 9:18 a.m. OK MS C++ TESTS 46 15 0 1500
22479315 mostafa_9a7c2 B Nov. 24, 2016, 9:38 p.m. OK MS C++ TESTS 46 15 0 1500
18976438 s.michajlowski B July 8, 2016, 10:31 p.m. OK MS C++ TESTS 46 15 0 1500
15082290 zhangyuxiang B Dec. 29, 2015, 9:30 a.m. OK MS C++ TESTS 46 15 0 1500
14198968 DeZi B Nov. 11, 2015, 4:22 p.m. OK MS C++ TESTS 46 15 0 1500
14190625 SAFWAN.K B Nov. 10, 2015, 10:26 p.m. OK MS C++ TESTS 46 15 0 1500
14090032 vjudge1 B Nov. 5, 2015, 1:42 p.m. OK MS C++ TESTS 46 15 0 1500
12827594 rahmeh95 B Sept. 3, 2015, 11:23 a.m. OK MS C++ TESTS 46 15 0 1500
12473633 mostafa_bayuomi B Aug. 12, 2015, 4:57 a.m. OK MS C++ TESTS 46 15 0 1500
12384792 ZIPP B Aug. 6, 2015, 8:24 a.m. OK MS C++ TESTS 46 15 0 1500
61909284 vladnoov B Oct. 5, 2019, 10:30 a.m. OK MS C++ 2017 TESTS 46 31 0 1500
59598149 vjudge5 B Aug. 28, 2019, 3:48 a.m. OK MS C++ 2017 TESTS 46 31 0 1500
61906866 Boryan07 B Oct. 5, 2019, 9:54 a.m. OK MS C++ 2017 TESTS 46 46 0 1500
6745300 BC_ B May 30, 2014, 3:59 p.m. OK Ocaml TESTS 46 15 0 1500
11968985 multisystem B July 8, 2015, 8:07 a.m. OK Perl TESTS 46 31 0 1500
11932800 mayakin B July 5, 2015, 8:54 a.m. OK PHP TESTS 46 31 0 1500
27307095 Yash_ B May 23, 2017, 6:45 p.m. OK PyPy 2 TESTS 46 62 0 1500
66240434 slam3085 B Dec. 3, 2019, 5:55 p.m. OK PyPy 3 TESTS 46 140 0 1500
68778191 kchau B Jan. 14, 2020, 2:07 p.m. OK PyPy 3 TESTS 46 140 0 1500
60753915 ashok123 B Sept. 18, 2019, 7:51 a.m. OK PyPy 3 TESTS 46 140 0 1500
68939605 beethoven97 B Jan. 16, 2020, 1:59 p.m. OK PyPy 3 TESTS 46 218 0 1500
6850416 sglyons2 B June 8, 2014, 7:04 p.m. OK Python 2 TESTS 46 46 0 1500
15915278 not_bot_but_POT B Feb. 9, 2016, 2:03 p.m. OK Python 2 TESTS 46 46 0 1500
8062864 vjudge3 B Oct. 2, 2014, 7:47 p.m. OK Python 2 TESTS 46 46 0 1500
7688434 Unlenin B Sept. 5, 2014, 1:55 p.m. OK Python 2 TESTS 46 46 0 1500
7566399 anant sudeepdino008 B Aug. 24, 2014, 12:05 p.m. OK Python 2 TESTS 46 46 0 1500
7276853 Hepic_Antony_Skarlatos B July 28, 2014, 10:50 a.m. OK Python 2 TESTS 46 46 0 1500
7276850 Hepic_Antony_Skarlatos B July 28, 2014, 10:50 a.m. OK Python 2 TESTS 46 46 0 1500
7276729 Hepic_Antony_Skarlatos B July 28, 2014, 10:31 a.m. OK Python 2 TESTS 46 46 0 1500
7058207 faureka B July 10, 2014, 11:16 a.m. OK Python 2 TESTS 46 46 0 1500
6835994 213r B June 8, 2014, 8:16 a.m. OK Python 2 TESTS 46 46 0 1500
15930194 orailly B Feb. 10, 2016, 2:14 p.m. OK Python 3 TESTS 46 62 0 1500
11903307 rishabhtwr07 B July 2, 2015, 10:16 p.m. OK Python 3 TESTS 46 62 0 1500
10655881 CHVRCHES B April 11, 2015, 8:29 a.m. OK Python 3 TESTS 46 62 0 1500
9348379 merolish B Jan. 2, 2015, 7:07 p.m. OK Python 3 TESTS 46 62 0 1500
6870315 Linkk B June 12, 2014, 8:49 p.m. OK Python 3 TESTS 46 62 0 1500
6752926 Shiz0 B May 30, 2014, 7:55 p.m. OK Python 3 TESTS 46 62 0 1500
6751722 smalik B May 30, 2014, 5:50 p.m. OK Python 3 TESTS 46 62 0 1500
6750663 MaciejCzyzewski B May 30, 2014, 5:19 p.m. OK Python 3 TESTS 46 62 0 1500
6746830 begebot B May 30, 2014, 4:16 p.m. OK Python 3 TESTS 46 62 0 1500
6746564 broomrider B May 30, 2014, 4:12 p.m. OK Python 3 TESTS 46 62 0 1500
7306975 Lapenkov B Aug. 1, 2014, 11:38 a.m. OK Ruby TESTS 46 62 0 1500
7678272 hama-du B Sept. 4, 2014, 1:28 a.m. OK Ruby TESTS 46 77 0 1500
7563546 knight-erraunt B Aug. 23, 2014, 11:03 p.m. OK Ruby TESTS 46 93 0 1500
6785086 Jason B June 3, 2014, 5:04 a.m. OK Ruby TESTS 46 139 0 1500
6747340 gojira B May 30, 2014, 4:22 p.m. OK Scala TESTS 46 217 0 1500
11379577 glock45 B June 1, 2015, 1:55 p.m. OK Scala TESTS 46 249 102400 1500
6911168 ashione B June 19, 2014, 8:22 a.m. OK Scala TESTS 46 264 0 1500
17419185 reldan B April 21, 2016, 12:59 p.m. OK Scala TESTS 46 280 39936000 1500

remove filters

Back to search problems