Codeforces Global Round 10

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
1392 Codeforces Global Round 10 FINISHED False 10800 134234699 Aug. 16, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18504 ) B Omkar and Infinity Clock PROGRAMMING implementation math

B'Being stuck at home, Ray became extremely bored. To pass time, he asks Lord Omkar to use his time bending power: Infinity Clock! However, Lord Omkar will only listen to mortals who can solve the following problem: You are given an array a of n integers. You are also given an integer k . Lord Omkar wants you to do k operations with this array. Define one operation as the following: The goal is to predict the contents in the array after k operations. Please help Ray determine what the final sequence will look like! Each test contains multiple test cases. The first line contains the number of cases t ( 1 <= t <= 100 ). Description of the test cases follows. The first line of each test case contains two integers n and k ( 1 <= q n <= q 2 cdot 10^5, 1 <= q k <= q 10^{18} ) xe2 x80 x93 the length of your array and the number of operations to perform. The second line of each test case contains n integers a_{1},a_{2},...,a_{n} (-10^9 <= q a_{i} <= q 10^9) xe2 x80 x93 the initial contents of your array. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each case, print the final version of array a after k operations described above. In the first test case the array changes as follows: Initially, the array is [-199, 192] . d = 192 . After the operation, the array becomes [d-(-199), d-192] = [391, 0] . '...

Tutorials

