Codeforces Round 182 (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
301 Codeforces Round 182 (Div. 1) FINISHED False 7200 364053299 May 5, 2013, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3088 ) A Yaroslav and Sequence PROGRAMMING constructive algorithms 1800

B'Yaroslav has an array, consisting of (2 xc2 xb7n xe2 x80 x89- xe2 x80 x891) integers. In a single operation Yaroslav can change the sign of exactly n elements in the array. In other words, in one operation Yaroslav can select exactly n array elements, and multiply each of them by -1. Yaroslav is now wondering: what maximum sum of array elements can be obtained if it is allowed to perform any number of described operations? Help Yaroslav. The first line contains an integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). The second line contains (2 xc2 xb7n xe2 x80 x89- xe2 x80 x891) integers -- the array elements. The array elements do not exceed 1000 in their absolute value. In a single line print the answer to the problem -- the maximum sum that Yaroslav can get. In the first sample you do not need to change anything. The sum of elements equals 150. In the second sample you need to change the sign of the first two elements. Then we get the sum of the elements equal to 100.'...

Tutorials

Codeforces Round #182 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3675557 Gassa A May 5, 2013, 4:25 p.m. OK D TESTS 49 15 0 1800
3854496 Corkscrew A June 10, 2013, 3:28 p.m. OK Delphi TESTS 49 15 102400 1800
3769196 IgorL A May 25, 2013, 1:38 p.m. OK Delphi TESTS 49 15 102400 1800
3687897 AleksanderBalobanov A May 6, 2013, 5:09 p.m. OK Delphi TESTS 49 15 102400 1800
3680567 Flyrise A May 5, 2013, 5:27 p.m. OK Delphi TESTS 49 15 102400 1800
3674779 Timur_Keks A May 5, 2013, 4:19 p.m. OK Delphi TESTS 49 15 102400 1800
3673706 Golovanov399 A May 5, 2013, 4:12 p.m. OK Delphi TESTS 49 15 307200 1800
3682734 Misha100896 A May 5, 2013, 7:54 p.m. OK Delphi TESTS 49 15 409600 1800
3687591 ruban A May 6, 2013, 4:02 p.m. OK Delphi TESTS 49 15 16076800 1800
3686264 MrJigan1488 A May 6, 2013, 11:50 a.m. OK Delphi TESTS 49 15 31436800 1800
3678056 valeriy.stromov A May 5, 2013, 4:50 p.m. OK Delphi TESTS 49 15 31436800 1800
3951754 equi A June 23, 2013, 4:59 p.m. OK FPC TESTS 49 15 0 1800
3830150 vlad107 A June 7, 2013, 6:43 a.m. OK FPC TESTS 49 15 0 1800
3818721 PeterTong97 A June 3, 2013, 12:35 p.m. OK FPC TESTS 49 15 0 1800
3724866 anri-1151 A May 15, 2013, 7:19 p.m. OK FPC TESTS 49 15 0 1800
3699826 _Mao_ A May 10, 2013, 4:01 p.m. OK FPC TESTS 49 15 0 1800
3691215 janko96 A May 7, 2013, 5:27 p.m. OK FPC TESTS 49 15 0 1800
3685202 ig_dug A May 6, 2013, 8:10 a.m. OK FPC TESTS 49 15 0 1800
3683013 Ferathorn A May 5, 2013, 8:14 p.m. OK FPC TESTS 49 15 0 1800
3682916 metalopocalipsis A May 5, 2013, 8:07 p.m. OK FPC TESTS 49 15 0 1800
3682785 Omelianenko A May 5, 2013, 7:56 p.m. OK FPC TESTS 49 15 0 1800
3768056 idemura A May 25, 2013, 7:14 a.m. OK GNU C TESTS 49 15 0 1800
3701467 llkpersonal A May 11, 2013, 9:30 a.m. OK GNU C TESTS 49 15 0 1800
3699891 aNightMar3 A May 10, 2013, 4:19 p.m. OK GNU C TESTS 49 15 0 1800
3685782 Sunnat A May 6, 2013, 10:10 a.m. OK GNU C TESTS 49 15 0 1800
3687959 cpy A May 6, 2013, 5:23 p.m. OK GNU C TESTS 49 15 204800 1800
3687935 cpy A May 6, 2013, 5:19 p.m. OK GNU C TESTS 49 15 204800 1800
3687910 cpy A May 6, 2013, 5:12 p.m. OK GNU C TESTS 49 15 204800 1800
6030796 houxin A March 16, 2014, 3:22 p.m. OK GNU C TESTS 49 30 0 1800
5083495 vis10326 A Nov. 13, 2013, 11:04 a.m. OK GNU C TESTS 49 30 0 1800
4437157 OmaaarZ A Sept. 9, 2013, 9:10 p.m. OK GNU C TESTS 49 30 0 1800
4931411 AlexandraLi A Oct. 30, 2013, 12:45 a.m. OK GNU C++ TESTS 49 15 0 1800
4918556 pumpkinsm A Oct. 28, 2013, 9:39 a.m. OK GNU C++ TESTS 49 15 0 1800
4164961 xxx_stu A July 25, 2013, 4:31 p.m. OK GNU C++ TESTS 49 15 0 1800
4145579 netman A July 24, 2013, 8:17 a.m. OK GNU C++ TESTS 49 15 0 1800
4145577 ebedkm A July 24, 2013, 8:17 a.m. OK GNU C++ TESTS 49 15 0 1800
4126612 hhoomn A July 21, 2013, 6:33 a.m. OK GNU C++ TESTS 49 15 0 1800
4096237 wiser A July 18, 2013, 3:55 a.m. OK GNU C++ TESTS 49 15 0 1800
4094122 al2 A July 17, 2013, 6:33 p.m. OK GNU C++ TESTS 49 15 0 1800
4082416 heduenas A July 16, 2013, 7:43 p.m. OK GNU C++ TESTS 49 15 0 1800
4059170 onmylove A July 13, 2013, 10:33 a.m. OK GNU C++ TESTS 49 15 0 1800
3883371 cska63 A June 14, 2013, 1:55 p.m. OK GNU C++0x TESTS 49 15 0 1800
3785646 freak93 A May 27, 2013, 10:16 p.m. OK GNU C++0x TESTS 49 15 0 1800
3723685 discover. A May 15, 2013, 1:34 p.m. OK GNU C++0x TESTS 49 15 0 1800
3719286 icyrhyme A May 14, 2013, 7:40 a.m. OK GNU C++0x TESTS 49 15 0 1800
3691154 tarni A May 7, 2013, 5:07 p.m. OK GNU C++0x TESTS 49 15 0 1800
3688929 itytwt A May 7, 2013, 3:07 a.m. OK GNU C++0x TESTS 49 15 0 1800
3687338 tatsuhiro.t A May 6, 2013, 3:18 p.m. OK GNU C++0x TESTS 49 15 0 1800
3686062 Isaacpei A May 6, 2013, 11:12 a.m. OK GNU C++0x TESTS 49 15 0 1800
3685361 E_Fantacy A May 6, 2013, 8:45 a.m. OK GNU C++0x TESTS 49 15 0 1800
3685288 fairylights A May 6, 2013, 8:27 a.m. OK GNU C++0x TESTS 49 15 0 1800
32511336 RobeZH A Nov. 20, 2017, 9:05 p.m. OK GNU C++11 TESTS 49 30 0 1800
31023340 KagamiharaNadeshiko A Oct. 5, 2017, 8:46 a.m. OK GNU C++11 TESTS 49 30 0 1800
30666693 wfj_2048 A Sept. 24, 2017, 1:14 p.m. OK GNU C++11 TESTS 49 30 0 1800
30558305 div24ever A Sept. 20, 2017, 6:34 p.m. OK GNU C++11 TESTS 49 30 0 1800
27714285 chaxy_2000 A June 11, 2017, 3:37 a.m. OK GNU C++11 TESTS 49 30 0 1800
27276703 sudarshanabcd A May 22, 2017, 3:54 a.m. OK GNU C++11 TESTS 49 30 0 1800
27118683 thecarrot A May 15, 2017, 9:37 a.m. OK GNU C++11 TESTS 49 30 0 1800
21853600 fly100 A Oct. 28, 2016, 5:24 p.m. OK GNU C++11 TESTS 49 30 0 1800
21116908 Alhamoush_nour A Oct. 2, 2016, 2:07 p.m. OK GNU C++11 TESTS 49 30 0 1800
19607837 mjhun A Aug. 4, 2016, 2:21 a.m. OK GNU C++11 TESTS 49 30 0 1800
32514258 OneDimension A Nov. 21, 2017, 2:10 a.m. OK GNU C++14 TESTS 49 30 0 1800
32159152 gkevinyen5418 A Nov. 9, 2017, 1:34 p.m. OK GNU C++14 TESTS 49 30 0 1800
31832943 pushpendra1997 A Oct. 28, 2017, 10:54 a.m. OK GNU C++14 TESTS 49 30 0 1800
31288483 JustAni A Oct. 14, 2017, 3:38 a.m. OK GNU C++14 TESTS 49 30 0 1800
31281719 samyakjain A Oct. 13, 2017, 5:54 p.m. OK GNU C++14 TESTS 49 30 0 1800
31280520 XORier A Oct. 13, 2017, 4:56 p.m. OK GNU C++14 TESTS 49 30 0 1800
30533562 Gabriel98 A Sept. 20, 2017, 3:24 a.m. OK GNU C++14 TESTS 49 30 0 1800
30376286 ihave33cm A Sept. 16, 2017, 4:57 a.m. OK GNU C++14 TESTS 49 30 0 1800
30098562 pirate_47 A Sept. 5, 2017, 12:03 p.m. OK GNU C++14 TESTS 49 30 0 1800
30024426 ujjalpal04091997 A Sept. 3, 2017, 5 a.m. OK GNU C++14 TESTS 49 30 0 1800
40569751 thenymphsofdelphi A July 20, 2018, 7:30 a.m. OK GNU C++17 TESTS 49 30 0 1800
44115743 Akikaze A Oct. 11, 2018, 2:04 p.m. OK GNU C++17 TESTS 49 30 204800 1800
45358641 ranger__ A Nov. 6, 2018, 8:53 a.m. OK GNU C++17 TESTS 49 30 9523200 1800
68034752 Ditya.Azrael- A Jan. 1, 2020, 11:24 a.m. OK GNU C++17 TESTS 49 60 0 1800
50316925 Ninja__ A Feb. 22, 2019, 12:43 p.m. OK GNU C++17 TESTS 49 60 0 1800
40638601 935963004 A July 22, 2018, 2:30 p.m. OK GNU C++17 TESTS 49 60 0 1800
66610552 sammithkanur A Dec. 10, 2019, 9:14 p.m. OK GNU C++17 TESTS 49 60 204800 1800
69610424 valerikk A Jan. 27, 2020, 11:18 a.m. OK GNU C++17 TESTS 49 62 0 1800
69605945 ST_C A Jan. 27, 2020, 9:44 a.m. OK GNU C++17 TESTS 49 62 0 1800
68767900 viplaw_s A Jan. 14, 2020, 10:39 a.m. OK GNU C++17 TESTS 49 62 0 1800
3683339 Martynas A May 5, 2013, 9:01 p.m. OK Go TESTS 49 15 716800 1800
3678645 cojna A May 5, 2013, 4:57 p.m. OK Haskell TESTS 49 15 0 1800
4449321 DimsFromDergachy A Sept. 12, 2013, 6:21 p.m. OK Haskell TESTS 49 30 0 1800
3675030 uwi A May 5, 2013, 4:21 p.m. OK Java 6 TESTS 49 78 0 1800
3674417 ika A May 5, 2013, 4:17 p.m. OK Java 6 TESTS 49 78 102400 1800
4072005 ffao A July 15, 2013, 2:25 a.m. OK Java 6 TESTS 49 78 2252800 1800
4059706 code_rishabh A July 13, 2013, 12:59 p.m. OK Java 6 TESTS 49 78 2252800 1800
3685551 monyone A May 6, 2013, 9:25 a.m. OK Java 6 TESTS 49 93 0 1800
3683332 ihkus A May 5, 2013, 8:59 p.m. OK Java 6 TESTS 49 93 0 1800
3678372 emo A May 5, 2013, 4:54 p.m. OK Java 6 TESTS 49 93 0 1800
3673997 ivan.popelyshev A May 5, 2013, 4:14 p.m. OK Java 6 TESTS 49 93 0 1800
4108537 DoublePointer A July 19, 2013, 10:03 p.m. OK Java 6 TESTS 49 93 102400 1800
3674268 Galkowsky A May 5, 2013, 4:16 p.m. OK Java 6 TESTS 49 93 102400 1800
3762316 vsb A May 23, 2013, 9:04 p.m. OK Java 7 TESTS 49 78 0 1800
3713674 Youw A May 12, 2013, 5:45 p.m. OK Java 7 TESTS 49 78 0 1800
3713650 Youw A May 12, 2013, 5:40 p.m. OK Java 7 TESTS 49 78 0 1800
3697594 watson A May 9, 2013, 9:34 p.m. OK Java 7 TESTS 49 78 0 1800
3695225 karzler A May 9, 2013, 7:09 a.m. OK Java 7 TESTS 49 78 0 1800
3689588 ftiasch A May 7, 2013, 8:31 a.m. OK Java 7 TESTS 49 78 0 1800
3685090 qwerty787788 A May 6, 2013, 7:41 a.m. OK Java 7 TESTS 49 78 0 1800
3682249 SergeyLazarev A May 5, 2013, 6 p.m. OK Java 7 TESTS 49 78 0 1800
3680661 nickbuelich A May 5, 2013, 5:29 p.m. OK Java 7 TESTS 49 78 0 1800
3678490 fetetriste A May 5, 2013, 4:55 p.m. OK Java 7 TESTS 49 78 0 1800
48047678 xoszm A Jan. 7, 2019, 5:38 a.m. OK Java 8 TESTS 49 218 0 1800
21974665 Riff_Raff A Nov. 1, 2016, 5:27 p.m. OK Java 8 TESTS 49 218 0 1800
11246980 poikniok A May 24, 2015, 6:43 a.m. OK Java 8 TESTS 49 218 0 1800
28545390 tomdmitriev A July 14, 2017, 10:25 a.m. OK Java 8 TESTS 49 218 20582400 1800
48043179 Ahmed.Shawky A Jan. 6, 2019, 9:54 p.m. OK Java 8 TESTS 49 248 0 1800
40489311 KulikAlex A July 17, 2018, 7:04 p.m. OK Java 8 TESTS 49 248 0 1800
32235356 Maulik_Patel A Nov. 12, 2017, 5:45 a.m. OK Java 8 TESTS 49 248 0 1800
38010389 alibaba A May 8, 2018, 3:10 a.m. OK Java 8 TESTS 49 248 20684800 1800
36700481 amolpratap007 A March 28, 2018, 5:36 p.m. OK Java 8 TESTS 49 248 20684800 1800
49153502 rickychandra A Jan. 29, 2019, 1:01 p.m. OK Java 8 TESTS 49 278 0 1800
3784584 dwoolley3 A May 27, 2013, 2:10 p.m. OK Mono C# TESTS 49 46 307200 1800
3678345 fiver A May 5, 2013, 4:53 p.m. OK MS C# TESTS 49 62 5017600 1800
15190099 og.kostya A Jan. 5, 2016, 10:39 a.m. OK MS C# TESTS 49 92 0 1800
15180492 og.kostya A Jan. 4, 2016, 11:47 a.m. OK MS C# TESTS 49 154 102400 1800
4122414 Silent_coder A July 20, 2013, 4:58 p.m. OK MS C++ TESTS 49 15 0 1800
3999374 Mosyagin A July 1, 2013, 11:57 a.m. OK MS C++ TESTS 49 15 0 1800
3992249 bidzilya A June 29, 2013, 2:51 p.m. OK MS C++ TESTS 49 15 0 1800
3908832 fastholf A June 17, 2013, 8:47 a.m. OK MS C++ TESTS 49 15 0 1800
3851461 M.Mahdi A June 9, 2013, 4:40 p.m. OK MS C++ TESTS 49 15 0 1800
3851074 Mark_tven A June 9, 2013, 2:42 p.m. OK MS C++ TESTS 49 15 0 1800
3825553 tomas.svab A June 5, 2013, 5:19 p.m. OK MS C++ TESTS 49 15 0 1800
3830193 XilinX A June 7, 2013, 6:59 a.m. OK MS C++ TESTS 49 15 0 1800
4168263 vjudge1 A July 26, 2013, 8:06 a.m. OK MS C++ TESTS 49 15 0 1800
4168241 vjudge3 A July 26, 2013, 8:02 a.m. OK MS C++ TESTS 49 15 0 1800
60122747 sladkayaKlubnichka A Sept. 5, 2019, 4:18 p.m. OK MS C++ 2017 TESTS 49 92 0 1800
29121795 cchao A Aug. 2, 2017, 7:52 a.m. OK PyPy 2 TESTS 49 124 21913600 1800
26120704 0w1 A April 4, 2017, 11:40 a.m. OK PyPy 3 TESTS 49 218 23142400 1800
67194629 hjq000 A Dec. 19, 2019, 8:32 a.m. OK PyPy 3 TESTS 49 312 0 1800
3715885 snorlaxzxz A May 13, 2013, 9:28 a.m. OK Python 2 TESTS 49 46 0 1800
3689634 howlet A May 7, 2013, 8:45 a.m. OK Python 2 TESTS 49 46 0 1800
3689633 lcytzk A May 7, 2013, 8:45 a.m. OK Python 2 TESTS 49 46 0 1800
3683274 m1_k3 A May 5, 2013, 8:50 p.m. OK Python 2 TESTS 49 46 0 1800
3677270 stoundmire A May 5, 2013, 4:41 p.m. OK Python 2 TESTS 49 46 204800 1800
4079381 tigupine A July 16, 2013, 7:22 a.m. OK Python 2 TESTS 49 62 0 1800
3829391 Luxo A June 6, 2013, 9:20 p.m. OK Python 2 TESTS 49 62 0 1800
3792930 goooooooopan A May 30, 2013, 4:10 a.m. OK Python 2 TESTS 49 62 0 1800
3702292 av.driftking A May 11, 2013, 11:53 a.m. OK Python 2 TESTS 49 62 0 1800
3692362 xin.liang1989 A May 8, 2013, 7:53 a.m. OK Python 2 TESTS 49 62 0 1800
3700672 asdsteven2 A May 11, 2013, 1:29 a.m. OK Python 3 TESTS 49 93 0 1800
3677906 ergatis A May 5, 2013, 4:48 p.m. OK Python 3 TESTS 49 93 102400 1800
3700674 asdsteven2 A May 11, 2013, 1:30 a.m. OK Python 3 TESTS 49 109 0 1800
6716578 scanhex A May 26, 2014, 3:30 p.m. OK Python 3 TESTS 49 124 0 1800
5342969 yugle7 A Dec. 3, 2013, 2:04 p.m. OK Python 3 TESTS 49 124 0 1800
19639822 orailly A Aug. 4, 2016, 9:43 p.m. OK Python 3 TESTS 49 124 4608000 1800
18543222 Punter A June 17, 2016, 1:03 p.m. OK Python 3 TESTS 49 154 0 1800
7652134 Eeyore A Aug. 31, 2014, 8:42 a.m. OK Python 3 TESTS 49 154 0 1800
34192594 surajsirvi88 A Jan. 15, 2018, 9:03 a.m. OK Python 3 TESTS 49 154 5632000 1800
7651101 Eeyore A Aug. 31, 2014, 6:10 a.m. OK Python 3 TESTS 49 184 0 1800
3732003 squallkt A May 18, 2013, 3:37 a.m. OK Ruby TESTS 49 46 0 1800
3686566 bakabakashyoshyo A May 6, 2013, 12:43 p.m. OK Ruby TESTS 49 46 0 1800
3674373 watashi A May 5, 2013, 4:17 p.m. OK Ruby TESTS 49 62 0 1800
3718495 sweiss A May 13, 2013, 10:57 p.m. OK Scala TESTS 49 328 102400 1800
3700610 dlrowolleh A May 10, 2013, 11:55 p.m. OK Scala TESTS 49 343 0 1800

remove filters

Back to search problems