Codeforces Round 153 (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
251 Codeforces Round 153 (Div. 1) FINISHED False 7200 382890597 Dec. 6, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 483 ) D Two Sets PROGRAMMING bitmasks math 2500

B'Little Petya likes numbers a lot. Recently his mother has presented him a collection of n non-negative integers. There 's only one thing Petya likes more than numbers: playing with little Masha. He immediately decided to give a part of his new collection to her. To make the game even more interesting, Petya decided to give Masha such collection of numbers for which the following conditions fulfill: The xor operation is a bitwise excluding "OR", that is denoted as "xor" in the Pascal language and "^" in C/C++/Java. Help Petya divide the collection as described above. If there are multiple suitable ways to divide it, find any of them. Please note that after Petya gives a part of his numbers to Masha, he may have no numbers left. The reverse situation is also possible, when Petya gives nothing to Masha. In both cases we must assume that the xor of an empty set of numbers equals 0. The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), showing how many numbers Petya 's mother gave him. The second line contains the actual space-separated numbers. They are all integer, non-negative and do not exceed 1018. Print n space-separated integers, the i-th of them should equal either 1, if Petya keeps the number that follows i-th in his collection, or it should equal 2, if Petya gives the corresponding number to Masha. The numbers are indexed in the order in which they are given in the input.'...

Tutorials

