Codeforces Round 297 (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
525 Codeforces Round 297 (Div. 2) FINISHED False 7200 304435799 March 26, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5827 ) C Ilya and Sticks PROGRAMMING greedy math sortings 1600

B'In the evening, after the contest Ilya was bored, and he really felt like maximizing. He remembered that he had a set of n sticks and an instrument. Each stick is characterized by its length li. Ilya decided to make a rectangle from the sticks. And due to his whim, he decided to make rectangles in such a way that maximizes their total area. Each stick is used in making at most one rectangle, it is possible that some of sticks remain unused. Bending sticks is not allowed. Sticks with lengths a1, a2, a3 and a4 can make a rectangle if the following properties are observed: A rectangle can be made of sticks with lengths of, for example, 3 3 3 3 or 2 2 4 4. A rectangle cannot be made of, for example, sticks 5 5 5 7. Ilya also has an instrument which can reduce the length of the sticks. The sticks are made of a special material, so the length of each stick can be reduced by at most one. For example, a stick with length 5 can either stay at this length or be transformed into a stick of length 4. You have to answer the question -- what maximum total area of the rectangles can Ilya get with a file if makes rectangles from the available sticks? The first line of the input contains a positive integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of the available sticks. The second line of the input contains n positive integers li (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the lengths of the sticks. The first line of the output must contain a single non-negative integer -- the maximum total area of the rectangles that Ilya can make from the available sticks.'...

Tutorials

