Educational Codeforces Round 56 (Rated for 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
1093 Educational Codeforces Round 56 (Rated for Div. 2) FINISHED False 7200 192641123 Dec. 15, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9467 ) C Mishka and the Last Exam PROGRAMMING greedy 1200

B"Mishka is trying really hard to avoid being kicked out of the university. In particular, he was doing absolutely nothing for the whole semester, miraculously passed some exams so that just one is left. There were n classes of that subject during the semester and on i -th class professor mentioned some non-negative integer a_i to the students. It turned out, the exam was to tell the whole sequence back to the professor. Sounds easy enough for those who attended every class, doesn't it? Obviously Mishka didn't attend any classes. However, professor left some clues on the values of a to help out students like Mishka: Professor also mentioned that any sequence a , which produces sequence b with the presented technique, will be acceptable. Help Mishka to pass that last exam. Restore any sorted sequence a of non-negative integers, which produces sequence b with the presented technique. It is guaranteed that there exists at least one correct sequence a , which produces the given sequence b . The first line contains a single integer n ( 2 <= n <= 2 cdot 10^5 ) -- the length of sequence a . n is always even. The second line contains frac n 2 integers b_1, b_2, ... , b_{ frac n 2} ( 0 <= b_i <= 10^{18} ) -- sequence b , where b_i = a_i + a_{n - i + 1} . It is guaranteed that there exists at least one correct sequence a , which produces the given sequence b . Print n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 10^{18} ) in a single line. a_1 <= a_2 <= ... <= a_n should be satisfied. b_i = a_i + a_{n - i + 1} should be satisfied for all valid i . "...

Tutorials

