Codeforces Round 320 (Div. 1) [Bayan Thanks-Round]

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
578 Codeforces Round 320 (Div. 1) [Bayan Thanks-Round] FINISHED False 9000 294763463 Sept. 16, 2015, 3:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5273 ) B "Or" Game PROGRAMMING brute force greedy 1800

B"You are given n numbers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. You can perform at most k operations. For each operation you can multiply one of the numbers by x. We want to make as large as possible, where denotes the bitwise OR. Find the maximum possible value of after performing at most k operations optimally. The first line contains three integers n, k and x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x898). The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Output the maximum value of a bitwise OR of sequence elements after performing operations. For the first sample, any possible choice of doing one operation will result the same three numbers 1, 1, 2 so the result is . For the second sample if we multiply 8 by 3 two times we'll get 72. In this case the numbers will become 1, 2, 4, 72 so the OR value will be 79 and is the largest possible result."...

Tutorials

Codeforces Round #320 [Bayan Thanks-Round] Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51356354 cpy B March 16, 2019, 4:33 a.m. OK D TESTS 32 93 11673600 1800
50767266 rr_ B March 3, 2019, 11:50 p.m. OK D TESTS 32 93 22425600 1800
13080224 ruban B Sept. 18, 2015, 4:30 a.m. OK Delphi TESTS 32 62 96153600 1800
13129076 AHTuTTuTyX B Sept. 21, 2015, 3:41 p.m. OK Delphi TESTS 32 249 1638400 1800
13817663 huynhnhat B Oct. 24, 2015, 4:13 a.m. OK FPC TESTS 32 62 3379200 1800
42668626 chaorenhaha B Sept. 8, 2018, 9:34 a.m. OK FPC TESTS 32 62 4812800 1800
14021155 dwp B Nov. 2, 2015, 10:57 a.m. OK FPC TESTS 32 62 4812800 1800
13316746 Sanja B Sept. 30, 2015, 2:52 p.m. OK FPC TESTS 32 62 4812800 1800
48040822 freecontest B Jan. 6, 2019, 7:07 p.m. OK FPC TESTS 32 62 4915200 1800
14399644 ngocdiepnguyen2712 B Nov. 21, 2015, 2:13 p.m. OK FPC TESTS 32 62 4915200 1800
13495744 SilverDH B Oct. 8, 2015, 2:57 p.m. OK FPC TESTS 32 62 4915200 1800
13409685 duy.nguyen.519 B Oct. 5, 2015, 2:27 a.m. OK FPC TESTS 32 62 7270400 1800
13353392 urpok B Oct. 3, 2015, 6:04 a.m. OK FPC TESTS 32 77 4812800 1800
13064495 s34vv1nd B Sept. 17, 2015, 10:02 a.m. OK FPC TESTS 32 77 4812800 1800
13053982 sgtlaugh B Sept. 16, 2015, 6:56 p.m. OK GNU C TESTS 32 46 2457600 1800
13040900 tjandra B Sept. 16, 2015, 4:31 p.m. OK GNU C TESTS 32 46 2662400 1800
19005721 vjudge4 B July 10, 2016, 10:43 a.m. OK GNU C TESTS 32 46 3993600 1800
13052748 Chipe1 B Sept. 16, 2015, 6:18 p.m. OK GNU C TESTS 32 46 4812800 1800
13218781 FireFrank B Sept. 25, 2015, 12:42 p.m. OK GNU C TESTS 32 62 4812800 1800
13135259 utkarsh_gaur B Sept. 22, 2015, 4:56 a.m. OK GNU C TESTS 32 62 4812800 1800
13127254 gurneetiitm B Sept. 21, 2015, 1:58 p.m. OK GNU C TESTS 32 77 1638400 1800
28681399 maratonando2 B July 19, 2017, 2:03 a.m. OK GNU C TESTS 32 109 3481600 1800
13075841 tjandra B Sept. 17, 2015, 8:13 p.m. OK GNU C TESTS 32 171 56115200 1800
13057289 hccz95 B Sept. 16, 2015, 11:45 p.m. OK GNU C++ TESTS 32 15 4608000 1800
32998658 ONION_CYC B Dec. 7, 2017, 11:12 a.m. OK GNU C++ TESTS 32 15 6758400 1800
13063679 SanSiroWaltz B Sept. 17, 2015, 9:05 a.m. OK GNU C++ TESTS 32 30 2457600 1800
13095506 vjudge2 B Sept. 19, 2015, 2:49 a.m. OK GNU C++ TESTS 32 30 3174400 1800
19512809 FlierKing B July 30, 2016, 7:59 a.m. OK GNU C++ TESTS 32 30 4812800 1800
14322950 vjudge5 B Nov. 18, 2015, 8:48 a.m. OK GNU C++ TESTS 32 30 4812800 1800
31945309 wzp233 B Nov. 1, 2017, 10:06 a.m. OK GNU C++ TESTS 32 30 4915200 1800
13036063 zxozxo4 B Sept. 16, 2015, 4 p.m. OK GNU C++ TESTS 32 30 20889600 1800
13079503 Universe_hcy B Sept. 18, 2015, 2:13 a.m. OK GNU C++ TESTS 32 30 48128000 1800
40411110 asdf1229 B July 16, 2018, 12:29 p.m. OK GNU C++ TESTS 32 31 2252800 1800
14177660 merolish B Nov. 9, 2015, 9:25 p.m. OK GNU C11 TESTS 32 46 2457600 1800
57163748 rainboy B July 16, 2019, 8:45 p.m. OK GNU C11 TESTS 32 61 2457600 1800
66654380 pokorj54 B Dec. 11, 2019, 9:13 p.m. OK GNU C11 TESTS 32 62 4812800 1800
13391681 HackMyself B Oct. 3, 2015, 11:57 p.m. OK GNU C11 TESTS 32 312 105779200 1800
13057407 syc1999 B Sept. 17, 2015, 12:02 a.m. OK GNU C++11 TESTS 32 15 4812800 1800
13029539 ExfJoe B Sept. 16, 2015, 3:27 p.m. OK GNU C++11 TESTS 32 30 2457600 1800
18730487 Hossam B June 26, 2016, 6:34 a.m. OK GNU C++11 TESTS 32 30 2457600 1800
16271466 sy2006 B Feb. 22, 2016, 5:26 a.m. OK GNU C++11 TESTS 32 30 4608000 1800
13035080 eddy1021 B Sept. 16, 2015, 3:54 p.m. OK GNU C++11 TESTS 32 30 4812800 1800
27443434 GN0 B May 30, 2017, 8:45 a.m. OK GNU C++11 TESTS 32 30 4812800 1800
15502636 MosharrafOshy B Jan. 22, 2016, 5:53 p.m. OK GNU C++11 TESTS 32 30 4812800 1800
13031492 MinakoKojima B Sept. 16, 2015, 3:36 p.m. OK GNU C++11 TESTS 32 30 5632000 1800
33000312 _Sakits B Dec. 7, 2017, 12:29 p.m. OK GNU C++11 TESTS 32 30 18124800 1800
13030783 zxqfl B Sept. 16, 2015, 3:33 p.m. OK GNU C++11 TESTS 32 31 2355200 1800
45493817 wleung_bvg B Nov. 9, 2018, 9:10 p.m. OK GNU C++14 TESTS 32 31 4812800 1800
45493881 wleung_bvg B Nov. 9, 2018, 9:14 p.m. OK GNU C++14 TESTS 32 31 4812800 1800
31873140 yashar_sb_sb B Oct. 29, 2017, 5:16 p.m. OK GNU C++14 TESTS 32 62 1638400 1800
49994898 Amayreh B Feb. 16, 2019, 2:29 p.m. OK GNU C++14 TESTS 32 62 1843200 1800
68634730 tasnidmahin B Jan. 12, 2020, 5:15 a.m. OK GNU C++14 TESTS 32 62 2457600 1800
59582863 pimpoponut B Aug. 27, 2019, 4:46 p.m. OK GNU C++14 TESTS 32 62 2457600 1800
22877209 Whalanator B Dec. 11, 2016, 11:52 a.m. OK GNU C++14 TESTS 32 62 3993600 1800
26392660 phiennguyen B April 15, 2017, 4:22 p.m. OK GNU C++14 TESTS 32 62 4300800 1800
26789187 Ownography B May 1, 2017, 4:45 p.m. OK GNU C++14 TESTS 32 62 4300800 1800
34948976 Maripium B Feb. 5, 2018, 4:02 p.m. OK GNU C++14 TESTS 32 62 4300800 1800
54552107 vjudge5 B May 24, 2019, 9:40 a.m. OK GNU C++17 TESTS 32 62 2355200 1800
57507716 vjudge4 B July 22, 2019, 12:37 p.m. OK GNU C++17 TESTS 32 62 2355200 1800
50650689 CodeTyper98 B March 1, 2019, 5:29 p.m. OK GNU C++17 TESTS 32 62 2457600 1800
47330775 ViciousCoder B Dec. 21, 2018, 12:49 p.m. OK GNU C++17 TESTS 32 62 3174400 1800
57011334 vjudge3 B July 14, 2019, 9:25 a.m. OK GNU C++17 TESTS 32 62 3993600 1800
45270527 Ashishgup B Nov. 4, 2018, 8:19 a.m. OK GNU C++17 TESTS 32 62 5017600 1800
53124640 HNO2 B April 22, 2019, 1:14 p.m. OK GNU C++17 TESTS 32 62 24064000 1800
66453058 ruo B Dec. 7, 2019, 12:11 p.m. OK GNU C++17 TESTS 32 77 2457600 1800
64637870 greenblade B Nov. 10, 2019, 12:09 p.m. OK GNU C++17 TESTS 32 77 2457600 1800
68112992 Extraordinary_ B Jan. 3, 2020, 10:19 a.m. OK GNU C++17 TESTS 32 77 4812800 1800
61342791 synapse B Sept. 27, 2019, 12:36 a.m. OK Go TESTS 32 171 4505600 1800
18500528 behzad.nouri B June 15, 2016, 3:08 p.m. OK Haskell TESTS 32 155 80691200 1800
13139747 sighingnow B Sept. 22, 2015, 11:37 a.m. OK Haskell TESTS 32 171 29593600 1800
13139723 sighingnow B Sept. 22, 2015, 11:35 a.m. OK Haskell TESTS 32 187 29593600 1800
13122511 ngzhian B Sept. 21, 2015, 6:52 a.m. OK Haskell TESTS 32 187 31641600 1800
13122606 ngzhian B Sept. 21, 2015, 7:05 a.m. OK Haskell TESTS 32 187 31641600 1800
13090848 rohansumant B Sept. 18, 2015, 5:17 p.m. OK Haskell TESTS 32 1325 67481600 1800
69439633 YahiaMostafa B Jan. 23, 2020, 8:42 p.m. OK Java 11 TESTS 32 233 1433600 1800
13075000 cvm B Sept. 17, 2015, 6:52 p.m. OK Java 7 TESTS 32 124 3686400 1800
13037743 davidarcila93 B Sept. 16, 2015, 4:10 p.m. OK Java 7 TESTS 32 140 3379200 1800
14191472 edorundo B Nov. 11, 2015, 2:11 a.m. OK Java 7 TESTS 32 140 3481600 1800
13056520 HidenoriS B Sept. 16, 2015, 10:20 p.m. OK Java 7 TESTS 32 140 3584000 1800
13054541 awh B Sept. 16, 2015, 7:25 p.m. OK Java 7 TESTS 32 155 3379200 1800
14997064 xiaowuc1 B Dec. 25, 2015, 3:31 a.m. OK Java 7 TESTS 32 155 3481600 1800
13245850 PEC B Sept. 27, 2015, 7:39 a.m. OK Java 7 TESTS 32 155 4096000 1800
13036199 nitegazer B Sept. 16, 2015, 4 p.m. OK Java 7 TESTS 32 186 3379200 1800
13972653 snrahul B Oct. 31, 2015, 2:45 p.m. OK Java 7 TESTS 32 186 3481600 1800
13032651 Sergey.Bankevich B Sept. 16, 2015, 3:42 p.m. OK Java 7 TESTS 32 187 0 1800
13066327 Infoshoc B Sept. 17, 2015, 12:03 p.m. OK Java 8 TESTS 32 124 0 1800
13033384 Sumeet.Varma B Sept. 16, 2015, 3:46 p.m. OK Java 8 TESTS 32 124 0 1800
13032097 Egor B Sept. 16, 2015, 3:39 p.m. OK Java 8 TESTS 32 124 0 1800
44403030 Srinivasa_Ramanujan B Oct. 16, 2018, 1:44 p.m. OK Java 8 TESTS 32 140 0 1800
20978671 da_201501181 B Sept. 28, 2016, 8:26 p.m. OK Java 8 TESTS 32 140 0 1800
13046538 bohuss B Sept. 16, 2015, 5:12 p.m. OK Java 8 TESTS 32 155 1843200 1800
68715986 Mohamed_Eshiba B Jan. 13, 2020, 2:28 p.m. OK Java 8 TESTS 32 155 2969600 1800
26923529 safarisoul B May 7, 2017, 12:41 p.m. OK Java 8 TESTS 32 155 3174400 1800
16037480 Imaginary B Feb. 15, 2016, 5:31 p.m. OK Java 8 TESTS 32 155 5324800 1800
46061141 hongquanntct B Nov. 22, 2018, 1:24 p.m. OK Java 8 TESTS 32 155 5836800 1800
23368520 JoeBlow B Dec. 27, 2016, 11:38 p.m. OK Kotlin TESTS 32 202 27238400 1800
23368245 JoeBlow B Dec. 27, 2016, 10:57 p.m. OK Kotlin TESTS 32 514 27136000 1800
13037812 og.kostya B Sept. 16, 2015, 4:11 p.m. OK MS C# TESTS 32 62 2560000 1800
13051919 camypaper B Sept. 16, 2015, 6:07 p.m. OK MS C# TESTS 32 62 4710400 1800
13032305 azukun B Sept. 16, 2015, 3:40 p.m. OK MS C# TESTS 32 124 26419200 1800
13070351 AnatolyTolstobrov B Sept. 17, 2015, 3:27 p.m. OK MS C# TESTS 32 608 1024000 1800
15269471 OnionPringles B Jan. 9, 2016, 12:33 p.m. OK MS C++ TESTS 32 46 2457600 1800
13126099 WannabeStronger B Sept. 21, 2015, 12:39 p.m. OK MS C++ TESTS 32 46 2457600 1800
13096572 beginner1010 B Sept. 19, 2015, 5:24 a.m. OK MS C++ TESTS 32 46 2457600 1800
13119189 AleksanderBalobanov B Sept. 20, 2015, 8:31 p.m. OK MS C++ TESTS 32 46 3584000 1800
57021359 vjudge3 B July 14, 2019, 2:14 p.m. OK MS C++ TESTS 32 46 4812800 1800
13258453 hanyin B Sept. 28, 2015, 7:14 a.m. OK MS C++ TESTS 32 46 4812800 1800
26972694 thenoobestever B May 9, 2017, 11:33 a.m. OK MS C++ TESTS 32 46 4915200 1800
57270620 vjudge4 B July 18, 2019, 8:47 a.m. OK MS C++ TESTS 32 61 2355200 1800
58871760 vjudge4 B Aug. 15, 2019, 3:46 p.m. OK MS C++ TESTS 32 61 4812800 1800
13625211 vjudge3 B Oct. 15, 2015, 2:52 p.m. OK MS C++ TESTS 32 61 4812800 1800
52375311 haylee B April 6, 2019, 8 a.m. OK MS C++ 2017 TESTS 32 78 4812800 1800
59476069 CtrlAlt B Aug. 25, 2019, 3:59 p.m. OK MS C++ 2017 TESTS 32 93 4812800 1800
16622337 Butane B March 9, 2016, 6:29 p.m. OK PyPy 2 TESTS 32 140 19558400 1800
49296768 kipply B Jan. 31, 2019, 11:44 p.m. OK PyPy 2 TESTS 32 186 13721600 1800
49663295 noob77777 B Feb. 9, 2019, 1:21 p.m. OK PyPy 2 TESTS 32 202 14131200 1800
13041264 opening B Sept. 16, 2015, 4:33 p.m. OK PyPy 2 TESTS 32 265 13619200 1800
68486401 Firepaw B Jan. 10, 2020, 9:54 a.m. OK PyPy 3 TESTS 32 467 22732800 1800
68486506 Firepaw B Jan. 10, 2020, 9:57 a.m. OK PyPy 3 TESTS 32 467 22835200 1800
13070828 __pikachu__ B Sept. 17, 2015, 3:56 p.m. OK PyPy 3 TESTS 32 514 21708800 1800
13039828 rpy3cpp B Sept. 16, 2015, 4:24 p.m. OK PyPy 3 TESTS 32 748 22425600 1800
13057226 snsokolov B Sept. 16, 2015, 11:38 p.m. OK PyPy 3 TESTS 32 1029 22732800 1800
13111095 snsokolov B Sept. 20, 2015, 7:43 a.m. OK PyPy 3 TESTS 32 1029 23347200 1800
13037168 nwi B Sept. 16, 2015, 4:07 p.m. OK Python 2 TESTS 32 296 28672000 1800
15915465 not_bot_but_POT B Feb. 9, 2016, 2:07 p.m. OK Python 2 TESTS 32 343 13312000 1800
13119539 nealzane B Sept. 20, 2015, 9:09 p.m. OK Python 2 TESTS 32 343 13414400 1800
14536845 trunghieu11 B Nov. 28, 2015, 7:56 a.m. OK Python 2 TESTS 32 358 14131200 1800
35894353 _____k_____ B March 3, 2018, 4:19 p.m. OK Python 2 TESTS 32 358 17817600 1800
35889204 ______u______ B March 3, 2018, 2:36 p.m. OK Python 2 TESTS 32 358 17817600 1800
35889191 ______n______ B March 3, 2018, 2:36 p.m. OK Python 2 TESTS 32 358 17817600 1800
35887862 _____i_____ B March 3, 2018, 2:12 p.m. OK Python 2 TESTS 32 358 17817600 1800
35884303 ______h______ B March 3, 2018, 1:09 p.m. OK Python 2 TESTS 32 358 17817600 1800
35883953 ______k______ B March 3, 2018, 1:03 p.m. OK Python 2 TESTS 32 358 17817600 1800
16020999 orailly B Feb. 14, 2016, 4:49 p.m. OK Python 3 TESTS 32 249 18841600 1800
13331801 demg B Oct. 1, 2015, 3:14 p.m. OK Python 3 TESTS 32 342 15667200 1800
13328866 vanvector B Oct. 1, 2015, 11:26 a.m. OK Python 3 TESTS 32 389 15360000 1800
65318411 cameliapatilea B Nov. 18, 2019, 6:29 p.m. OK Python 3 TESTS 32 389 16588800 1800
28650841 lileiva B July 18, 2017, 12:13 a.m. OK Python 3 TESTS 32 389 20377600 1800
28650850 maratonando B July 18, 2017, 12:14 a.m. OK Python 3 TESTS 32 405 20582400 1800
35664249 nomil B Feb. 24, 2018, 11:44 p.m. OK Python 3 TESTS 32 405 26316800 1800
55067800 SeriousFreak B June 4, 2019, 4:44 a.m. OK Python 3 TESTS 32 436 16588800 1800
13065590 Sergiu B Sept. 17, 2015, 11:17 a.m. OK Python 3 TESTS 32 467 16384000 1800
38422367 arbitrary_A B May 19, 2018, 7:57 a.m. OK Python 3 TESTS 32 514 16384000 1800
13032300 limed B Sept. 16, 2015, 3:40 p.m. OK Scala TESTS 32 374 8396800 1800

remove filters

Back to search problems