Codeforces Round #297 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
16143383 cpy C Feb. 18, 2016, 2:52 p.m. OK D TESTS 96 77 4198400 1600
10574656 Temtaime C April 4, 2015, 2:48 p.m. OK D TESTS 96 77 6451200 1600
10524973 ksenya C March 30, 2015, 1:31 p.m. OK Delphi TESTS 96 31 409600 1600
10492550 RostVel C March 27, 2015, 5:05 p.m. OK Delphi TESTS 96 31 614400 1600
10492559 Frogre C March 27, 2015, 5:06 p.m. OK Delphi TESTS 96 31 614400 1600
10478758 RostVel C March 26, 2015, 8:33 p.m. OK Delphi TESTS 96 46 512000 1600
10767415 EvieOneLove C April 18, 2015, 12:17 p.m. OK Delphi TESTS 96 46 819200 1600
11989011 Vasiliy_48 C July 9, 2015, 5:38 p.m. OK Delphi TESTS 96 46 8089600 1600
14031154 UltraRus26laN C Nov. 2, 2015, 5:11 p.m. OK FPC TESTS 96 31 409600 1600
16341688 onetobebest C Feb. 26, 2016, 7:40 a.m. OK FPC TESTS 96 31 409600 1600
12331867 thanhloc24 C Aug. 4, 2015, 1:26 a.m. OK FPC TESTS 96 31 819200 1600
10491939 WARenie C March 27, 2015, 4:10 p.m. OK FPC TESTS 96 31 3993600 1600
11569930 voanhtucqt C June 13, 2015, 3:05 p.m. OK FPC TESTS 96 31 7987200 1600
55582286 luogu_bot3 C June 15, 2019, 7:27 a.m. OK FPC TESTS 96 46 409600 1600
16341697 vjudge4 C Feb. 26, 2016, 7:41 a.m. OK FPC TESTS 96 46 409600 1600
12100415 VAVAvile C July 18, 2015, 2:36 a.m. OK FPC TESTS 96 46 409600 1600
11315841 graceoflives C May 27, 2015, 8:38 a.m. OK FPC TESTS 96 46 409600 1600
16284218 vladKB1 C Feb. 22, 2016, 9:33 p.m. OK FPC TESTS 96 46 512000 1600
10974387 festivus C May 2, 2015, 12:34 p.m. OK GNU C TESTS 96 31 17920000 1600
10523488 abhinavaggarwal C March 30, 2015, 10:35 a.m. OK GNU C TESTS 96 46 409600 1600
16425599 vjudge1 C Feb. 29, 2016, 12:18 p.m. OK GNU C TESTS 96 46 819200 1600
16322676 vjudge5 C Feb. 25, 2016, 8:16 a.m. OK GNU C TESTS 96 46 819200 1600
13885983 protick666 C Oct. 27, 2015, 6:46 a.m. OK GNU C TESTS 96 46 819200 1600
10532799 RainWing C March 31, 2015, 11:59 a.m. OK GNU C TESTS 96 46 819200 1600
10499778 abhishekgarg C March 28, 2015, 12:08 p.m. OK GNU C TESTS 96 46 819200 1600
10490168 deepakgoyal29 C March 27, 2015, 1:51 p.m. OK GNU C TESTS 96 46 819200 1600
10501866 asoc C March 28, 2015, 3:07 p.m. OK GNU C TESTS 96 46 1228800 1600
22840330 nitesh_gupta C Dec. 9, 2016, 5:45 p.m. OK GNU C TESTS 96 46 1638400 1600
34200540 NicoDafaGood C Jan. 15, 2018, 3:20 p.m. OK GNU C++ TESTS 96 30 10137600 1600
22252334 lauratalaat C Nov. 15, 2016, 8:57 p.m. OK GNU C++ TESTS 96 31 204800 1600
15950708 vjudge1 C Feb. 11, 2016, 5:35 a.m. OK GNU C++ TESTS 96 31 204800 1600
14121115 bnuvjudge2 C Nov. 7, 2015, 9:50 a.m. OK GNU C++ TESTS 96 31 204800 1600
14119242 bnuvjudge2 C Nov. 7, 2015, 8:28 a.m. OK GNU C++ TESTS 96 31 204800 1600
14106067 Jonarigvez C Nov. 6, 2015, 12:27 p.m. OK GNU C++ TESTS 96 31 204800 1600
12331928 vjudge4 C Aug. 4, 2015, 1:33 a.m. OK GNU C++ TESTS 96 31 204800 1600
11980197 malhar1995 C July 9, 2015, 4:55 a.m. OK GNU C++ TESTS 96 31 204800 1600
11629721 montana32se C June 18, 2015, 8:54 a.m. OK GNU C++ TESTS 96 31 204800 1600
10517245 vjudge4 C March 29, 2015, 3:15 p.m. OK GNU C++ TESTS 96 31 204800 1600
22303425 sghelani C Nov. 18, 2016, 9:33 a.m. OK GNU C11 TESTS 96 46 409600 1600
57342765 rainboy C July 19, 2019, 7:58 p.m. OK GNU C11 TESTS 96 46 409600 1600
50772808 vjudge1 C March 4, 2019, 6:16 a.m. OK GNU C11 TESTS 96 46 819200 1600
17009820 Jaquiroman C March 28, 2016, 8:01 p.m. OK GNU C11 TESTS 96 46 2457600 1600
10836809 YakutovDmitriy C April 23, 2015, 2:37 p.m. OK GNU C11 TESTS 96 46 13926400 1600
11932216 ko_osaga C July 5, 2015, 7:51 a.m. OK GNU C++11 TESTS 96 31 204800 1600
10525466 031240302 C March 30, 2015, 2:28 p.m. OK GNU C++11 TESTS 96 31 409600 1600
14831409 kakjapan31 C Dec. 16, 2015, 8:24 a.m. OK GNU C++11 TESTS 96 31 409600 1600
14190429 Jestter C Nov. 10, 2015, 9:47 p.m. OK GNU C++11 TESTS 96 31 409600 1600
10727655 a00012025 C April 15, 2015, 7:38 a.m. OK GNU C++11 TESTS 96 31 409600 1600
10524355 lxw C March 30, 2015, 12:24 p.m. OK GNU C++11 TESTS 96 31 409600 1600
15898578 anup_coder C Feb. 8, 2016, 4:03 p.m. OK GNU C++11 TESTS 96 31 409600 1600
16382380 vjudge4 C Feb. 27, 2016, 12:39 p.m. OK GNU C++11 TESTS 96 31 409600 1600
27459519 ayaHamdi C May 31, 2017, 5:20 a.m. OK GNU C++11 TESTS 96 31 409600 1600
15458258 Arima C Jan. 20, 2016, 7:14 p.m. OK GNU C++11 TESTS 96 31 409600 1600
24960698 a88796366 C Feb. 24, 2017, 9:54 a.m. OK GNU C++14 TESTS 96 31 3481600 1600
37386394 vjudge2 C April 17, 2018, 3:53 a.m. OK GNU C++14 TESTS 96 31 8601600 1600
27824117 Harsh424jan C June 16, 2017, 11:53 a.m. OK GNU C++14 TESTS 96 46 409600 1600
27062919 justfora C May 12, 2017, 10:36 p.m. OK GNU C++14 TESTS 96 46 409600 1600
69800902 GanaOsama C Jan. 29, 2020, 10:24 p.m. OK GNU C++14 TESTS 96 46 409600 1600
48417683 nik-12 C Jan. 15, 2019, 11:24 a.m. OK GNU C++14 TESTS 96 46 409600 1600
46914501 gourav_j C Dec. 11, 2018, 7:12 p.m. OK GNU C++14 TESTS 96 46 409600 1600
30316568 rv404674 C Sept. 13, 2017, 9:01 p.m. OK GNU C++14 TESTS 96 46 409600 1600
62931972 Robbens C Oct. 19, 2019, 12:58 p.m. OK GNU C++14 TESTS 96 46 409600 1600
29927163 dmh1528 C Aug. 30, 2017, 5:47 p.m. OK GNU C++14 TESTS 96 46 409600 1600
68993074 IbraheemJanajreh C Jan. 17, 2020, 4:03 p.m. OK GNU C++17 TESTS 96 46 409600 1600
39145411 Photon_ C June 11, 2018, 11:56 a.m. OK GNU C++17 TESTS 96 46 819200 1600
58143538 devarshi09 C Aug. 1, 2019, 7:26 p.m. OK GNU C++17 TESTS 96 46 819200 1600
55583306 TooMathy C June 15, 2019, 8:01 a.m. OK GNU C++17 TESTS 96 46 819200 1600
50152202 zpr C Feb. 19, 2019, 8:02 a.m. OK GNU C++17 TESTS 96 46 819200 1600
50068585 mrityun_mahat C Feb. 17, 2019, 4:15 p.m. OK GNU C++17 TESTS 96 46 819200 1600
47681233 E-Maxon C Dec. 29, 2018, 12:13 p.m. OK GNU C++17 TESTS 96 46 819200 1600
40052311 alavrov C July 7, 2018, 5:59 a.m. OK GNU C++17 TESTS 96 46 921600 1600
45057629 Jaihk662 C Oct. 29, 2018, 1:24 p.m. OK GNU C++17 TESTS 96 46 1024000 1600
50151224 JavaHack C Feb. 19, 2019, 7:31 a.m. OK GNU C++17 TESTS 96 46 1228800 1600
10488523 coolmaksat C March 27, 2015, 11:42 a.m. OK Go TESTS 96 62 1433600 1600
10627180 binhuq C April 8, 2015, 4:42 a.m. OK Go TESTS 96 62 9113600 1600
12394073 behzad.nouri C Aug. 6, 2015, 8:27 p.m. OK Haskell TESTS 96 186 9625600 1600
10527404 kraskevich C March 30, 2015, 5:59 p.m. OK Haskell TESTS 96 218 11776000 1600
13671319 sugar C Oct. 16, 2015, 8:04 p.m. OK Haskell TESTS 96 451 9625600 1600
13671542 sugar C Oct. 16, 2015, 8:25 p.m. OK Haskell TESTS 96 483 9625600 1600
35873896 ______h______ C March 3, 2018, 7:40 a.m. OK Haskell TESTS 96 499 62873600 1600
35873086 ______i______ C March 3, 2018, 7:23 a.m. OK Haskell TESTS 96 499 62873600 1600
35873673 ______k______ C March 3, 2018, 7:35 a.m. OK Haskell TESTS 96 499 62873600 1600
35885424 ______n______ C March 3, 2018, 1:28 p.m. OK Haskell TESTS 96 499 62873600 1600
35884598 _____k_____ C March 3, 2018, 1:15 p.m. OK Haskell TESTS 96 499 62873600 1600
35884369 _____i_____ C March 3, 2018, 1:10 p.m. OK Haskell TESTS 96 499 62873600 1600
69681522 YahiaMostafa C Jan. 28, 2020, 3:46 p.m. OK Java 11 TESTS 96 233 0 1600
68987585 Clowyy C Jan. 17, 2020, 1:03 p.m. OK Java 11 TESTS 96 234 0 1600
10485319 patricthecoder C March 27, 2015, 9:57 a.m. OK Java 7 TESTS 96 93 0 1600
10494204 starfishbits C March 27, 2015, 8:28 p.m. OK Java 7 TESTS 96 93 0 1600
10507926 siddv C March 28, 2015, 7:21 p.m. OK Java 7 TESTS 96 93 0 1600
10508186 siddv C March 28, 2015, 7:29 p.m. OK Java 7 TESTS 96 93 0 1600
10478668 megaspazz C March 26, 2015, 8:26 p.m. OK Java 7 TESTS 96 93 0 1600
10536542 potkin C March 31, 2015, 7:42 p.m. OK Java 7 TESTS 96 93 0 1600
10695386 analog C April 13, 2015, 2:58 p.m. OK Java 7 TESTS 96 93 0 1600
11125698 sultan.of.swing C May 17, 2015, 11:38 a.m. OK Java 7 TESTS 96 93 0 1600
11125993 sultan.of.swing C May 17, 2015, 12:06 p.m. OK Java 7 TESTS 96 93 0 1600
10511176 lpeter C March 29, 2015, 5:29 a.m. OK Java 7 TESTS 96 93 0 1600
27434522 Ajudiya_13 C May 29, 2017, 6:50 p.m. OK Java 8 TESTS 96 124 0 1600
30309707 coderbond007 C Sept. 13, 2017, 2:46 p.m. OK Java 8 TESTS 96 124 0 1600
27104312 harsh11298 C May 14, 2017, 9:59 a.m. OK Java 8 TESTS 96 124 0 1600
13251626 Infoshoc C Sept. 27, 2015, 3:40 p.m. OK Java 8 TESTS 96 124 0 1600
10479268 essar C March 26, 2015, 9:21 p.m. OK Java 8 TESTS 96 124 0 1600
26588503 gone_girl incarnation C April 22, 2017, 4:51 p.m. OK Java 8 TESTS 96 124 20787200 1600
48698801 TheSawan C Jan. 22, 2019, 1:20 a.m. OK Java 8 TESTS 96 139 0 1600
10552449 hiro116s C April 2, 2015, 3:27 p.m. OK Java 8 TESTS 96 139 0 1600
30309818 coderbond007 C Sept. 13, 2017, 2:51 p.m. OK Java 8 TESTS 96 139 0 1600
62160181 sonusingh.nitaa C Oct. 8, 2019, 5:59 p.m. OK Java 8 TESTS 96 139 921600 1600
51896803 nemars C March 27, 2019, 11:56 a.m. OK Mono C# TESTS 96 109 14233600 1600
10855972 og.kostya C April 25, 2015, 6:33 a.m. OK MS C# TESTS 96 62 9113600 1600
10855977 og.kostya C April 25, 2015, 6:33 a.m. OK MS C# TESTS 96 62 9420800 1600
10530438 liomvse C March 31, 2015, 5:42 a.m. OK MS C# TESTS 96 77 9728000 1600
11532591 SkeW C June 11, 2015, noon OK MS C# TESTS 96 77 10854400 1600
11391589 T-D-K C June 2, 2015, 2:36 p.m. OK MS C# TESTS 96 77 15462400 1600
20772251 Jeannette C Sept. 20, 2016, 9:51 a.m. OK MS C# TESTS 96 92 16179200 1600
10548288 Stetsyk C April 2, 2015, 6:45 a.m. OK MS C# TESTS 96 93 9728000 1600
10487116 Kavir C March 27, 2015, 11 a.m. OK MS C# TESTS 96 93 11264000 1600
10532862 Nevecap C March 31, 2015, 12:08 p.m. OK MS C# TESTS 96 93 13619200 1600
32955099 ShowStopper728 C Dec. 5, 2017, 5:58 p.m. OK MS C# TESTS 96 93 22425600 1600
12311627 ALEXKIRNAS C Aug. 2, 2015, 7:04 a.m. OK MS C++ TESTS 96 31 409600 1600
11397907 vjudge1 C June 3, 2015, 6:58 a.m. OK MS C++ TESTS 96 31 409600 1600
11455388 wolf2014 C June 6, 2015, 7:09 a.m. OK MS C++ TESTS 96 31 819200 1600
10531950 ashis041 C March 31, 2015, 9:59 a.m. OK MS C++ TESTS 96 31 3584000 1600
22860358 vjudge2 C Dec. 10, 2016, 4:14 p.m. OK MS C++ TESTS 96 31 3993600 1600
11538109 pleomaxx3002 C June 11, 2015, 9:51 p.m. OK MS C++ TESTS 96 31 3993600 1600
10483745 nzamulov C March 27, 2015, 8:21 a.m. OK MS C++ TESTS 96 31 5120000 1600
10483791 nzamulov C March 27, 2015, 8:27 a.m. OK MS C++ TESTS 96 31 5120000 1600
17383745 vjudge5 C April 19, 2016, 6:23 a.m. OK MS C++ TESTS 96 31 14643200 1600
22900383 skirio.lee C Dec. 12, 2016, 9:03 a.m. OK MS C++ TESTS 96 46 409600 1600
69240667 vjudge5 C Jan. 21, 2020, 11:17 a.m. OK MS C++ 2017 TESTS 96 46 819200 1600
62372288 IPRIT C Oct. 11, 2019, 4:07 p.m. OK MS C++ 2017 TESTS 96 62 2457600 1600
66238070 vjudge4 C Dec. 3, 2019, 4:57 p.m. OK MS C++ 2017 TESTS 96 108 1740800 1600
54169780 Still_Theory C May 15, 2019, 10:22 a.m. OK MS C++ 2017 TESTS 96 109 819200 1600
49185308 Shlaf C Jan. 30, 2019, 5:37 a.m. OK MS C++ 2017 TESTS 96 109 1433600 1600
45568772 mayakin C Nov. 11, 2018, 4:20 p.m. OK PHP TESTS 96 296 7987200 1600
10480121 neex.emil C March 26, 2015, 11:20 p.m. OK PyPy 2 TESTS 96 109 6656000 1600
11775404 allanyin C June 26, 2015, 5:31 p.m. OK PyPy 2 TESTS 96 124 6860800 1600
30232966 iit2014101 C Sept. 9, 2017, 7:33 p.m. OK PyPy 2 TESTS 96 140 8499200 1600
10521395 Wizmann C March 30, 2015, 4 a.m. OK PyPy 2 TESTS 96 155 6758400 1600
49515664 aeternalis1 C Feb. 6, 2019, 2:22 a.m. OK PyPy 2 TESTS 96 155 7372800 1600
10481570 techxacm C March 27, 2015, 4:08 a.m. OK PyPy 2 TESTS 96 217 18944000 1600
47373825 HeyLaCC C Dec. 22, 2018, 3:53 p.m. OK PyPy 3 TESTS 96 202 10854400 1600
47268875 omarnvidia C Dec. 19, 2018, 3:39 p.m. OK PyPy 3 TESTS 96 202 11161600 1600
10483842 keitax C March 27, 2015, 8:32 a.m. OK PyPy 3 TESTS 96 217 10342400 1600
10705145 SteelRaven C April 14, 2015, 2:33 p.m. OK PyPy 3 TESTS 96 218 11366400 1600
29436963 Qumeric C Aug. 13, 2017, 2:52 p.m. OK PyPy 3 TESTS 96 218 35737600 1600
65758953 Mohamed_Ayman C Nov. 26, 2019, 3:04 p.m. OK PyPy 3 TESTS 96 233 10444800 1600
10479374 minimario C March 26, 2015, 9:34 p.m. OK PyPy 3 TESTS 96 249 10137600 1600
17127324 ximo C April 2, 2016, 9:29 a.m. OK PyPy 3 TESTS 96 280 35532800 1600
24521755 vjudge3 C Feb. 8, 2017, 8:38 a.m. OK PyPy 3 TESTS 96 326 33689600 1600
69996128 beethoven97 C Feb. 1, 2020, 9:46 p.m. OK PyPy 3 TESTS 96 343 14848000 1600
10602474 xxdxx C April 5, 2015, 1:42 p.m. OK Python 2 TESTS 96 156 5427200 1600
10609563 heshenghuan C April 6, 2015, 7:29 a.m. OK Python 2 TESTS 96 156 5427200 1600
10539173 data_h C April 1, 2015, 7:21 a.m. OK Python 2 TESTS 96 171 5324800 1600
13461542 chaosagent C Oct. 6, 2015, 8:19 p.m. OK Python 2 TESTS 96 171 5324800 1600
11273873 shark_insider C May 26, 2015, 5:47 a.m. OK Python 2 TESTS 96 171 5324800 1600
13461509 chaosagent C Oct. 6, 2015, 8:17 p.m. OK Python 2 TESTS 96 171 5427200 1600
13461523 chaosagent C Oct. 6, 2015, 8:18 p.m. OK Python 2 TESTS 96 171 5427200 1600
10479306 El_Ectric C March 26, 2015, 9:26 p.m. OK Python 2 TESTS 96 171 5427200 1600
15634519 Rmitone C Jan. 28, 2016, 6:16 p.m. OK Python 2 TESTS 96 171 5632000 1600
14292374 miguelcp646 C Nov. 16, 2015, 3:29 a.m. OK Python 2 TESTS 96 171 5632000 1600
15761396 orailly C Feb. 3, 2016, 3:16 a.m. OK Python 3 TESTS 96 140 7680000 1600
14422985 yongzhong C Nov. 23, 2015, 8:01 a.m. OK Python 3 TESTS 96 140 7680000 1600
10701963 ttbxxls C April 14, 2015, 9:16 a.m. OK Python 3 TESTS 96 155 7680000 1600
14851499 John_Kepplers C Dec. 17, 2015, 9:07 p.m. OK Python 3 TESTS 96 155 8294400 1600
14866920 John_Kepplers C Dec. 18, 2015, 7:26 p.m. OK Python 3 TESTS 96 156 7270400 1600
10553237 merolish C April 2, 2015, 5 p.m. OK Python 3 TESTS 96 156 7680000 1600
10481204 kyavenoko C March 27, 2015, 3:07 a.m. OK Python 3 TESTS 96 171 7372800 1600
14775356 vks C Dec. 12, 2015, 5:12 p.m. OK Python 3 TESTS 96 171 7577600 1600
10477485 RFShahrear C March 26, 2015, 7:22 p.m. OK Python 3 TESTS 96 171 7680000 1600
10482009 longbiau C March 27, 2015, 5:07 a.m. OK Python 3 TESTS 96 171 7680000 1600
11021438 ving.xia C May 7, 2015, 1:57 p.m. OK Ruby TESTS 96 296 20889600 1600
10742784 ancv1990 C April 16, 2015, 3:17 p.m. OK Ruby TESTS 96 311 18124800 1600
11269197 RoundheadOFF C May 25, 2015, 6:48 p.m. OK Scala TESTS 96 358 204800 1600
10477412 BeiZero C March 26, 2015, 7:20 p.m. OK Scala TESTS 96 358 307200 1600
10547920 BeiZero C April 2, 2015, 5:30 a.m. OK Scala TESTS 96 374 409600 1600
10547967 BeiZero C April 2, 2015, 5:44 a.m. OK Scala TESTS 96 389 409600 1600
10664606 gnob C April 12, 2015, 9:01 a.m. OK Scala TESTS 96 405 409600 1600

remove filters

Back to search problems