63877

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47265073 caiyiwen C Dec. 19, 2018, 1:58 p.m. OK Clang++17 Diagnostics TESTS 23 202 512000 1200
47194710 savalla_anusha C Dec. 18, 2018, 1:58 p.m. OK Clang++17 Diagnostics TESTS 23 1809 45158400 1200
47588096 savalla_anusha C Dec. 27, 2018, 4:26 p.m. OK Clang++17 Diagnostics TESTS 23 1840 45465600 1200
47607660 ragaja_14 C Dec. 28, 2018, 6:21 a.m. OK Clang++17 Diagnostics TESTS 23 1886 15052800 1200
48082135 Meibisu C Jan. 8, 2019, 8:39 a.m. OK FPC TESTS 23 654 1638400 1200
47265607 omlgg C Dec. 19, 2018, 2:11 p.m. OK FPC TESTS 23 655 3174400 1200
47525369 Khanh_Moriaty C Dec. 26, 2018, 3:32 p.m. OK FPC TESTS 23 670 16076800 1200
47266923 jamienguyen C Dec. 19, 2018, 2:44 p.m. OK FPC TESTS 23 686 1638400 1200
47440184 sansen C Dec. 23, 2018, 11:25 p.m. OK GNU C11 TESTS 23 93 1638400 1200
47535053 VoidMercy123 C Dec. 26, 2018, 11:58 p.m. OK GNU C11 TESTS 23 811 1638400 1200
48422208 NoSoul C Jan. 15, 2019, 1:18 p.m. OK GNU C11 TESTS 23 826 1638400 1200
48048784 Potassium_ C Jan. 7, 2019, 6:54 a.m. OK GNU C11 TESTS 23 826 1638400 1200
48049308 Potassium_ C Jan. 7, 2019, 7:32 a.m. OK GNU C11 TESTS 23 826 1638400 1200
47552947 bilkentMaster C Dec. 27, 2018, 2:06 p.m. OK GNU C11 TESTS 23 826 2355200 1200
47344559 martin02 C Dec. 21, 2018, 7 p.m. OK GNU C11 TESTS 23 826 2355200 1200
47547314 mdfaabrar257 C Dec. 27, 2018, 10:56 a.m. OK GNU C11 TESTS 23 826 2355200 1200
47971796 SyntnRy C Jan. 5, 2019, 3:13 p.m. OK GNU C11 TESTS 23 826 2355200 1200
47557267 raja_123 C Dec. 27, 2018, 2:42 p.m. OK GNU C11 TESTS 23 826 2355200 1200
47243708 Jyf624761709 C Dec. 19, 2018, 4:12 a.m. OK GNU C++11 TESTS 23 78 1638400 1200
47148069 zjf_juruo C Dec. 17, 2018, 4:39 a.m. OK GNU C++11 TESTS 23 78 2560000 1200
47706067 vishnu_m C Dec. 29, 2018, 8:26 p.m. OK GNU C++11 TESTS 23 93 819200 1200
47706243 vishnu_m C Dec. 29, 2018, 8:35 p.m. OK GNU C++11 TESTS 23 93 819200 1200
47672448 luogu_bot5 C Dec. 29, 2018, 6:59 a.m. OK GNU C++11 TESTS 23 93 1638400 1200
47169122 Zechariah_2001 C Dec. 17, 2018, 2:01 p.m. OK GNU C++11 TESTS 23 93 1638400 1200
47673249 luogu_bot2 C Dec. 29, 2018, 7:29 a.m. OK GNU C++11 TESTS 23 93 1638400 1200
47266853 REYwmp C Dec. 19, 2018, 2:42 p.m. OK GNU C++11 TESTS 23 93 2457600 1200
47102371 vjudge2 C Dec. 16, 2018, 11:21 a.m. OK GNU C++11 TESTS 23 93 2457600 1200
62101018 lucario_OI C Oct. 8, 2019, 9:07 a.m. OK GNU C++11 TESTS 23 93 2560000 1200
47316147 c1106543196 C Dec. 21, 2018, 3:44 a.m. OK GNU C++14 TESTS 23 124 1536000 1200
49387100 neo11235 C Feb. 3, 2019, 7:34 a.m. OK GNU C++14 TESTS 23 124 1638400 1200
53440586 chauhain C April 27, 2019, 11:31 p.m. OK GNU C++14 TESTS 23 124 1638400 1200
68741501 LANDDKPLA C Jan. 14, 2020, 1:31 a.m. OK GNU C++14 TESTS 23 124 1638400 1200
47393269 vjudge2 C Dec. 23, 2018, 9:30 a.m. OK GNU C++14 TESTS 23 124 1638400 1200
47090578 Jayson_jun C Dec. 16, 2018, 5:36 a.m. OK GNU C++14 TESTS 23 124 2355200 1200
54507760 SumaiyaAny C May 23, 2019, 5:16 a.m. OK GNU C++14 TESTS 23 124 2355200 1200
51976410 InXtinct C March 29, 2019, 2:28 p.m. OK GNU C++14 TESTS 23 124 2457600 1200
47092653 Grennwolf C Dec. 16, 2018, 6:55 a.m. OK GNU C++14 TESTS 23 124 2457600 1200
47084043 JoaquinManuel C Dec. 15, 2018, 11:08 p.m. OK GNU C++14 TESTS 23 124 2457600 1200
47852322 lys1280023 C Jan. 2, 2019, 6:39 p.m. OK GNU C++17 TESTS 23 124 1638400 1200
51317539 648771054 C March 15, 2019, 2:28 a.m. OK GNU C++17 TESTS 23 124 1638400 1200
47116696 lXTobiXl C Dec. 16, 2018, 2:55 p.m. OK GNU C++17 TESTS 23 124 1638400 1200
47512429 sodafago C Dec. 26, 2018, 7:29 a.m. OK GNU C++17 TESTS 23 124 1638400 1200
48445666 CWEI C Jan. 16, 2019, 7:19 a.m. OK GNU C++17 TESTS 23 124 2355200 1200
47642763 Taaha C Dec. 28, 2018, 3:35 p.m. OK GNU C++17 TESTS 23 124 2662400 1200
50631629 Emiliatann C March 1, 2019, 9:25 a.m. OK GNU C++17 TESTS 23 124 3174400 1200
47226482 kirito_ C Dec. 18, 2018, 4:38 p.m. OK GNU C++17 TESTS 23 124 5120000 1200
53720430 buklyakey C May 3, 2019, 10:28 p.m. OK GNU C++17 TESTS 23 139 1638400 1200
54177787 dionysios C May 15, 2019, 2:34 p.m. OK GNU C++17 TESTS 23 139 1638400 1200
47355487 ledinhbao C Dec. 22, 2018, 6:03 a.m. OK Go TESTS 23 233 5222400 1200
47311501 qb2008 C Dec. 20, 2018, 8:15 p.m. OK Go TESTS 23 234 5222400 1200
47937000 chinababka C Jan. 4, 2019, 4:48 p.m. OK Go TESTS 23 841 5324800 1200
47355336 ledinhbao C Dec. 22, 2018, 5:58 a.m. OK Go TESTS 23 857 5222400 1200
47355158 ledinhbao C Dec. 22, 2018, 5:52 a.m. OK Go TESTS 23 873 5324800 1200
47092688 sinapusu2002 C Dec. 16, 2018, 6:56 a.m. OK Haskell TESTS 23 701 56934400 1200
67450045 bleh0.5 C Dec. 23, 2019, 3:18 a.m. OK Java 11 TESTS 23 295 0 1200
67037414 CodAR C Dec. 16, 2019, 5:53 p.m. OK Java 11 TESTS 23 1107 0 1200
54633492 Vishal_dhanani C May 25, 2019, 3:41 p.m. OK Java 8 TESTS 23 170 0 1200
47254548 DropKeBaadNirma C Dec. 19, 2018, 9:51 a.m. OK Java 8 TESTS 23 171 0 1200
47095361 poikniok C Dec. 16, 2018, 8:10 a.m. OK Java 8 TESTS 23 171 0 1200
47102227 bazinga84 C Dec. 16, 2018, 11:17 a.m. OK Java 8 TESTS 23 186 0 1200
54248280 Xylenox C May 16, 2019, 3:52 p.m. OK Java 8 TESTS 23 187 0 1200
47108907 buzaubakov.raman C Dec. 16, 2018, 2:30 p.m. OK Java 8 TESTS 23 187 3379200 1200
47103962 Anonymous C Dec. 16, 2018, 12:02 p.m. OK Java 8 TESTS 23 187 15564800 1200
56184915 dsh_bc C June 28, 2019, 3:53 a.m. OK Java 8 TESTS 23 202 0 1200
49858008 revanthreddy85 C Feb. 13, 2019, 8:10 a.m. OK Java 8 TESTS 23 202 0 1200
47318182 sooraj10 C Dec. 21, 2018, 5:53 a.m. OK Java 8 TESTS 23 202 0 1200
47262709 Killer45 C Dec. 19, 2018, 1:02 p.m. OK Kotlin TESTS 23 249 6348800 1200
47327323 moss3s C Dec. 21, 2018, 11:07 a.m. OK Kotlin TESTS 23 296 21606400 1200
47871556 spookywooky C Jan. 3, 2019, 1:09 p.m. OK Kotlin TESTS 23 436 19148800 1200
47504441 z39 C Dec. 25, 2018, 8:50 p.m. OK Kotlin TESTS 23 452 17817600 1200
55008633 og.kostya C June 3, 2019, 8:57 a.m. OK Mono C# TESTS 23 109 5529600 1200
47109069 Solar C Dec. 16, 2018, 2:35 p.m. OK Mono C# TESTS 23 217 32051200 1200
47814868 Roka C Jan. 1, 2019, 1:45 p.m. OK Mono C# TESTS 23 217 37683200 1200
47365635 MrBeer C Dec. 22, 2018, 11:18 a.m. OK Mono C# TESTS 23 233 41676800 1200
50863050 nemars C March 5, 2019, 6:57 p.m. OK Mono C# TESTS 23 249 37785600 1200
47608645 Xtreemist C Dec. 28, 2018, 6:51 a.m. OK Mono C# TESTS 23 733 30105600 1200
47608147 Xtreemist C Dec. 28, 2018, 6:35 a.m. OK Mono C# TESTS 23 748 30105600 1200
47278754 zazak C Dec. 19, 2018, 9:22 p.m. OK Mono C# TESTS 23 779 29491200 1200
47608018 Xtreemist C Dec. 28, 2018, 6:31 a.m. OK Mono C# TESTS 23 810 32768000 1200
48446376 Mandrade C Jan. 16, 2019, 7:43 a.m. OK Mono C# TESTS 23 858 26828800 1200
60768210 vjudge2 C Sept. 18, 2019, 11:45 a.m. OK MS C++ TESTS 23 109 2560000 1200
48866821 vjudge3 C Jan. 24, 2019, 3:44 a.m. OK MS C++ TESTS 23 109 16076800 1200
48961043 vjudge2 C Jan. 26, 2019, 6:21 a.m. OK MS C++ TESTS 23 124 1638400 1200
48962957 vjudge2 C Jan. 26, 2019, 6:44 a.m. OK MS C++ TESTS 23 124 1638400 1200
47320169 RDplayer C Dec. 21, 2018, 7:12 a.m. OK MS C++ TESTS 23 124 1638400 1200
48801057 vjudge3 C Jan. 23, 2019, 2:25 p.m. OK MS C++ TESTS 23 124 1638400 1200
50096416 vjudge2 C Feb. 18, 2019, 12:58 p.m. OK MS C++ TESTS 23 124 2457600 1200
47194193 cuk123 C Dec. 18, 2018, 1:44 p.m. OK MS C++ TESTS 23 124 2457600 1200
50094061 vjudge2 C Feb. 18, 2019, 11:53 a.m. OK MS C++ TESTS 23 124 4812800 1200
48939542 vjudge3 C Jan. 25, 2019, 3:50 p.m. OK MS C++ TESTS 23 124 5324800 1200
58411297 ZSTU-2018329621261 C Aug. 7, 2019, 1:49 a.m. OK MS C++ 2017 TESTS 23 155 3174400 1200
51071033 work_hard. C March 9, 2019, 7:39 a.m. OK MS C++ 2017 TESTS 23 156 2457600 1200
49664037 Still_Theory C Feb. 9, 2019, 1:39 p.m. OK MS C++ 2017 TESTS 23 296 2457600 1200
62459498 shio C Oct. 13, 2019, 7:44 a.m. OK MS C++ 2017 TESTS 23 312 1638400 1200
59776584 siwei C Aug. 30, 2019, 11:47 p.m. OK MS C++ 2017 TESTS 23 312 2457600 1200
48324120 moballack C Jan. 13, 2019, 10:55 a.m. OK Node.js TESTS 23 794 85913600 1200
47439450 irenicus30 C Dec. 23, 2018, 10:11 p.m. OK Node.js TESTS 23 1700 71782400 1200
47440494 irenicus30 C Dec. 23, 2018, 11:57 p.m. OK Node.js TESTS 23 1762 71680000 1200
47099158 mayakin C Dec. 16, 2018, 9:52 a.m. OK PHP TESTS 23 577 37376000 1200
48941934 gatsko C Jan. 25, 2019, 4:59 p.m. OK PyPy 2 TESTS 23 249 28672000 1200
51564124 apoorv1999 C March 20, 2019, 9:03 a.m. OK PyPy 2 TESTS 23 296 28262400 1200
47180093 nealzane C Dec. 17, 2018, 8:03 p.m. OK PyPy 2 TESTS 23 296 31539200 1200
47448760 supachai_pay C Dec. 24, 2018, 8:11 a.m. OK PyPy 2 TESTS 23 436 32768000 1200
51961782 TriNguyen17 C March 29, 2019, 7:18 a.m. OK PyPy 3 TESTS 23 577 48025600 1200
47214635 tardis39 C Dec. 18, 2018, 3:42 p.m. OK PyPy 3 TESTS 23 592 25804800 1200
48166321 kaname_madoka123 C Jan. 10, 2019, 1:44 a.m. OK PyPy 3 TESTS 23 592 38297600 1200
47147333 DLCattici C Dec. 17, 2018, 3:54 a.m. OK PyPy 3 TESTS 23 592 45465600 1200
47463202 mikelopster C Dec. 24, 2018, 4:19 p.m. OK PyPy 3 TESTS 23 592 54169600 1200
47610948 megaspazz C Dec. 28, 2018, 8:06 a.m. OK PyPy 3 TESTS 23 607 72294400 1200
47193707 fascineted C Dec. 18, 2018, 1:32 p.m. OK PyPy 3 TESTS 23 608 26828800 1200
49473165 Ethan_M C Feb. 4, 2019, 6:05 p.m. OK PyPy 3 TESTS 23 608 27238400 1200
47480271 bularond C Dec. 25, 2018, 4:16 a.m. OK PyPy 3 TESTS 23 608 28467200 1200
47090565 FahimSifnatul C Dec. 16, 2018, 5:35 a.m. OK PyPy 3 TESTS 23 608 30105600 1200
47075385 saladtoes1 C Dec. 15, 2018, 5 p.m. OK Python 2 TESTS 23 342 24473600 1200
47315179 franckmy C Dec. 21, 2018, 2:10 a.m. OK Python 2 TESTS 23 358 19353600 1200
47187539 Mamta C Dec. 18, 2018, 5:49 a.m. OK Python 2 TESTS 23 373 10854400 1200
48305537 scambret C Jan. 12, 2019, 7:32 p.m. OK Python 2 TESTS 23 374 21811200 1200
47824678 psaini C Jan. 1, 2019, 8:58 p.m. OK Python 2 TESTS 23 420 11468800 1200
57862406 ManasG C July 27, 2019, 6:34 p.m. OK Python 2 TESTS 23 546 12288000 1200
47083244 Leemur C Dec. 15, 2018, 9:53 p.m. OK Python 3 TESTS 23 295 23961600 1200
47605349 saku7 C Dec. 28, 2018, 4:16 a.m. OK Python 3 TESTS 23 296 23961600 1200
47158105 DLCattici C Dec. 17, 2018, 8:10 a.m. OK Python 3 TESTS 23 296 25292800 1200
47158008 DLCattici C Dec. 17, 2018, 8:07 a.m. OK Python 3 TESTS 23 296 26009600 1200
47487061 Felerius C Dec. 25, 2018, 9:28 a.m. OK Python 3 TESTS 23 311 23244800 1200
47080685 chgliu C Dec. 15, 2018, 7:35 p.m. OK Python 3 TESTS 23 311 23552000 1200
47446882 sy_chen C Dec. 24, 2018, 6:56 a.m. OK Python 3 TESTS 23 311 23859200 1200
47583478 Paydayzcool C Dec. 27, 2018, 4:05 p.m. OK Python 3 TESTS 23 311 24064000 1200
47146220 lshoon29 C Dec. 17, 2018, 2:41 a.m. OK Python 3 TESTS 23 311 24473600 1200
47089187 daotiennamhlvl C Dec. 16, 2018, 4:12 a.m. OK Python 3 TESTS 23 312 15052800 1200
47949649 marcio.diaz C Jan. 4, 2019, 10:39 p.m. OK Rust TESTS 23 124 5222400 1200
47168376 yakamoto C Dec. 17, 2018, 1:40 p.m. OK Scala TESTS 23 545 27136000 1200
47088854 cachinnating-cockatoo C Dec. 16, 2018, 3:49 a.m. OK Scala TESTS 23 655 41984000 1200

remove filters

Back to search problems