Codeforces Round 242 (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
424 Codeforces Round 242 (Div. 2) FINISHED False 7200 339289197 April 25, 2014, 7 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5530 ) C Magic Formulas PROGRAMMING math 1600

B'People in the Tomskaya region like magic formulas very much. You can see some of them below. Imagine you are given a sequence of positive integer numbers p1, p2, ..., pn. Lets write down some magic formulas: Here, "mod" means the operation of taking the residue after dividing. The expression means applying the bitwise xor (excluding "OR") operation to integers x and y. The given operation exists in all modern programming languages. For example, in languages C++ and Java it is represented by "^", in Pascal -- by "xor". People in the Tomskaya region like magic formulas very much, but they don 't like to calculate them! Therefore you are given the sequence p, calculate the value of Q. The first line of the input contains the only integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106). The next line contains n integers: p1, xe2 x80 x89p2, xe2 x80 x89..., xe2 x80 x89pn (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7109). The only line of output should contain a single integer -- the value of Q.'...

Tutorials

Codeforces Round #242 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6510874 cpy C April 30, 2014, 1:46 p.m. OK D TESTS 50 498 8192000 1600
6509612 cpy C April 30, 2014, 9:07 a.m. OK D TESTS 50 545 13312000 1600
6475924 Anton-Spitamen C April 25, 2014, 10:41 p.m. OK Delphi TESTS 50 155 3993600 1600
6468597 ruban C April 25, 2014, 8:30 a.m. OK Delphi TESTS 50 233 48128000 1600
7896402 Valerich C Sept. 21, 2014, 12:05 p.m. OK FPC TESTS 50 187 3993600 1600
7742576 Hotrood C Sept. 11, 2014, 1:14 p.m. OK FPC TESTS 50 187 3993600 1600
7203745 irevt C July 22, 2014, 5:04 p.m. OK FPC TESTS 50 187 3993600 1600
6521612 ghostmath C May 2, 2014, 10:43 a.m. OK FPC TESTS 50 187 3993600 1600
7566484 vanyak999 C Aug. 24, 2014, 12:23 p.m. OK FPC TESTS 50 187 7987200 1600
17271250 vladKB1 C April 10, 2016, 8:30 p.m. OK FPC TESTS 50 187 12083200 1600
12131253 DenXman123 C July 20, 2015, 1:47 p.m. OK FPC TESTS 50 202 3993600 1600
9485332 BenderRodriguez C Jan. 20, 2015, 2:33 p.m. OK FPC TESTS 50 202 3993600 1600
6554453 daksenik C May 5, 2014, 11:09 a.m. OK FPC TESTS 50 202 3993600 1600
6517176 AmirAz C May 1, 2014, 3:03 p.m. OK FPC TESTS 50 202 3993600 1600
6474391 BUPT_birdstorm C April 25, 2014, 3:53 p.m. OK GNU C TESTS 50 77 0 1600
6468301 Tebak_Siapa_Aku C April 25, 2014, 8:22 a.m. OK GNU C TESTS 50 202 102400 1600
6661498 Tried C May 20, 2014, 8:39 a.m. OK GNU C TESTS 50 202 3993600 1600
6506505 surjection C April 29, 2014, 2:52 p.m. OK GNU C TESTS 50 202 3993600 1600
6476349 qq243887 C April 26, 2014, 2:46 a.m. OK GNU C TESTS 50 202 4505600 1600
26408054 the_skinny_one C April 16, 2017, 8:17 a.m. OK GNU C TESTS 50 202 5939200 1600
26407059 the_skinny_one C April 16, 2017, 7:29 a.m. OK GNU C TESTS 50 202 5939200 1600
12062852 mortaza9 C July 15, 2015, 12:34 a.m. OK GNU C TESTS 50 202 7987200 1600
7037398 vjudge1 C July 7, 2014, 4:19 a.m. OK GNU C TESTS 50 202 7987200 1600
6467839 ZYY C April 25, 2014, 8:08 a.m. OK GNU C TESTS 50 202 7987200 1600
6473282 MisakaMisakaMisaka C April 25, 2014, 1:11 p.m. OK GNU C++ TESTS 50 61 3993600 1600
27558093 vjudge5 C June 4, 2017, 7:46 a.m. OK GNU C++ TESTS 50 62 3788800 1600
11036475 kuroko C May 7, 2015, 10:26 p.m. OK GNU C++ TESTS 50 62 3993600 1600
7808579 Pudge123 C Sept. 16, 2014, 11:36 a.m. OK GNU C++ TESTS 50 62 3993600 1600
6835091 Hagentern C June 8, 2014, 4:56 a.m. OK GNU C++ TESTS 50 62 3993600 1600
6470598 qqspeed C April 25, 2014, 9:28 a.m. OK GNU C++ TESTS 50 62 3993600 1600
6466008 eddy1021 C April 25, 2014, 7:28 a.m. OK GNU C++ TESTS 50 62 3993600 1600
10826050 teoionescu C April 22, 2015, 4:50 p.m. OK GNU C++ TESTS 50 62 6348800 1600
27556466 vjudge3 C June 4, 2017, 5:59 a.m. OK GNU C++ TESTS 50 62 7987200 1600
6520335 King_George C May 2, 2014, 5:52 a.m. OK GNU C++ TESTS 50 62 11980800 1600
6477787 OmaeWaMouShenDeiru C April 26, 2014, 8:25 a.m. OK GNU C++0x TESTS 50 62 0 1600
7249382 hehaodele C July 26, 2014, 11:06 a.m. OK GNU C++0x TESTS 50 62 3993600 1600
6474573 OmaeWaMouShenDeiru C April 25, 2014, 4:18 p.m. OK GNU C++0x TESTS 50 62 3993600 1600
6474568 OmaeWaMouShenDeiru C April 25, 2014, 4:17 p.m. OK GNU C++0x TESTS 50 92 3993600 1600
6466539 duo C April 25, 2014, 7:38 a.m. OK GNU C++0x TESTS 50 140 3993600 1600
6491412 RedOne C April 27, 2014, 4:40 p.m. OK GNU C++0x TESTS 50 140 3993600 1600
6475333 nic11 C April 25, 2014, 6:50 p.m. OK GNU C++0x TESTS 50 140 3993600 1600
6467741 luszczyk C April 25, 2014, 8:05 a.m. OK GNU C++0x TESTS 50 140 4198400 1600
8234923 Bidhan C Oct. 15, 2014, 8:11 a.m. OK GNU C++0x TESTS 50 140 7987200 1600
6465250 MrDindows C April 25, 2014, 7:18 a.m. OK GNU C++0x TESTS 50 140 11980800 1600
59329427 luogu_bot4 C Aug. 22, 2019, 11:30 p.m. OK GNU C++11 TESTS 50 61 7987200 1600
64615009 __psy__cho C Nov. 10, 2019, 4:16 a.m. OK GNU C++11 TESTS 50 62 3788800 1600
22053375 Vladik C Nov. 5, 2016, 10:13 a.m. OK GNU C++11 TESTS 50 62 3993600 1600
18855037 VAVAvile C July 2, 2016, 1:48 p.m. OK GNU C++11 TESTS 50 62 3993600 1600
18434157 I_Love_Equinox C June 13, 2016, 6:36 p.m. OK GNU C++11 TESTS 50 77 10137600 1600
18887747 spk C July 4, 2016, 6:30 p.m. OK GNU C++11 TESTS 50 77 23961600 1600
38318609 yanyidu C May 16, 2018, 11:23 a.m. OK GNU C++11 TESTS 50 93 11673600 1600
25820604 plokmijn C March 26, 2017, 1:40 p.m. OK GNU C++11 TESTS 50 109 18124800 1600
56026862 xiaolin3 C June 25, 2019, 7:21 a.m. OK GNU C++11 TESTS 50 186 3993600 1600
50931148 Hagrasss C March 7, 2019, 2 p.m. OK GNU C++11 TESTS 50 186 3993600 1600
47546988 mini4141 C Dec. 27, 2018, 10:44 a.m. OK GNU C++14 TESTS 50 202 3993600 1600
36256865 Audrey_H C March 13, 2018, 5:20 p.m. OK GNU C++14 TESTS 50 217 5939200 1600
29264312 acka1357 C Aug. 7, 2017, 12:13 p.m. OK GNU C++14 TESTS 50 217 9932800 1600
42725124 Reventon C Sept. 10, 2018, 7 a.m. OK GNU C++14 TESTS 50 218 4300800 1600
68369108 iAmrifat C Jan. 7, 2020, 5:04 p.m. OK GNU C++14 TESTS 50 233 16076800 1600
54363268 sabertooth C May 18, 2019, 10:46 p.m. OK GNU C++14 TESTS 50 249 3993600 1600
29709604 vjudge1 C Aug. 23, 2017, 2:14 p.m. OK GNU C++14 TESTS 50 249 4403200 1600
64533428 Rayleigh C Nov. 8, 2019, 4:11 p.m. OK GNU C++14 TESTS 50 264 3993600 1600
60586409 rusau C Sept. 14, 2019, 9:35 p.m. OK GNU C++14 TESTS 50 264 3993600 1600
53877488 Gazra C May 8, 2019, 12:47 p.m. OK GNU C++14 TESTS 50 264 3993600 1600
42747487 dmkozyrev C Sept. 10, 2018, 8:42 p.m. OK GNU C++17 TESTS 50 233 3993600 1600
45995358 vjudge1 C Nov. 20, 2018, 12:04 p.m. OK GNU C++17 TESTS 50 233 8294400 1600
58135066 Abdelrahman_Mohammed C Aug. 1, 2019, 3:46 p.m. OK GNU C++17 TESTS 50 264 3993600 1600
65034193 sr4saurabh C Nov. 15, 2019, 11:03 a.m. OK GNU C++17 TESTS 50 265 3993600 1600
56533805 otaliptus C July 4, 2019, 9:57 p.m. OK GNU C++17 TESTS 50 265 3993600 1600
45803022 vjudge5 C Nov. 16, 2018, 2:22 p.m. OK GNU C++17 TESTS 50 265 24268800 1600
56284033 RickFlag C June 29, 2019, 6:27 p.m. OK GNU C++17 TESTS 50 280 0 1600
69544965 Ehab_Fawzy C Jan. 26, 2020, 1:31 a.m. OK GNU C++17 TESTS 50 280 3993600 1600
66201921 vjudge1 C Dec. 2, 2019, 9:51 p.m. OK GNU C++17 TESTS 50 280 3993600 1600
66009146 vjudge3 C Nov. 30, 2019, 1:06 a.m. OK GNU C++17 TESTS 50 280 3993600 1600
6468194 cojna C April 25, 2014, 8:19 a.m. OK Haskell TESTS 50 155 25292800 1600
68408852 Baroudy C Jan. 8, 2020, 4:08 p.m. OK Java 11 TESTS 50 436 42188800 1600
65781663 Leks360 C Nov. 26, 2019, 8:06 p.m. OK Java 11 TESTS 50 1403 5427200 1600
6466623 wackloner C April 25, 2014, 7:39 a.m. OK Java 6 TESTS 50 124 0 1600
6468683 lazzrov C April 25, 2014, 8:33 a.m. OK Java 6 TESTS 50 155 0 1600
6480344 n1tz53 C April 26, 2014, 6:05 p.m. OK Java 6 TESTS 50 342 0 1600
6466601 fayyaz C April 25, 2014, 7:39 a.m. OK Java 6 TESTS 50 358 88473600 1600
7622217 mkirsche C Aug. 29, 2014, 2:42 p.m. OK Java 6 TESTS 50 358 92672000 1600
8324288 xiaowuc1 C Oct. 19, 2014, 10:49 p.m. OK Java 6 TESTS 50 358 92672000 1600
7671760 maitony C Sept. 3, 2014, 4:36 a.m. OK Java 6 TESTS 50 358 92672000 1600
6495094 Mohamed.Ramzy C April 27, 2014, 6:14 p.m. OK Java 6 TESTS 50 655 147968000 1600
6472505 bohuss C April 25, 2014, 11:44 a.m. OK Java 6 TESTS 50 1091 129228800 1600
6484650 _null C April 27, 2014, 2:16 p.m. OK Java 6 TESTS 50 1669 102400 1600
7514998 TranCongDuy C Aug. 20, 2014, 9:58 a.m. OK Java 7 TESTS 50 124 0 1600
7364164 nguyenmanhphuc C Aug. 7, 2014, 1:22 a.m. OK Java 7 TESTS 50 124 0 1600
7362263 Duy C Aug. 6, 2014, 4:19 p.m. OK Java 7 TESTS 50 124 0 1600
7361362 haminhngoc C Aug. 6, 2014, 1:50 p.m. OK Java 7 TESTS 50 124 0 1600
7678270 kmatsunaga C Sept. 4, 2014, 1:27 a.m. OK Java 7 TESTS 50 139 0 1600
10565328 siddv C April 3, 2015, 11:32 p.m. OK Java 7 TESTS 50 140 0 1600
6479748 Ziklon C April 26, 2014, 3:21 p.m. OK Java 7 TESTS 50 171 0 1600
6483977 THG33 C April 27, 2014, 12:05 p.m. OK Java 7 TESTS 50 171 0 1600
7863097 hama-du C Sept. 20, 2014, 7:20 a.m. OK Java 7 TESTS 50 171 11571200 1600
9406639 hiro116s C Jan. 12, 2015, 7:28 a.m. OK Java 7 TESTS 50 265 0 1600
39964195 wrong_lemma C July 4, 2018, 6:30 p.m. OK Java 8 TESTS 50 155 0 1600
57328700 chojh1222 C July 19, 2019, 1:14 p.m. OK Java 8 TESTS 50 155 2150400 1600
68838844 johnny16 C Jan. 15, 2020, 4:50 a.m. OK Java 8 TESTS 50 155 15360000 1600
27416205 kunalk C May 28, 2017, 4:01 p.m. OK Java 8 TESTS 50 171 0 1600
45505188 mandark27 C Nov. 10, 2018, 10:05 a.m. OK Java 8 TESTS 50 171 6041600 1600
30570694 Maulik_Patel C Sept. 21, 2017, 8:10 a.m. OK Java 8 TESTS 50 171 6656000 1600
34197738 parth_15 C Jan. 15, 2018, 1:19 p.m. OK Java 8 TESTS 50 186 20787200 1600
30813145 pandusonu C Sept. 28, 2017, 6:18 p.m. OK Java 8 TESTS 50 187 0 1600
19527720 poikniok C July 30, 2016, 11:10 p.m. OK Java 8 TESTS 50 202 0 1600
15751796 JohnnyJi C Feb. 2, 2016, 2:12 p.m. OK Java 8 TESTS 50 202 0 1600
6471838 linhtn47 C April 25, 2014, 10:22 a.m. OK Mono C# TESTS 50 483 107929600 1600
36276492 vjudge5 C March 14, 2018, 1:06 p.m. OK Mono C# TESTS 50 670 174182400 1600
10244596 aladdin3 C March 12, 2015, 8:03 a.m. OK MS C# TESTS 50 124 4096000 1600
9440750 camypaper C Jan. 16, 2015, 6:40 a.m. OK MS C# TESTS 50 140 7884800 1600
6557943 og.kostya C May 5, 2014, 3:15 p.m. OK MS C# TESTS 50 374 104038400 1600
6557936 og.kostya C May 5, 2014, 3:14 p.m. OK MS C# TESTS 50 374 107622400 1600
6470804 Silithus C April 25, 2014, 9:40 a.m. OK MS C# TESTS 50 389 116428800 1600
6470756 Silithus C April 25, 2014, 9:37 a.m. OK MS C# TESTS 50 405 116326400 1600
7546173 gautam_v_s C Aug. 21, 2014, 5:47 p.m. OK MS C# TESTS 50 482 111718400 1600
6483533 goldie C April 27, 2014, 10:41 a.m. OK MS C# TESTS 50 498 108032000 1600
16552469 Mem C March 6, 2016, 1:02 p.m. OK MS C# TESTS 50 529 123084800 1600
6512002 dannsk C April 30, 2014, 5:19 p.m. OK MS C# TESTS 50 530 110592000 1600
6757769 iamexist C May 31, 2014, 3:06 p.m. OK MS C++ TESTS 50 187 0 1600
8490419 Auster C Oct. 30, 2014, 6:39 p.m. OK MS C++ TESTS 50 187 0 1600
6479296 tjk5567764363 C April 26, 2014, 1:40 p.m. OK MS C++ TESTS 50 187 3993600 1600
15160970 NVAL C Jan. 2, 2016, 5:22 p.m. OK MS C++ TESTS 50 187 3993600 1600
6466276 TangSiLoveDingYing C April 25, 2014, 7:33 a.m. OK MS C++ TESTS 50 187 4403200 1600
6467468 whileloop C April 25, 2014, 7:58 a.m. OK MS C++ TESTS 50 187 8806400 1600
6468488 YQCMMD C April 25, 2014, 8:27 a.m. OK MS C++ TESTS 50 187 13209600 1600
6467256 FxF C April 25, 2014, 7:53 a.m. OK MS C++ TESTS 50 202 0 1600
6474791 Scorpy C April 25, 2014, 4:56 p.m. OK MS C++ TESTS 50 202 0 1600
6557968 ccyjava C May 5, 2014, 3:19 p.m. OK MS C++ TESTS 50 202 3891200 1600
49232721 makorro C Jan. 31, 2019, 6:19 a.m. OK MS C++ 2017 TESTS 50 311 11980800 1600
67783984 5_se7n C Dec. 28, 2019, 12:02 p.m. OK MS C++ 2017 TESTS 50 967 7987200 1600
55798920 Claustrophobic_Penguin C June 19, 2019, 6:27 p.m. OK PyPy 2 TESTS 50 327 65638400 1600
21657482 Yash_ C Oct. 22, 2016, 5 a.m. OK PyPy 2 TESTS 50 342 74752000 1600
35861756 ______h______ C March 2, 2018, 10:10 p.m. OK PyPy 2 TESTS 50 343 86835200 1600
35861241 ______i______ C March 2, 2018, 9:58 p.m. OK PyPy 2 TESTS 50 343 86835200 1600
35859743 ______M______ C March 2, 2018, 9:27 p.m. OK PyPy 2 TESTS 50 343 86835200 1600
35861772 ______k______ C March 2, 2018, 10:10 p.m. OK PyPy 2 TESTS 50 343 86835200 1600
35871293 ______u______ C March 3, 2018, 6:46 a.m. OK PyPy 2 TESTS 50 343 86835200 1600
35871188 ______n______ C March 3, 2018, 6:46 a.m. OK PyPy 2 TESTS 50 343 86835200 1600
35870474 _____i_____ C March 3, 2018, 6:28 a.m. OK PyPy 2 TESTS 50 343 86835200 1600
35870463 _____k_____ C March 3, 2018, 6:28 a.m. OK PyPy 2 TESTS 50 343 86835200 1600
52525218 NoInternetName C April 9, 2019, 11:08 a.m. OK PyPy 3 TESTS 50 966 95539200 1600
66454603 chaudhary_19 C Dec. 7, 2019, 12:43 p.m. OK PyPy 3 TESTS 50 1075 77926400 1600
53213105 limabeans C April 24, 2019, 6:56 a.m. OK PyPy 3 TESTS 50 1122 101068800 1600
60234173 Mr.Inconsistent C Sept. 7, 2019, 5:36 p.m. OK PyPy 3 TESTS 50 1279 72499200 1600
60247352 alexara1123 C Sept. 8, 2019, 4 a.m. OK PyPy 3 TESTS 50 1294 76595200 1600
27559538 arpitkath C June 4, 2017, 9:13 a.m. OK Python 2 TESTS 50 1013 53555200 1600
12576093 Hepic_Antony_Skarlatos C Aug. 17, 2015, 1:50 p.m. OK Python 2 TESTS 50 1185 53657600 1600
17694232 DukeOfYork C May 3, 2016, 1:57 a.m. OK Python 2 TESTS 50 1278 58368000 1600
6739588 ngochai94 C May 30, 2014, 10:31 a.m. OK Python 2 TESTS 50 1309 53760000 1600
6717076 loanedstar C May 26, 2014, 5:03 p.m. OK Python 2 TESTS 50 1325 53760000 1600
6519236 squiggly_lines C May 1, 2014, 10:24 p.m. OK Python 2 TESTS 50 1325 53862400 1600
6508582 nealzane C April 30, 2014, 3:45 a.m. OK Python 2 TESTS 50 1326 81408000 1600
6467973 insomniac C April 25, 2014, 8:12 a.m. OK Python 2 TESTS 50 1372 53657600 1600
6667635 terribleimposter C May 21, 2014, 2:26 p.m. OK Python 2 TESTS 50 1403 53657600 1600
6503258 victsou C April 29, 2014, 3:35 a.m. OK Python 2 TESTS 50 1497 65843200 1600
55717197 spellstaker C June 18, 2019, 1:20 p.m. OK Python 3 TESTS 50 1434 57139200 1600
15410802 Emberald C Jan. 17, 2016, 5:06 a.m. OK Python 3 TESTS 50 1450 62976000 1600
10266443 imprtant C March 14, 2015, 5:47 a.m. OK Python 3 TESTS 50 1574 58265600 1600
6470856 broomrider C April 25, 2014, 9:44 a.m. OK Python 3 TESTS 50 1590 86835200 1600
55716777 once_twice C June 18, 2019, 1:06 p.m. OK Python 3 TESTS 50 1591 73420800 1600
13067014 vjudge5 C Sept. 17, 2015, 12:46 p.m. OK Python 3 TESTS 50 1621 86937600 1600
6475142 yugle7 C April 25, 2014, 6:06 p.m. OK Python 3 TESTS 50 1622 74956800 1600
27221229 YazanRi C May 19, 2017, 7:33 p.m. OK Python 3 TESTS 50 1637 73113600 1600
29555675 Koi_ga_umareru C Aug. 18, 2017, 2:38 p.m. OK Python 3 TESTS 50 1716 74547200 1600
28543208 Sheemon7 C July 14, 2017, 8:43 a.m. OK Python 3 TESTS 50 1731 77619200 1600
6468880 acbat C April 25, 2014, 8:40 a.m. OK Ruby TESTS 50 1825 194560000 1600

remove filters

Back to search problems