Codeforces Round 243 (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
425 Codeforces Round 243 (Div. 1) FINISHED False 7200 338826587 April 27, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3930 ) A Sereja and Swaps PROGRAMMING brute force sortings 1600

B"As usual, Sereja has array a, its elements are integers: a[1], xe2 x80 x89a[2], xe2 x80 x89..., xe2 x80 x89a[n]. Let's introduce notation: A swap operation is the following sequence of actions: What maximum value of function m(a) can Sereja get if he is allowed to perform at most k swap operations? The first line contains two integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910). The next line contains n integers a[1], a[2], ..., a[n] ( xe2 x80 x89- xe2 x80 x891000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a[i] xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). In a single line print the maximum value of m(a) that Sereja can get if he is allowed to perform at most k swap operations."...

Tutorials

Codeforces Round #243 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6487359 Gassa A April 27, 2014, 3:47 p.m. OK D TESTS 43 187 1024000 1600
7361880 hos.lyric A Aug. 6, 2014, 3:18 p.m. OK D TESTS 43 312 2457600 1600
6488184 IgorL A April 27, 2014, 3:54 p.m. OK Delphi TESTS 43 109 102400 1600
6496968 ruban A April 28, 2014, 2:14 a.m. OK Delphi TESTS 43 139 32153600 1600
6502559 Casio A April 28, 2014, 9:20 p.m. OK Delphi TESTS 43 187 102400 1600
6487799 audin1000 A April 27, 2014, 3:50 p.m. OK Delphi TESTS 43 264 102400 1600
6536333 vjudge5 A May 3, 2014, 6:14 a.m. OK FPC TESTS 43 30 1228800 1600
6547248 graceoflives A May 5, 2014, 3:01 a.m. OK FPC TESTS 43 31 0 1600
6487958 venus.le197 A April 27, 2014, 3:52 p.m. OK FPC TESTS 43 31 0 1600
6490463 hoanglmdiv2 A April 27, 2014, 4:24 p.m. OK FPC TESTS 43 46 0 1600
6505302 HuAng233 A April 29, 2014, 12:22 p.m. OK FPC TESTS 43 62 102400 1600
7202721 DaibaNana A July 22, 2014, 2:13 p.m. OK FPC TESTS 43 77 0 1600
6487004 SanSiroWaltz A April 27, 2014, 3:44 p.m. OK FPC TESTS 43 78 0 1600
6489868 Yury_Bandarchuk A April 27, 2014, 4:15 p.m. OK FPC TESTS 43 108 204800 1600
6494586 GiannisAntetokounmpo A April 27, 2014, 5:56 p.m. OK FPC TESTS 43 124 102400 1600
6488008 Oryshych A April 27, 2014, 3:52 p.m. OK FPC TESTS 43 171 102400 1600
6614625 ckeling A May 14, 2014, 11:26 a.m. OK GNU C TESTS 43 62 0 1600
11663468 NoSoul A June 19, 2015, 7:25 a.m. OK GNU C TESTS 43 93 0 1600
22695066 vjudge2 A Dec. 4, 2016, 12:01 p.m. OK GNU C++ TESTS 43 15 0 1600
17335787 vjudge5 A April 16, 2016, 7:14 a.m. OK GNU C++ TESTS 43 15 0 1600
17334356 vjudge1 A April 16, 2016, 4:50 a.m. OK GNU C++ TESTS 43 15 0 1600
14004005 130705009 A Nov. 1, 2015, 9:08 a.m. OK GNU C++ TESTS 43 15 0 1600
7216849 Mr.ink A July 24, 2014, 1:24 p.m. OK GNU C++ TESTS 43 15 0 1600
7007842 curabis A July 4, 2014, 2:34 a.m. OK GNU C++ TESTS 43 15 0 1600
6563228 vjudge2 A May 6, 2014, 3:17 p.m. OK GNU C++ TESTS 43 15 0 1600
6521200 how_to_become_purple A May 2, 2014, 9:20 a.m. OK GNU C++ TESTS 43 15 0 1600
6512303 Jecvay A April 30, 2014, 6:25 p.m. OK GNU C++ TESTS 43 15 0 1600
6521225 how_to_become_purple A May 2, 2014, 9:25 a.m. OK GNU C++ TESTS 43 15 102400 1600
9361793 Man A Jan. 4, 2015, 5:49 p.m. OK GNU C++0x TESTS 43 15 0 1600
8103005 diametralis A Oct. 6, 2014, 9:18 a.m. OK GNU C++0x TESTS 43 15 0 1600
6511339 sune2 A April 30, 2014, 3:12 p.m. OK GNU C++0x TESTS 43 15 0 1600
6579452 Isomorphism A May 9, 2014, 7:17 p.m. OK GNU C++0x TESTS 43 15 204800 1600
6653451 kenimo A May 18, 2014, 10:40 p.m. OK GNU C++0x TESTS 43 15 307200 1600
6854970 rondo A June 9, 2014, 2:39 p.m. OK GNU C++0x TESTS 43 15 1638400 1600
6956654 wanbo A June 25, 2014, 8:15 a.m. OK GNU C++0x TESTS 43 15 3891200 1600
8422465 krismaz A Oct. 26, 2014, 9:24 p.m. OK GNU C++0x TESTS 43 30 102400 1600
6560559 rares.buhai A May 6, 2014, 7:29 a.m. OK GNU C++0x TESTS 43 30 102400 1600
6982442 kllp A June 29, 2014, 9:55 p.m. OK GNU C++0x TESTS 43 30 204800 1600
50343405 cprogrammer A Feb. 23, 2019, 4:41 a.m. OK GNU C11 TESTS 43 249 0 1600
11488612 Azret A June 7, 2015, 2:23 p.m. OK GNU C++11 TESTS 43 15 0 1600
31918964 pr3pony A Oct. 31, 2017, 11:19 a.m. OK GNU C++11 TESTS 43 15 0 1600
14243490 Ra1nWarden A Nov. 13, 2015, 7:39 p.m. OK GNU C++11 TESTS 43 15 204800 1600
19066647 zhzy0077 A July 13, 2016, 7:32 a.m. OK GNU C++11 TESTS 43 15 204800 1600
30040946 OmarRehan A Sept. 3, 2017, 5:58 p.m. OK GNU C++11 TESTS 43 15 614400 1600
18125478 dreamhuan A May 28, 2016, 4:06 a.m. OK GNU C++11 TESTS 43 15 2048000 1600
15213334 the_art_of_war A Jan. 6, 2016, 6:38 p.m. OK GNU C++11 TESTS 43 30 0 1600
15647464 Deemo A Jan. 29, 2016, 2:46 p.m. OK GNU C++11 TESTS 43 30 0 1600
39436926 ddeka A June 20, 2018, 1:19 p.m. OK GNU C++11 TESTS 43 30 307200 1600
39437842 ddeka A June 20, 2018, 1:58 p.m. OK GNU C++11 TESTS 43 30 409600 1600
20468459 ThSonNguyen A Sept. 8, 2016, 8:08 p.m. OK GNU C++14 TESTS 43 15 0 1600
32111068 AJAYHAYAGREEVE A Nov. 7, 2017, 6:30 a.m. OK GNU C++14 TESTS 43 15 204800 1600
47182759 Abukhadijah A Dec. 17, 2018, 11:19 p.m. OK GNU C++14 TESTS 43 15 614400 1600
23468055 Ali.Pi A Dec. 31, 2016, 11:12 a.m. OK GNU C++14 TESTS 43 15 1945600 1600
28466109 abanob.ashraf A July 12, 2017, 7:38 a.m. OK GNU C++14 TESTS 43 15 1945600 1600
25064248 wewark A Feb. 26, 2017, 8:19 p.m. OK GNU C++14 TESTS 43 15 2048000 1600
28467984 abanob.ashraf A July 12, 2017, 8:41 a.m. OK GNU C++14 TESTS 43 15 2252800 1600
22040519 tenshi_kanade A Nov. 4, 2016, 6:13 p.m. OK GNU C++14 TESTS 43 30 204800 1600
33373425 pushpendra1997 A Dec. 18, 2017, 9:06 a.m. OK GNU C++14 TESTS 43 30 2048000 1600
51298044 IsaacMoris A March 14, 2019, 1:12 p.m. OK GNU C++14 TESTS 43 31 0 1600
45852280 vjudge1 A Nov. 17, 2018, 1 a.m. OK GNU C++17 TESTS 43 31 307200 1600
45311470 dmkozyrev A Nov. 5, 2018, 4:28 a.m. OK GNU C++17 TESTS 43 31 409600 1600
64505371 wzz-huchi A Nov. 8, 2019, 6:36 a.m. OK GNU C++17 TESTS 43 31 3276800 1600
55862076 veerappan A June 21, 2019, 10:05 a.m. OK GNU C++17 TESTS 43 46 204800 1600
48270662 2017061401008 A Jan. 12, 2019, 1:45 a.m. OK GNU C++17 TESTS 43 62 307200 1600
52598500 sywfid188 A April 11, 2019, 10:38 a.m. OK GNU C++17 TESTS 43 77 0 1600
42849442 vjudge5 A Sept. 14, 2018, 4:02 a.m. OK GNU C++17 TESTS 43 78 0 1600
56536792 BCH11111 A July 5, 2019, 1:41 a.m. OK GNU C++17 TESTS 43 78 204800 1600
45104118 rima A Oct. 30, 2018, 3:15 p.m. OK GNU C++17 TESTS 43 93 0 1600
59137461 rianradeck A Aug. 20, 2019, 1:11 p.m. OK GNU C++17 TESTS 43 93 204800 1600
6489238 cojna A April 27, 2014, 4:06 p.m. OK Haskell TESTS 43 389 1126400 1600
6522214 artemohanjanyan A May 2, 2014, 1:11 p.m. OK Haskell TESTS 43 702 1126400 1600
6486895 autotaker A April 27, 2014, 3:43 p.m. OK Haskell TESTS 43 717 1024000 1600
6511844 ama_teur A April 30, 2014, 4:46 p.m. OK Java 6 TESTS 43 186 102400 1600
8299323 xiaowuc1 A Oct. 19, 2014, 12:42 a.m. OK Java 6 TESTS 43 233 102400 1600
6685279 haruki57 A May 23, 2014, 6:24 a.m. OK Java 6 TESTS 43 264 102400 1600
6522601 raedselim A May 2, 2014, 2:26 p.m. OK Java 6 TESTS 43 295 0 1600
7544191 mkirsche A Aug. 21, 2014, 1:43 p.m. OK Java 6 TESTS 43 499 102400 1600
6487265 hiukim A April 27, 2014, 3:46 p.m. OK Java 6 TESTS 43 499 204800 1600
7666646 maitony A Sept. 2, 2014, 9:53 a.m. OK Java 6 TESTS 43 530 204800 1600
6486927 Sammarize A April 27, 2014, 3:44 p.m. OK Java 6 TESTS 43 561 102400 1600
6606259 HidenoriS A May 12, 2014, 7:54 p.m. OK Java 6 TESTS 43 561 204800 1600
6488514 simenl A April 27, 2014, 3:57 p.m. OK Java 7 TESTS 43 124 0 1600
6489053 uwi A April 27, 2014, 4:04 p.m. OK Java 7 TESTS 43 124 102400 1600
6488447 nicolas.pe.92 A April 27, 2014, 3:57 p.m. OK Java 7 TESTS 43 124 102400 1600
6488558 heekyu83 A April 27, 2014, 3:58 p.m. OK Java 7 TESTS 43 139 0 1600
6486493 VArtem A April 27, 2014, 3:40 p.m. OK Java 7 TESTS 43 139 102400 1600
6542639 Wertle A May 4, 2014, 5:51 a.m. OK Java 7 TESTS 43 139 204800 1600
6490107 Vbifial A April 27, 2014, 4:19 p.m. OK Java 7 TESTS 43 139 204800 1600
6486051 Egor A April 27, 2014, 3:38 p.m. OK Java 7 TESTS 43 140 102400 1600
6488171 neznaika94 A April 27, 2014, 3:54 p.m. OK Java 7 TESTS 43 155 0 1600
6488161 Azat_Yusupov A April 27, 2014, 3:54 p.m. OK Java 7 TESTS 43 155 0 1600
26464355 codeislife99 A April 17, 2017, 8:59 p.m. OK Java 8 TESTS 43 109 20582400 1600
26460062 codeislife99 A April 17, 2017, 4:36 p.m. OK Java 8 TESTS 43 109 20582400 1600
24095978 overnite.runner A Jan. 24, 2017, 5:02 p.m. OK Java 8 TESTS 43 109 20582400 1600
9275423 fnch A Dec. 26, 2014, 12:29 p.m. OK Java 8 TESTS 43 124 0 1600
9952126 poikniok A Feb. 21, 2015, 7:45 p.m. OK Java 8 TESTS 43 156 0 1600
9952104 poikniok A Feb. 21, 2015, 7:42 p.m. OK Java 8 TESTS 43 171 0 1600
43555316 jwozniak A Sept. 29, 2018, 5:36 a.m. OK Java 8 TESTS 43 187 0 1600
13113104 Nirmit A Sept. 20, 2015, 10:53 a.m. OK Java 8 TESTS 43 202 0 1600
12823515 Abkreno94 A Sept. 3, 2015, 4:49 a.m. OK Java 8 TESTS 43 202 0 1600
39190318 ashcodish A June 12, 2018, 11:50 a.m. OK Java 8 TESTS 43 218 0 1600
6560330 azukun A May 6, 2014, 6:26 a.m. OK MS C# TESTS 43 109 5427200 1600
7189385 bluesail A July 20, 2014, 11:06 p.m. OK MS C# TESTS 43 187 5120000 1600
6503235 HamsterWool A April 29, 2014, 3:17 a.m. OK MS C# TESTS 43 436 2662400 1600
6497564 yaya A April 28, 2014, 4:51 a.m. OK MS C++ TESTS 43 15 0 1600
6497479 yaya A April 28, 2014, 4:32 a.m. OK MS C++ TESTS 43 15 0 1600
28412602 nik1998 A July 10, 2017, 5:21 p.m. OK MS C++ TESTS 43 15 2048000 1600
6497447 yaya A April 28, 2014, 4:27 a.m. OK MS C++ TESTS 43 30 102400 1600
7450423 Sehnsucht A Aug. 15, 2014, 6:42 a.m. OK MS C++ TESTS 43 30 204800 1600
6511821 NuM A April 30, 2014, 4:42 p.m. OK MS C++ TESTS 43 31 0 1600
40988727 ReaLNero1 A July 30, 2018, 10:18 p.m. OK MS C++ TESTS 43 31 102400 1600
6587080 Tariqul A May 11, 2014, 12:30 p.m. OK MS C++ TESTS 43 31 102400 1600
40024948 Volpe A July 6, 2018, 9:02 a.m. OK MS C++ TESTS 43 31 307200 1600
10558873 khoarau A April 3, 2015, 10:24 a.m. OK MS C++ TESTS 43 31 3993600 1600
64291270 vjudge4 A Nov. 5, 2019, 7:06 a.m. OK MS C++ 2017 TESTS 43 78 307200 1600
60825244 vjudge2 A Sept. 19, 2019, 3:30 a.m. OK MS C++ 2017 TESTS 43 171 0 1600
60824710 vjudge2 A Sept. 19, 2019, 3:06 a.m. OK MS C++ 2017 TESTS 43 171 0 1600
53879210 saofeng666 A May 8, 2019, 1:42 p.m. OK MS C++ 2017 TESTS 43 171 102400 1600
40842932 atharva456 A July 27, 2018, 10:26 a.m. OK PyPy 3 TESTS 43 249 3276800 1600
57709434 AndreyL A July 24, 2019, 10:31 p.m. OK PyPy 3 TESTS 43 389 3584000 1600
10311396 imprtant A March 17, 2015, 2:33 p.m. OK PyPy 3 TESTS 43 499 4300800 1600
6495287 kidzik A April 27, 2014, 6:32 p.m. OK Python 2 TESTS 43 171 307200 1600
23771964 bash_ A Jan. 12, 2017, 9:34 p.m. OK Python 2 TESTS 43 670 4915200 1600
57815534 abhirock753 A July 26, 2019, 7:28 p.m. OK Python 2 TESTS 43 748 307200 1600
7285861 hokun A July 29, 2014, 2:36 p.m. OK Python 2 TESTS 43 889 1024000 1600
6572513 yugle7 A May 8, 2014, 1:23 p.m. OK Python 3 TESTS 43 233 307200 1600
35871317 ______u______ A March 3, 2018, 6:46 a.m. OK Python 3 TESTS 43 717 5632000 1600
35871212 ______n______ A March 3, 2018, 6:46 a.m. OK Python 3 TESTS 43 717 5632000 1600
35870616 _____i_____ A March 3, 2018, 6:33 a.m. OK Python 3 TESTS 43 717 5632000 1600
35870606 _____k_____ A March 3, 2018, 6:33 a.m. OK Python 3 TESTS 43 717 5632000 1600
35861776 ______k______ A March 2, 2018, 10:10 p.m. OK Python 3 TESTS 43 717 5632000 1600
35861761 ______h______ A March 2, 2018, 10:10 p.m. OK Python 3 TESTS 43 717 5632000 1600
35861465 ______i______ A March 2, 2018, 10:03 p.m. OK Python 3 TESTS 43 717 5632000 1600
35859747 ______M______ A March 2, 2018, 9:27 p.m. OK Python 3 TESTS 43 717 5632000 1600
15914382 not_bot_but_POT A Feb. 9, 2016, 1:44 p.m. OK Python 3 TESTS 43 748 204800 1600
29525514 cympfh A Aug. 17, 2017, 12:03 p.m. OK Rust TESTS 43 109 0 1600
29525480 cympfh A Aug. 17, 2017, 12:01 p.m. OK Rust TESTS 43 109 0 1600
29524683 cympfh A Aug. 17, 2017, 11:10 a.m. OK Rust TESTS 43 124 102400 1600
6583438 tnoda A May 10, 2014, 4:22 p.m. OK Scala TESTS 43 997 102400 1600

remove filters

Back to search problems