Codeforces Global Round 10 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90312292 asgardcodegod B Aug. 18, 2020, 1:36 p.m. OK Clang++17 Diagnostics TESTS 49 1793 1638400
91014821 luogu_bot1 B Aug. 26, 2020, 3:58 a.m. OK FPC TESTS 49 623 921600
90825435 aurchey726 B Aug. 24, 2020, 12:34 p.m. OK GNU C11 TESTS 49 795 5324800
90310601 a.kaushiksai B Aug. 18, 2020, 1:14 p.m. OK GNU C11 TESTS 49 811 819200
90295371 rishit19091 B Aug. 18, 2020, 9:43 a.m. OK GNU C11 TESTS 49 811 2355200
90349362 Knight_Kaizen B Aug. 19, 2020, 12:40 a.m. OK GNU C11 TESTS 49 826 819200
90290898 Beast_116 B Aug. 18, 2020, 8:38 a.m. OK GNU C11 TESTS 49 826 819200
90296556 BugLeave B Aug. 18, 2020, 10:01 a.m. OK GNU C11 TESTS 49 826 1024000
91096774 vjudge4 B Aug. 27, 2020, 1:27 a.m. OK GNU C11 TESTS 49 826 1638400
90479428 Rohitttt B Aug. 20, 2020, 4:06 p.m. OK GNU C11 TESTS 49 826 1638400
90511185 sahasubarna08041 B Aug. 21, 2020, 7:38 a.m. OK GNU C11 TESTS 49 826 6860800
90327018 hevesh B Aug. 18, 2020, 4:17 p.m. OK GNU C11 TESTS 49 841 819200
90425042 hyjhyj B Aug. 20, 2020, 12:33 a.m. OK GNU C++11 TESTS 49 78 819200
91557481 OIerwanhong B Sept. 1, 2020, 10:46 a.m. OK GNU C++11 TESTS 49 78 1638400
90655175 froggyzhang B Aug. 22, 2020, 5:14 a.m. OK GNU C++11 TESTS 49 78 4710400
90670312 JasonLan B Aug. 22, 2020, 8:32 a.m. OK GNU C++11 TESTS 49 78 4710400
90358842 jiaangk_ B Aug. 19, 2020, 5:17 a.m. OK GNU C++11 TESTS 49 78 4812800
90863150 WaluntOvO B Aug. 25, 2020, 2:40 a.m. OK GNU C++11 TESTS 49 78 7987200
90465808 hjww B Aug. 20, 2020, 1:23 p.m. OK GNU C++11 TESTS 49 93 819200
90396427 Karry5307 B Aug. 19, 2020, 2:22 p.m. OK GNU C++11 TESTS 49 93 1638400
90370141 Zhu_Xiangyu B Aug. 19, 2020, 8:11 a.m. OK GNU C++11 TESTS 49 93 1638400
90764959 vice_why112 B Aug. 23, 2020, 2:46 p.m. OK GNU C++11 TESTS 49 93 4710400
90699457 q234rty B Aug. 22, 2020, 3:27 p.m. OK GNU C++14 TESTS 49 62 14540800
91034702 ssyze B Aug. 26, 2020, 9 a.m. OK GNU C++14 TESTS 49 109 819200
91253441 krcdhm B Aug. 29, 2020, 3:38 a.m. OK GNU C++14 TESTS 49 109 819200
90375441 Hayzerr123 B Aug. 19, 2020, 9:28 a.m. OK GNU C++14 TESTS 49 109 819200
90868666 aku23 B Aug. 25, 2020, 4:59 a.m. OK GNU C++14 TESTS 49 109 819200
90397191 assem99 B Aug. 19, 2020, 2:31 p.m. OK GNU C++14 TESTS 49 109 2355200
90513487 Protik_7 B Aug. 21, 2020, 8:08 a.m. OK GNU C++14 TESTS 49 109 4505600
90610471 im_juel B Aug. 21, 2020, 4:19 p.m. OK GNU C++14 TESTS 49 109 4505600
90673955 elPrimo B Aug. 22, 2020, 9:20 a.m. OK GNU C++14 TESTS 49 109 4505600
90787446 vjudge3 B Aug. 23, 2020, 11:41 p.m. OK GNU C++14 TESTS 49 109 4505600
90420086 sirearsh B Aug. 19, 2020, 8:49 p.m. OK GNU C++17 TESTS 49 78 716800
90384296 bandiaoz B Aug. 19, 2020, 11:38 a.m. OK GNU C++17 TESTS 49 78 1740800
91145494 MrBeast B Aug. 27, 2020, 3:16 p.m. OK GNU C++17 TESTS 49 109 819200
91623439 BeKind B Sept. 2, 2020, 8:13 a.m. OK GNU C++17 TESTS 49 109 819200
91528245 Pine1999 B Sept. 1, 2020, 12:01 a.m. OK GNU C++17 TESTS 49 109 819200
90360367 chen_zexing B Aug. 19, 2020, 5:45 a.m. OK GNU C++17 TESTS 49 109 819200
91006582 TvojaMama B Aug. 25, 2020, 11:25 p.m. OK GNU C++17 TESTS 49 109 1638400
90307333 Reshad_rid B Aug. 18, 2020, 12:30 p.m. OK GNU C++17 TESTS 49 109 1638400
90399768 Naofumi_SH B Aug. 19, 2020, 3:02 p.m. OK GNU C++17 TESTS 49 109 3891200
90794645 KindaStupid B Aug. 24, 2020, 4:28 a.m. OK GNU C++17 TESTS 49 109 4505600
91315673 caalar B Aug. 29, 2020, 11:21 p.m. OK GNU C++17 (64) TESTS 49 77 4300800
90539223 AGRU B Aug. 21, 2020, 2:15 p.m. OK GNU C++17 (64) TESTS 49 77 5120000
90430217 raxtar B Aug. 20, 2020, 3:44 a.m. OK GNU C++17 (64) TESTS 49 92 1638400
90400094 rohan537 B Aug. 19, 2020, 3:05 p.m. OK GNU C++17 (64) TESTS 49 93 819200
90882498 19992147 B Aug. 25, 2020, 8:31 a.m. OK GNU C++17 (64) TESTS 49 93 819200
90495883 Daniel19Frenzy B Aug. 20, 2020, 9 p.m. OK GNU C++17 (64) TESTS 49 93 819200
90436520 retr0coderxyz B Aug. 20, 2020, 6:02 a.m. OK GNU C++17 (64) TESTS 49 93 819200
90346921 bmu B Aug. 18, 2020, 10:45 p.m. OK GNU C++17 (64) TESTS 49 93 819200
90310140 ivan100sic B Aug. 18, 2020, 1:08 p.m. OK GNU C++17 (64) TESTS 49 93 819200
91555076 tuanio B Sept. 1, 2020, 10:07 a.m. OK GNU C++17 (64) TESTS 49 93 1638400
91023417 Trishan B Aug. 26, 2020, 6:25 a.m. OK Go TESTS 49 716 4812800
90763213 bnurgeldiyev514 B Aug. 23, 2020, 2:24 p.m. OK Go TESTS 49 811 15462400
90532829 bckslsh03 B Aug. 21, 2020, 12:52 p.m. OK Java 11 TESTS 49 233 23859200
91086763 rouh B Aug. 26, 2020, 7:20 p.m. OK Java 11 TESTS 49 249 0
91086741 rouh B Aug. 26, 2020, 7:20 p.m. OK Java 11 TESTS 49 249 0
91066374 Vatsal53 B Aug. 26, 2020, 3:05 p.m. OK Java 11 TESTS 49 249 0
91522226 aquarius_gaurav B Aug. 31, 2020, 8:09 p.m. OK Java 11 TESTS 49 265 0
91547720 sg55 B Sept. 1, 2020, 8:13 a.m. OK Java 11 TESTS 49 265 0
90509872 glider.g B Aug. 21, 2020, 7:20 a.m. OK Java 11 TESTS 49 280 24166400
90325967 Captian B Aug. 18, 2020, 4:05 p.m. OK Java 11 TESTS 49 295 0
90293030 KUNALJHAMB B Aug. 18, 2020, 9:10 a.m. OK Java 11 TESTS 49 295 13312000
91025198 jamesfan961101 B Aug. 26, 2020, 6:47 a.m. OK Java 11 TESTS 49 326 307200
90421760 bluesky111 B Aug. 19, 2020, 9:49 p.m. OK Java 8 TESTS 49 156 0
90850471 mufaddalnaya B Aug. 24, 2020, 5:54 p.m. OK Java 8 TESTS 49 170 0
90329024 shivendra9936 B Aug. 18, 2020, 4:40 p.m. OK Java 8 TESTS 49 171 3993600
90508186 nandit B Aug. 21, 2020, 6:36 a.m. OK Java 8 TESTS 49 171 20480000
90517982 loyalty B Aug. 21, 2020, 9:08 a.m. OK Java 8 TESTS 49 171 26726400
91599279 O-infinity B Sept. 1, 2020, 8:56 p.m. OK Java 8 TESTS 49 186 3891200
90794068 nejadabbasio B Aug. 24, 2020, 4:12 a.m. OK Java 8 TESTS 49 186 26624000
90457858 __goku__ B Aug. 20, 2020, 11:27 a.m. OK Java 8 TESTS 49 187 3072000
90397208 lemoncodes B Aug. 19, 2020, 2:31 p.m. OK Java 8 TESTS 49 202 2867200
90377077 wadissimo B Aug. 19, 2020, 9:52 a.m. OK Java 8 TESTS 49 202 2867200
90762951 Rivankata B Aug. 23, 2020, 2:20 p.m. OK Kotlin TESTS 49 280 42188800
91186096 felix412441 B Aug. 28, 2020, 6:58 a.m. OK Kotlin TESTS 49 404 19353600
91476134 koper B Aug. 31, 2020, 9:12 a.m. OK Kotlin TESTS 49 405 40140800
91137305 Ghasem B Aug. 27, 2020, 1:37 p.m. OK Kotlin TESTS 49 420 19046400
90297640 TRR B Aug. 18, 2020, 10:17 a.m. OK Mono C# TESTS 49 748 29184000
90319371 TheSoundOfZero B Aug. 18, 2020, 2:57 p.m. OK MS C++ TESTS 49 156 2457600
90423549 HDDC B Aug. 19, 2020, 11:11 p.m. OK MS C++ TESTS 49 296 1638400
90394098 sawaizasifch B Aug. 19, 2020, 1:54 p.m. OK MS C++ TESTS 49 311 819200
90865200 Steve1234 B Aug. 25, 2020, 3:40 a.m. OK MS C++ 2017 TESTS 49 140 1024000
91643146 shebao B Sept. 2, 2020, 1:10 p.m. OK MS C++ 2017 TESTS 49 140 1024000
90532738 vjudge3 B Aug. 21, 2020, 12:51 p.m. OK MS C++ 2017 TESTS 49 140 4812800
90385463 psb2942 B Aug. 19, 2020, 11:55 a.m. OK MS C++ 2017 TESTS 49 156 4915200
90463608 ayarayarovich B Aug. 20, 2020, 12:53 p.m. OK MS C++ 2017 TESTS 49 327 819200
90371762 your_soulmate B Aug. 19, 2020, 8:34 a.m. OK MS C++ 2017 TESTS 49 327 819200
90708002 hemangmohite14 B Aug. 22, 2020, 5:38 p.m. OK MS C++ 2017 TESTS 49 327 4505600
90697512 getN1ght B Aug. 22, 2020, 3 p.m. OK MS C++ 2017 TESTS 49 327 4505600
91058512 areo B Aug. 26, 2020, 1:50 p.m. OK MS C++ 2017 TESTS 49 342 1638400
90872812 ShaRgCx B Aug. 25, 2020, 6:14 a.m. OK MS C++ 2017 TESTS 49 343 819200
90315613 mayakin B Aug. 18, 2020, 2:17 p.m. OK PHP TESTS 49 140 37376000
90712374 yumtam B Aug. 22, 2020, 6:57 p.m. OK PyPy 2 TESTS 49 171 41574400
90364051 2019ucp1350 B Aug. 19, 2020, 6:43 a.m. OK PyPy 3 TESTS 49 280 18124800
90523113 raahelpie B Aug. 21, 2020, 10:27 a.m. OK PyPy 3 TESTS 49 280 37888000
91010727 prematal2828 B Aug. 26, 2020, 2:20 a.m. OK PyPy 3 TESTS 49 358 20480000
90329881 sexy_launda B Aug. 18, 2020, 4:51 p.m. OK PyPy 3 TESTS 49 483 21811200
90320082 ColobocCodeforces B Aug. 18, 2020, 3:04 p.m. OK PyPy 3 TESTS 49 483 27340800
90392148 dranikpg B Aug. 19, 2020, 1:28 p.m. OK PyPy 3 TESTS 49 498 21913600
90392138 Midhilesh B Aug. 19, 2020, 1:28 p.m. OK PyPy 3 TESTS 49 498 21913600
91035789 6945034442LamDT B Aug. 26, 2020, 9:15 a.m. OK PyPy 3 TESTS 49 498 23347200
91072213 coolsanderslin B Aug. 26, 2020, 4:02 p.m. OK PyPy 3 TESTS 49 498 26931200
90829935 poltorashka B Aug. 24, 2020, 1:33 p.m. OK PyPy 3 TESTS 49 499 46899200
90439672 groupbuilder B Aug. 20, 2020, 6:53 a.m. OK Python 2 TESTS 49 327 17612800
90295995 raunaqsingh07 B Aug. 18, 2020, 9:52 a.m. OK Python 3 TESTS 49 264 18227200
90361816 Tieway59 B Aug. 19, 2020, 6:09 a.m. OK Python 3 TESTS 49 265 16281600
90318950 SalmonTimo B Aug. 18, 2020, 2:52 p.m. OK Python 3 TESTS 49 280 18841600
90294044 Gikinet B Aug. 18, 2020, 9:24 a.m. OK Python 3 TESTS 49 280 20582400
90670667 oadey89 B Aug. 22, 2020, 8:37 a.m. OK Python 3 TESTS 49 280 25600000
90650797 shivamshuklama B Aug. 22, 2020, 3:55 a.m. OK Python 3 TESTS 49 296 34713600
90748728 divrthor345 B Aug. 23, 2020, 11 a.m. OK Python 3 TESTS 49 311 27136000
90306805 noisegain B Aug. 18, 2020, 12:23 p.m. OK Python 3 TESTS 49 312 18534400
90404201 rednithin B Aug. 19, 2020, 3:56 p.m. OK Python 3 TESTS 49 326 19046400
91691207 That_idiot B Sept. 3, 2020, 6:05 a.m. OK Python 3 TESTS 49 421 16486400
90488699 ratn41 B Aug. 20, 2020, 6:20 p.m. OK Ruby TESTS 49 873 20275200
90488630 ratn41 B Aug. 20, 2020, 6:19 p.m. OK Ruby TESTS 49 982 20275200
90656332 Strorkis B Aug. 22, 2020, 5:30 a.m. OK Rust TESTS 49 108 15155200
90468693 pandrei B Aug. 20, 2020, 2 p.m. OK Rust TESTS 49 155 11059200

remove filters

Back to search problems