Codeforces Global Round 7

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
1326 Codeforces Global Round 7 FINISHED False 9000 147194699 March 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24128 ) B Maximums PROGRAMMING implementation math 900

B"Alicia has an array, a_1, a_2, ldots, a_n , of non-negative integers. For each 1 <= q i <= q n , she has found a non-negative integer x_i = max(0, a_1, ldots, a_{i-1}) . Note that for i=1 , x_i = 0 . For example, if Alicia had the array a = {0, 1, 2, 0, 3 } , then x = {0, 0, 1, 2, 2 } . Then, she calculated an array, b_1, b_2, ldots, b_n : b_i = a_i - x_i . For example, if Alicia had the array a = {0, 1, 2, 0, 3 } , b = {0-0, 1-0, 2-1, 0-2, 3-2 } = {0, 1, 1, -2, 1 } . Alicia gives you the values b_1, b_2, ldots, b_n and asks you to restore the values a_1, a_2, ldots, a_n . Can you help her solve the problem? The first line contains one integer n ( 3 <= q n <= q 200 ,000 ) xe2 x80 x93 the number of elements in Alicia's array. The next line contains n integers, b_1, b_2, ldots, b_n ( -10^9 <= q b_i <= q 10^9 ). It is guaranteed that for the given array b there is a solution a_1, a_2, ldots, a_n , for all elements of which the following is true: 0 <= q a_i <= q 10^9 . Print n integers, a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 10^9 ), such that if you calculate x according to the statement, b_1 will be equal to a_1 - x_1 , b_2 will be equal to a_2 - x_2 , ..., and b_n will be equal to a_n - x_n . It is guaranteed that there exists at least one solution for the given tests. It can be shown that the solution is unique. The first test was described in the problem statement. In the second test, if Alicia had an array a = {1000, 1000000000, 0 } , then x = {0, 1000, 1000000000 } and b = {1000-0, 1000000000-1000, 0-1000000000 } = {1000, 999999000, -1000000000 } . "...

Tutorials