Editorial of Codeforces Round #153

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
8795296 SHUXK D Nov. 22, 2014, 4:25 a.m. OK FPC TESTS 69 483 27238400 2500
18069935 Ahriman D May 25, 2016, 11:19 a.m. OK FPC TESTS 69 483 28979200 2500
10524772 louisja1 D March 30, 2015, 1:07 p.m. OK FPC TESTS 69 794 26828800 2500
37345952 vjudge5 D April 15, 2018, 6:56 a.m. OK GNU C++ TESTS 69 62 5222400 2500
25241684 Jin_Haonan D March 5, 2017, 10:53 a.m. OK GNU C++ TESTS 69 62 5324800 2500
40990417 ReaLNero1 D July 30, 2018, 11:54 p.m. OK GNU C++ TESTS 69 77 1740800 2500
20027461 Hermera D Aug. 21, 2016, 1:23 p.m. OK GNU C++ TESTS 69 77 3891200 2500
25202091 AkaneSasu D March 4, 2017, 6:14 a.m. OK GNU C++ TESTS 69 77 4710400 2500
26316694 Stalin. D April 12, 2017, 12:12 p.m. OK GNU C++ TESTS 69 77 5017600 2500
22901732 worcher D Dec. 12, 2016, 10:39 a.m. OK GNU C++ TESTS 69 78 2150400 2500
10550445 2609108028 D April 2, 2015, 12:08 p.m. OK GNU C++ TESTS 69 78 2560000 2500
25160785 dwjshift D March 3, 2017, 12:28 a.m. OK GNU C++ TESTS 69 78 4403200 2500
18647703 hehe0625 D June 22, 2016, 1:52 p.m. OK GNU C++ TESTS 69 78 6144000 2500
9244871 equation314 D Dec. 24, 2014, 3:36 p.m. OK GNU C++0x TESTS 69 93 2048000 2500
9557487 neetenin D Jan. 26, 2015, 7:56 a.m. OK GNU C++0x TESTS 69 109 1228800 2500
3664721 itytwt D May 3, 2013, 1:04 p.m. OK GNU C++0x TESTS 69 125 2560000 2500
2716457 BSBandme D Dec. 7, 2012, 2:52 p.m. OK GNU C++0x TESTS 69 187 6758400 2500
2718541 ILJ D Dec. 8, 2012, 6:15 a.m. OK GNU C++0x TESTS 69 203 1228800 2500
3090897 Robert D Feb. 10, 2013, 3:08 p.m. OK GNU C++0x TESTS 69 375 2457600 2500
2731689 permin D Dec. 8, 2012, 8:09 p.m. OK GNU C++0x TESTS 69 390 6041600 2500
8833755 zshi D Nov. 24, 2014, 11:31 a.m. OK GNU C++0x TESTS 69 623 156262400 2500
9350260 zshi D Jan. 3, 2015, 6:32 a.m. OK GNU C++0x TESTS 69 686 253440000 2500
2786275 ArkChar D Dec. 17, 2012, 9:59 a.m. OK GNU C++0x TESTS 69 875 2457600 2500
48952912 vjudge5 D Jan. 26, 2019, 1:52 a.m. OK GNU C++11 TESTS 69 62 1740800 2500
49819969 CYJJJian D Feb. 12, 2019, 8:18 a.m. OK GNU C++11 TESTS 69 62 3174400 2500
60422226 LJC00118 D Sept. 12, 2019, 6:38 a.m. OK GNU C++11 TESTS 69 77 2048000 2500
49819929 __CYJian__ D Feb. 12, 2019, 8:17 a.m. OK GNU C++11 TESTS 69 77 3174400 2500
25231024 rxdoi D March 5, 2017, 2:30 a.m. OK GNU C++11 TESTS 69 77 4812800 2500
26316606 Stalin. D April 12, 2017, 12:07 p.m. OK GNU C++11 TESTS 69 77 5017600 2500
44526933 vjudge3 D Oct. 19, 2018, 3:33 a.m. OK GNU C++11 TESTS 69 77 9830400 2500
49819538 justin_cao D Feb. 12, 2019, 8:04 a.m. OK GNU C++11 TESTS 69 78 2048000 2500
49820977 luogu_bot5 D Feb. 12, 2019, 8:51 a.m. OK GNU C++11 TESTS 69 78 2150400 2500
49813721 luogu_bot2 D Feb. 12, 2019, 3:52 a.m. OK GNU C++11 TESTS 69 78 3584000 2500
45193187 Tiricabira D Nov. 2, 2018, 4:44 a.m. OK GNU C++14 TESTS 69 109 1331200 2500
27700987 joker_in D June 10, 2017, 6:32 a.m. OK GNU C++14 TESTS 69 109 2457600 2500
20660315 AmberFrame D Sept. 16, 2016, 1:02 p.m. OK GNU C++14 TESTS 69 109 2969600 2500
33827049 ugly2333 D Dec. 31, 2017, 7:55 a.m. OK GNU C++14 TESTS 69 109 3276800 2500
23682647 Shigure1944 D Jan. 10, 2017, 2:23 p.m. OK GNU C++14 TESTS 69 109 5222400 2500
49100550 AghaTizi D Jan. 28, 2019, 11:12 a.m. OK GNU C++14 TESTS 69 124 1638400 2500
27535651 AomeII D June 3, 2017, 4:27 a.m. OK GNU C++14 TESTS 69 124 1945600 2500
40612290 s_h_shahin D July 21, 2018, 3:19 p.m. OK GNU C++14 TESTS 69 124 2457600 2500
54337842 Jester D May 18, 2019, 8:57 a.m. OK GNU C++14 TESTS 69 124 2560000 2500
52476994 nqiiii D April 8, 2019, 12:38 a.m. OK GNU C++14 TESTS 69 124 5222400 2500
51290828 ruo D March 14, 2019, 10:07 a.m. OK GNU C++17 TESTS 69 108 2355200 2500
49169724 Shahriar_CSECU D Jan. 29, 2019, 5:43 p.m. OK GNU C++17 TESTS 69 109 2355200 2500
49104679 dorostmishe D Jan. 28, 2019, 12:40 p.m. OK GNU C++17 TESTS 69 109 4198400 2500
57288281 Vax D July 18, 2019, 3:31 p.m. OK GNU C++17 TESTS 69 124 2355200 2500
47182453 Bubble_age D Dec. 17, 2018, 10:46 p.m. OK GNU C++17 TESTS 69 155 4198400 2500
50923746 vjudge1 D March 7, 2019, 10:46 a.m. OK GNU C++17 TESTS 69 405 2662400 2500
47773323 redotter D Dec. 31, 2018, 12:44 a.m. OK GNU C++17 TESTS 69 936 54681600 2500
61383733 Slaaava D Sept. 27, 2019, 6:19 p.m. OK GNU C++17 TESTS 69 1185 4812800 2500
49100754 MAMBA D Jan. 28, 2019, 11:16 a.m. OK GNU C++17 TESTS 69 1996 32358400 2500
2750806 uwi D Dec. 11, 2012, 11:16 a.m. OK Java 6 TESTS 69 234 204800 2500
2709504 Egor D Dec. 6, 2012, 5:20 p.m. OK Java 6 TESTS 69 234 204800 2500
2750801 uwi D Dec. 11, 2012, 11:13 a.m. OK Java 6 TESTS 69 312 204800 2500
2750773 uwi D Dec. 11, 2012, 11:08 a.m. OK Java 6 TESTS 69 312 204800 2500
2711674 Petr D Dec. 6, 2012, 9:15 p.m. OK Java 6 TESTS 69 343 4096000 2500
2793597 xiaowuc1 D Dec. 19, 2012, 7:48 a.m. OK Java 6 TESTS 69 1578 14540800 2500
2711684 Petr D Dec. 6, 2012, 9:17 p.m. OK Java 6 TESTS 69 1593 3993600 2500
2750754 uwi D Dec. 11, 2012, 11:03 a.m. OK Java 6 TESTS 69 1984 204800 2500
3093618 NiceDay D Feb. 11, 2013, 2:24 p.m. OK Java 7 TESTS 69 234 0 2500
3093650 NiceDay D Feb. 11, 2013, 2:29 p.m. OK Java 7 TESTS 69 312 3891200 2500
3093626 NiceDay D Feb. 11, 2013, 2:25 p.m. OK Java 7 TESTS 69 312 3891200 2500
2719346 FattyPenguin D Dec. 8, 2012, 9:55 a.m. OK Java 7 TESTS 69 359 4096000 2500
2714307 FattyChicken D Dec. 7, 2012, 8:28 a.m. OK Java 7 TESTS 69 578 307200 2500
2711267 OgieKako D Dec. 6, 2012, 8:10 p.m. OK Java 7 TESTS 69 578 307200 2500
2713376 FattyChicken D Dec. 7, 2012, 5:29 a.m. OK Java 7 TESTS 69 1234 48025600 2500
2713351 FattyChicken D Dec. 7, 2012, 5:23 a.m. OK Java 7 TESTS 69 1296 25907200 2500
2822180 sweiss D Dec. 24, 2012, 11:48 a.m. OK Java 7 TESTS 69 1343 18432000 2500
10390038 AlexFetisov D March 21, 2015, 10:40 p.m. OK Java 8 TESTS 69 265 2150400 2500
12779560 hotsnr D Aug. 30, 2015, 4:53 p.m. OK MS C++ TESTS 69 93 1331200 2500
2773404 XilinX D Dec. 16, 2012, 2:34 p.m. OK MS C++ TESTS 69 203 6963200 2500
2804579 RAD D Dec. 21, 2012, 6:47 p.m. OK MS C++ TESTS 69 296 2150400 2500
2881948 seen D Jan. 8, 2013, 4:44 a.m. OK MS C++ TESTS 69 390 25702400 2500
2712096 GlebsHP D Dec. 6, 2012, 11:53 p.m. OK MS C++ TESTS 69 500 7270400 2500
2789210 andrey-tsb D Dec. 18, 2012, 2:19 a.m. OK MS C++ TESTS 69 656 4198400 2500
12800522 hotsnr D Sept. 1, 2015, 11:13 a.m. OK MS C++ TESTS 69 748 90624000 2500
12800293 hotsnr D Sept. 1, 2015, 10:48 a.m. OK MS C++ TESTS 69 795 90624000 2500
12800533 hotsnr D Sept. 1, 2015, 11:14 a.m. OK MS C++ TESTS 69 826 90624000 2500
12800649 hotsnr D Sept. 1, 2015, 11:25 a.m. OK MS C++ TESTS 69 873 90624000 2500

remove filters

Back to search problems