74961

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73716511 mrsatyamsan B March 19, 2020, 4:15 p.m. OK GNU C11 TESTS 25 748 0 900
73707771 Thiran B March 19, 2020, 3:53 p.m. OK GNU C11 TESTS 25 748 0 900
73706884 fenofista B March 19, 2020, 3:50 p.m. OK GNU C11 TESTS 25 748 0 900
73791661 Iamso B March 20, 2020, 12:28 p.m. OK GNU C11 TESTS 25 748 0 900
73794774 polarbear26 B March 20, 2020, 1:07 p.m. OK GNU C11 TESTS 25 748 1638400 900
73787835 Oro_wahida B March 20, 2020, 11:42 a.m. OK GNU C11 TESTS 25 748 1638400 900
73721031 jeremyfanfan B March 19, 2020, 4:28 p.m. OK GNU C11 TESTS 25 748 1638400 900
73705913 akash456 B March 19, 2020, 3:48 p.m. OK GNU C11 TESTS 25 748 1638400 900
73730847 nitish.vaishnav B March 19, 2020, 4:57 p.m. OK GNU C11 TESTS 25 748 2355200 900
73790995 Pawan123 B March 20, 2020, 12:20 p.m. OK GNU C11 TESTS 25 748 3174400 900
73764635 FYH_SSGSS B March 20, 2020, 6:11 a.m. OK GNU C++11 TESTS 25 62 1638400 900
73770353 TheShadow_DC B March 20, 2020, 7:32 a.m. OK GNU C++11 TESTS 25 62 1638400 900
73749975 vjudge1 B March 20, 2020, 12:32 a.m. OK GNU C++11 TESTS 25 62 2048000 900
73832274 xht37 B March 20, 2020, 8:26 p.m. OK GNU C++11 TESTS 25 62 5836800 900
73809651 zhaoleyi1 B March 20, 2020, 4:12 p.m. OK GNU C++11 TESTS 25 77 819200 900
73720336 LxRBS B March 19, 2020, 4:26 p.m. OK GNU C++11 TESTS 25 77 921600 900
73760446 mengbierr B March 20, 2020, 5:07 a.m. OK GNU C++11 TESTS 25 77 2048000 900
73750868 GGAutomaton B March 20, 2020, 1 a.m. OK GNU C++11 TESTS 25 78 0 900
73795282 vjudge5 B March 20, 2020, 1:13 p.m. OK GNU C++11 TESTS 25 78 0 900
73714208 wxyww B March 19, 2020, 4:09 p.m. OK GNU C++11 TESTS 25 78 0 900
73785716 L.I. B March 20, 2020, 11:14 a.m. OK GNU C++14 TESTS 25 93 819200 900
73796225 Wilderzzz B March 20, 2020, 1:24 p.m. OK GNU C++14 TESTS 25 93 819200 900
73743360 JJ_RKM B March 19, 2020, 9:23 p.m. OK GNU C++14 TESTS 25 93 819200 900
73835037 carmen__ B March 20, 2020, 9:13 p.m. OK GNU C++14 TESTS 25 93 1638400 900
73758479 Pragyan_c2 B March 20, 2020, 4:30 a.m. OK GNU C++14 TESTS 25 93 1638400 900
73755029 nandonathaniel B March 20, 2020, 3:12 a.m. OK GNU C++14 TESTS 25 93 1638400 900
73806183 Auto B March 20, 2020, 3:23 p.m. OK GNU C++14 TESTS 25 93 2355200 900
73728331 seaguy B March 19, 2020, 4:50 p.m. OK GNU C++14 TESTS 25 93 2355200 900
73808422 Numan2962 B March 20, 2020, 3:51 p.m. OK GNU C++14 TESTS 25 93 2457600 900
73795898 Ukiyo B March 20, 2020, 1:20 p.m. OK GNU C++14 TESTS 25 108 0 900
73750004 _andyli B March 20, 2020, 12:32 a.m. OK GNU C++17 TESTS 25 62 2867200 900
73751899 twtynije1 B March 20, 2020, 1:37 a.m. OK GNU C++17 TESTS 25 78 1740800 900
73769779 Yzm007 B March 20, 2020, 7:24 a.m. OK GNU C++17 TESTS 25 93 0 900
73762190 saikarthik2602 B March 20, 2020, 5:34 a.m. OK GNU C++17 TESTS 25 93 1638400 900
73752126 3liAckerman B March 20, 2020, 1:45 a.m. OK GNU C++17 TESTS 25 93 1638400 900
73750459 logicroc B March 20, 2020, 12:46 a.m. OK GNU C++17 TESTS 25 93 1638400 900
73788194 cristian1997 B March 20, 2020, 11:47 a.m. OK GNU C++17 TESTS 25 93 2457600 900
73701970 VLSoV B March 19, 2020, 3:39 p.m. OK GNU C++17 TESTS 25 108 0 900
73752731 Ghozlan B March 20, 2020, 2:06 a.m. OK GNU C++17 TESTS 25 108 0 900
73834162 igba B March 20, 2020, 8:57 p.m. OK GNU C++17 TESTS 25 108 0 900
73833675 legion_geek B March 20, 2020, 8:48 p.m. OK GNU C++17 (64) TESTS 25 77 1638400 900
73825329 neal B March 20, 2020, 6:57 p.m. OK GNU C++17 (64) TESTS 25 92 3174400 900
73711122 yuki2006 B March 19, 2020, 4:01 p.m. OK Go TESTS 25 93 16179200 900
73752693 synapse B March 20, 2020, 2:04 a.m. OK Go TESTS 25 202 0 900
73770248 keshu6598 B March 20, 2020, 7:31 a.m. OK Go TESTS 25 202 4505600 900
73833763 cs_office B March 20, 2020, 8:49 p.m. OK Go TESTS 25 686 1638400 900
73730670 TheGreatGeek B March 19, 2020, 4:56 p.m. OK Haskell TESTS 25 701 102400 900
73707745 anastos B March 19, 2020, 3:53 p.m. OK Haskell TESTS 25 794 51507200 900
73784305 htspur B March 20, 2020, 10:53 a.m. OK Java 11 TESTS 25 218 0 900
73718740 exopeng B March 19, 2020, 4:21 p.m. OK Java 11 TESTS 25 265 4096000 900
73712273 anhpp B March 19, 2020, 4:04 p.m. OK Java 11 TESTS 25 265 4198400 900
73758399 abhi123valani B March 20, 2020, 4:28 a.m. OK Java 11 TESTS 25 265 4505600 900
73758259 its_aks_ulure B March 20, 2020, 4:25 a.m. OK Java 11 TESTS 25 280 0 900
73788444 AshrafEzz B March 20, 2020, 11:50 a.m. OK Java 11 TESTS 25 280 4198400 900
73783015 kirtidabas B March 20, 2020, 10:34 a.m. OK Java 11 TESTS 25 280 4300800 900
73753956 WaheguruAnurag B March 20, 2020, 2:42 a.m. OK Java 11 TESTS 25 280 5017600 900
73832341 rohan101 B March 20, 2020, 8:27 p.m. OK Java 11 TESTS 25 280 5324800 900
73702668 Clowyy B March 19, 2020, 3:40 p.m. OK Java 11 TESTS 25 296 3379200 900
73712403 laxit_y B March 19, 2020, 4:04 p.m. OK Java 8 TESTS 25 155 0 900
73800235 manishjha221 B March 20, 2020, 2:11 p.m. OK Java 8 TESTS 25 155 3584000 900
73760513 conquerorArpit B March 20, 2020, 5:08 a.m. OK Java 8 TESTS 25 155 4505600 900
73750501 bluesky111 B March 20, 2020, 12:48 a.m. OK Java 8 TESTS 25 171 0 900
73827686 swishx B March 20, 2020, 7:24 p.m. OK Java 8 TESTS 25 171 0 900
73770068 Bhargav9427 B March 20, 2020, 7:28 a.m. OK Java 8 TESTS 25 171 0 900
73715968 jeetsolucky B March 19, 2020, 4:14 p.m. OK Java 8 TESTS 25 171 0 900
73726799 deepu_10 B March 19, 2020, 4:45 p.m. OK Java 8 TESTS 25 171 10444800 900
73770253 Rushi5032 B March 20, 2020, 7:31 a.m. OK Java 8 TESTS 25 186 0 900
73763006 amolpratap007 B March 20, 2020, 5:48 a.m. OK Java 8 TESTS 25 186 0 900
73782430 Harolinch B March 20, 2020, 10:24 a.m. OK JavaScript TESTS 25 826 25395200 900
73781308 nuralamcse024 B March 20, 2020, 10:08 a.m. OK JavaScript TESTS 25 826 27238400 900
73752418 Spheniscine B March 20, 2020, 1:54 a.m. OK Kotlin TESTS 25 202 15769600 900
73709295 AsuraPro B March 19, 2020, 3:56 p.m. OK Kotlin TESTS 25 233 15667200 900
73775206 PugachAG B March 20, 2020, 8:40 a.m. OK Kotlin TESTS 25 248 14131200 900
73703134 SlavaG B March 19, 2020, 3:42 p.m. OK Kotlin TESTS 25 249 15974400 900
73751102 david_varela B March 20, 2020, 1:09 a.m. OK Kotlin TESTS 25 421 18534400 900
73709281 abdukodir B March 19, 2020, 3:56 p.m. OK Kotlin TESTS 25 436 18534400 900
73715112 viusiumbeli B March 19, 2020, 4:11 p.m. OK Kotlin TESTS 25 436 18739200 900
73704586 sid9406 B March 19, 2020, 3:45 p.m. OK Kotlin TESTS 25 451 20275200 900
73726491 RockyFail B March 19, 2020, 4:44 p.m. OK Mono C# TESTS 25 186 37376000 900
73702443 thetansquared B March 19, 2020, 3:40 p.m. OK Mono C# TESTS 25 202 38912000 900
73755633 de_loo B March 20, 2020, 3:27 a.m. OK Mono C# TESTS 25 217 38297600 900
73774793 TRR B March 20, 2020, 8:34 a.m. OK Mono C# TESTS 25 826 31539200 900
73705283 igormaslov123 B March 19, 2020, 3:47 p.m. OK Mono C# TESTS 25 842 38604800 900
73708695 hnust_mengdijie B March 19, 2020, 3:55 p.m. OK MS C++ TESTS 25 93 1638400 900
73792542 vjudge4 B March 20, 2020, 12:40 p.m. OK MS C++ TESTS 25 108 819200 900
73744905 TMHazem B March 19, 2020, 9:54 p.m. OK MS C++ TESTS 25 109 1638400 900
73799087 vjudge2 B March 20, 2020, 1:56 p.m. OK MS C++ TESTS 25 265 1638400 900
73775310 rishav_raj5 B March 20, 2020, 8:42 a.m. OK MS C++ TESTS 25 265 1638400 900
73711660 theweird B March 19, 2020, 4:02 p.m. OK MS C++ TESTS 25 280 1638400 900
73726023 satish0701 B March 19, 2020, 4:43 p.m. OK MS C++ TESTS 25 857 1638400 900
73820467 AryanJ B March 20, 2020, 6:09 p.m. OK MS C++ 2017 TESTS 25 124 2457600 900
73756805 qwe123rt45 B March 20, 2020, 3:54 a.m. OK MS C++ 2017 TESTS 25 124 16076800 900
73711867 hwqconceptnick B March 19, 2020, 4:03 p.m. OK MS C++ 2017 TESTS 25 140 0 900
73707711 Thinklark B March 19, 2020, 3:53 p.m. OK MS C++ 2017 TESTS 25 140 2457600 900
73775873 _abhishek_mandal B March 20, 2020, 8:47 a.m. OK MS C++ 2017 TESTS 25 217 5120000 900
73708474 Zhora_.004 B March 19, 2020, 3:54 p.m. OK MS C++ 2017 TESTS 25 296 819200 900
73792130 Boryan07 B March 20, 2020, 12:34 p.m. OK MS C++ 2017 TESTS 25 296 1638400 900
73723888 scorpion_27 B March 19, 2020, 4:36 p.m. OK MS C++ 2017 TESTS 25 296 2662400 900
73705032 skatecode007 B March 19, 2020, 3:46 p.m. OK MS C++ 2017 TESTS 25 296 3276800 900
73831126 danilgrig B March 20, 2020, 8:09 p.m. OK MS C++ 2017 TESTS 25 311 819200 900
73782805 Harolinch B March 20, 2020, 10:31 a.m. OK Node.js TESTS 25 358 42905600 900
73717522 Bekzaat17 B March 19, 2020, 4:18 p.m. OK PHP TESTS 25 93 27340800 900
73799953 mayakin B March 20, 2020, 2:08 p.m. OK PHP TESTS 25 108 26931200 900
73749664 the_sf B March 20, 2020, 12:21 a.m. OK PyPy 2 TESTS 25 186 18534400 900
73763977 apoorvwatsky B March 20, 2020, 6:02 a.m. OK PyPy 3 TESTS 25 218 18739200 900
73763903 apoorvwatsky B March 20, 2020, 6:01 a.m. OK PyPy 3 TESTS 25 296 18739200 900
73726801 grapheo12 B March 19, 2020, 4:45 p.m. OK PyPy 3 TESTS 25 468 25395200 900
73721811 adi2811 B March 19, 2020, 4:30 p.m. OK PyPy 3 TESTS 25 483 22425600 900
73767389 Harsh_garg B March 20, 2020, 6:49 a.m. OK PyPy 3 TESTS 25 483 27136000 900
73767329 koptev B March 20, 2020, 6:48 a.m. OK PyPy 3 TESTS 25 498 21606400 900
73769844 Venom_007 B March 20, 2020, 7:25 a.m. OK PyPy 3 TESTS 25 498 22425600 900
73766686 anjali_ag B March 20, 2020, 6:39 a.m. OK PyPy 3 TESTS 25 498 23552000 900
73775164 Yagya_Deep_Agrawal1 B March 20, 2020, 8:39 a.m. OK PyPy 3 TESTS 25 498 26521600 900
73701986 cryptohedgehog B March 19, 2020, 3:39 p.m. OK PyPy 3 TESTS 25 498 27750400 900
73707388 vijayantyadav11 B March 19, 2020, 3:52 p.m. OK Python 3 TESTS 25 311 20172800 900
73702027 ByMykel B March 19, 2020, 3:39 p.m. OK Python 3 TESTS 25 311 22220800 900
73728428 suyunur B March 19, 2020, 4:50 p.m. OK Python 3 TESTS 25 326 22732800 900
73783790 diwakar123 B March 20, 2020, 10:46 a.m. OK Python 3 TESTS 25 327 20172800 900
73725013 lorenzo.park B March 19, 2020, 4:40 p.m. OK Python 3 TESTS 25 342 22118400 900
73754312 aman06016 B March 20, 2020, 2:54 a.m. OK Python 3 TESTS 25 343 23040000 900
73725702 BlackBear B March 19, 2020, 4:42 p.m. OK Python 3 TESTS 25 343 23040000 900
73705549 jamerrq B March 19, 2020, 3:47 p.m. OK Python 3 TESTS 25 343 31232000 900
73714999 Sam-urai B March 19, 2020, 4:11 p.m. OK Python 3 TESTS 25 358 29081600 900
73741735 ByMykel B March 19, 2020, 8:57 p.m. OK Python 3 TESTS 25 374 23040000 900
73753420 Jezzuz B March 20, 2020, 2:27 a.m. OK Rust TESTS 25 78 5529600 900
73753810 Jezzuz B March 20, 2020, 2:38 a.m. OK Rust TESTS 25 93 5529600 900
73753006 Jezzuz B March 20, 2020, 2:14 a.m. OK Rust TESTS 25 93 6553600 900

remove filters

Back to search problems