Educational Codeforces Round 136 (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
1739 Educational Codeforces Round 136 (Rated for Div. 2) FINISHED False 7200 67361099 Sept. 29, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22557 ) B Array Recovery PROGRAMMING constructive algorithms greedy math

B'For an array of non-negative integers a of size n , we construct another array d as follows: d_1 = a_1 , d_i = |a_i - a_{i - 1}| for 2 <= i <= n . Your task is to restore the array a from a given array d , or to report that there are multiple possible arrays. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The first line of each test case contains one integer n ( 1 <= n <= 100 ) -- the size of the arrays a and d . The second line contains n integers d_1, d_2, ... , d_n ( 0 <= d_i <= 100 ) -- the elements of the array d . It can be shown that there always exists at least one suitable array a under these constraints. For each test case, print the elements of the array a , if there is only one possible array a . Otherwise, print -1 . In the second example, there are two suitable arrays: [2, 8, 5] and [2, 8, 11] . '...

Tutorials

Educational Codeforces Round 136 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
174032176 bluemegane B Sept. 30, 2022, 1:28 a.m. OK C# 8 TESTS 171 139 716800
174186140 arafamin B Oct. 1, 2022, 12:58 a.m. OK C# 8 TESTS 171 186 819200
173999413 2010030194 B Sept. 29, 2022, 4:50 p.m. OK Clang++17 Diagnostics TESTS 171 62 7372800
174031824 MoMo2022 B Sept. 30, 2022, 1:21 a.m. OK Clang++17 Diagnostics TESTS 171 77 7372800
174037920 ashwanth106121023 B Sept. 30, 2022, 3:37 a.m. OK Clang++17 Diagnostics TESTS 171 77 7372800
174011688 anchit.20bcon3521 B Sept. 29, 2022, 6:47 p.m. OK Clang++17 Diagnostics TESTS 171 77 10444800
174041030 jay_adhikrut B Sept. 30, 2022, 4:39 a.m. OK Clang++17 Diagnostics TESTS 171 78 3174400
174011751 diegodaco08 B Sept. 29, 2022, 6:48 p.m. OK Clang++17 Diagnostics TESTS 171 78 7372800
174082455 pwlm B Sept. 30, 2022, 1:22 p.m. OK Clang++20 Diagnostics TESTS 171 77 0
174172993 ag2003 B Sept. 30, 2022, 7:59 p.m. OK GNU C11 TESTS 171 31 0
174029144 Hantur B Sept. 30, 2022, 12:13 a.m. OK GNU C11 TESTS 171 46 0
174005903 Anik20CSE030 B Sept. 29, 2022, 5:46 p.m. OK GNU C11 TESTS 171 46 0
174031587 Sweetrip B Sept. 30, 2022, 1:16 a.m. OK GNU C11 TESTS 171 46 0
174122152 saikrishnaallamsetti2003 B Sept. 30, 2022, 3:39 p.m. OK GNU C11 TESTS 171 46 0
174167177 neerav3 B Sept. 30, 2022, 6:52 p.m. OK GNU C11 TESTS 171 46 0
174025405 rabbyxq B Sept. 29, 2022, 10:37 p.m. OK GNU C11 TESTS 171 46 0
174003260 thanush.s21 B Sept. 29, 2022, 5:19 p.m. OK GNU C11 TESTS 171 62 0
174007184 abhishekprajapati.890e B Sept. 29, 2022, 5:58 p.m. OK GNU C11 TESTS 171 62 0
174029790 Hantur B Sept. 30, 2022, 12:32 a.m. OK GNU C11 TESTS 171 62 0
174197907 Ahsan_Lasa B Oct. 1, 2022, 4:24 a.m. OK GNU C++14 TESTS 171 15 0
174188236 RDFZzzx B Oct. 1, 2022, 1:42 a.m. OK GNU C++14 TESTS 171 15 0
174188384 eriktse B Oct. 1, 2022, 1:45 a.m. OK GNU C++14 TESTS 171 15 0
174188562 eds1 B Oct. 1, 2022, 1:48 a.m. OK GNU C++14 TESTS 171 15 0
174188625 chenmohan201068 B Oct. 1, 2022, 1:49 a.m. OK GNU C++14 TESTS 171 15 0
174188829 xxxjybd B Oct. 1, 2022, 1:53 a.m. OK GNU C++14 TESTS 171 15 0
174189689 chuanyu.fan B Oct. 1, 2022, 2:08 a.m. OK GNU C++14 TESTS 171 15 0
174189935 TEoS B Oct. 1, 2022, 2:13 a.m. OK GNU C++14 TESTS 171 15 0
174194487 The_4th_floor B Oct. 1, 2022, 3:30 a.m. OK GNU C++14 TESTS 171 15 0
174202876 Niladree_Datta B Oct. 1, 2022, 5:27 a.m. OK GNU C++14 TESTS 171 15 0
174205297 Ritik_Srivastav B Oct. 1, 2022, 5:53 a.m. OK GNU C++17 TESTS 171 15 0
174204452 SyedaGulnaj B Oct. 1, 2022, 5:44 a.m. OK GNU C++17 TESTS 171 15 0
174204310 Tatvam_Shah B Oct. 1, 2022, 5:43 a.m. OK GNU C++17 TESTS 171 15 0
174203557 CherryFrog B Oct. 1, 2022, 5:34 a.m. OK GNU C++17 TESTS 171 15 0
174203535 adnan00_20 B Oct. 1, 2022, 5:34 a.m. OK GNU C++17 TESTS 171 15 0
174202710 Vivek1998299 B Oct. 1, 2022, 5:25 a.m. OK GNU C++17 TESTS 171 15 0
174201953 hritvik_k B Oct. 1, 2022, 5:16 a.m. OK GNU C++17 TESTS 171 15 0
174198796 dhruvranka16 B Oct. 1, 2022, 4:35 a.m. OK GNU C++17 TESTS 171 15 0
174198187 Shouko13 B Oct. 1, 2022, 4:28 a.m. OK GNU C++17 TESTS 171 15 0
174196105 grim_reaper13 B Oct. 1, 2022, 3:56 a.m. OK GNU C++17 TESTS 171 15 0
174156438 Nasirpks36 B Sept. 30, 2022, 5:08 p.m. OK GNU C++17 (64) TESTS 171 15 0
174202299 8xin B Oct. 1, 2022, 5:20 a.m. OK GNU C++17 (64) TESTS 171 15 0
174196633 bunny1024 B Oct. 1, 2022, 4:05 a.m. OK GNU C++17 (64) TESTS 171 15 0
174196461 paopaooux B Oct. 1, 2022, 4:02 a.m. OK GNU C++17 (64) TESTS 171 15 0
174194358 wehtam_b03 B Oct. 1, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 171 15 0
174188216 Sinocchi B Oct. 1, 2022, 1:41 a.m. OK GNU C++17 (64) TESTS 171 15 0
174175816 helenmie B Sept. 30, 2022, 8:41 p.m. OK GNU C++17 (64) TESTS 171 15 0
174162540 tazim B Sept. 30, 2022, 6:19 p.m. OK GNU C++17 (64) TESTS 171 15 0
174158024 CodeSlayer007 B Sept. 30, 2022, 5:28 p.m. OK GNU C++17 (64) TESTS 171 15 0
174156876 Handsome2004 B Sept. 30, 2022, 5:13 p.m. OK GNU C++17 (64) TESTS 171 15 0
174199143 vm.smurf B Oct. 1, 2022, 4:40 a.m. OK GNU C++20 (64) TESTS 171 15 0
174199564 _shogy_ B Oct. 1, 2022, 4:46 a.m. OK GNU C++20 (64) TESTS 171 15 0
174199751 himanshu_jadon B Oct. 1, 2022, 4:48 a.m. OK GNU C++20 (64) TESTS 171 15 0
174200710 Binary11010 B Oct. 1, 2022, 5 a.m. OK GNU C++20 (64) TESTS 171 15 0
174202224 A__S B Oct. 1, 2022, 5:20 a.m. OK GNU C++20 (64) TESTS 171 15 0
174203485 2powerN B Oct. 1, 2022, 5:33 a.m. OK GNU C++20 (64) TESTS 171 15 0
174204654 akarshkumar32 B Oct. 1, 2022, 5:46 a.m. OK GNU C++20 (64) TESTS 171 15 0
174204848 congdat B Oct. 1, 2022, 5:48 a.m. OK GNU C++20 (64) TESTS 171 15 0
174205935 iq-on B Oct. 1, 2022, 6 a.m. OK GNU C++20 (64) TESTS 171 15 0
174205977 arnab8002 B Oct. 1, 2022, 6 a.m. OK GNU C++20 (64) TESTS 171 15 0
174016428 koqo B Sept. 29, 2022, 7:49 p.m. OK Go TESTS 171 31 204800
174189951 pepradere B Oct. 1, 2022, 2:13 a.m. OK Go TESTS 171 31 409600
174082388 kencho B Sept. 30, 2022, 1:21 p.m. OK Java 11 TESTS 171 187 0
174047510 25_5_2022 B Sept. 30, 2022, 6:32 a.m. OK Java 11 TESTS 171 187 0
174042181 Kanishka_bansode B Sept. 30, 2022, 5 a.m. OK Java 11 TESTS 171 202 0
174085994 akashkumarkly B Sept. 30, 2022, 1:58 p.m. OK Java 11 TESTS 171 202 0
174080231 ritu_1 B Sept. 30, 2022, 12:58 p.m. OK Java 11 TESTS 171 202 0
174075491 enviornment B Sept. 30, 2022, 12:07 p.m. OK Java 11 TESTS 171 202 0
174051318 T_PAVAN_NAGARAJU B Sept. 30, 2022, 7:22 a.m. OK Java 11 TESTS 171 202 0
174035432 oneafter B Sept. 30, 2022, 2:40 a.m. OK Java 11 TESTS 171 202 0
174019244 doomhammer. B Sept. 29, 2022, 8:31 p.m. OK Java 11 TESTS 171 202 0
174000970 Spidey2182 B Sept. 29, 2022, 5 p.m. OK Java 11 TESTS 171 202 0
174065270 agarwalmanas212001 B Sept. 30, 2022, 10:04 a.m. OK Java 17 TESTS 171 217 716800
174002545 liomsv B Sept. 29, 2022, 5:13 p.m. OK Java 17 TESTS 171 218 409600
174026539 freehandle B Sept. 29, 2022, 11:06 p.m. OK Java 17 TESTS 171 218 614400
174062216 dracarys_1105 B Sept. 30, 2022, 9:29 a.m. OK Java 17 TESTS 171 218 819200
174045970 Kedrigern B Sept. 30, 2022, 6:13 a.m. OK Java 17 TESTS 171 248 819200
174028065 IceWolf898 B Sept. 29, 2022, 11:44 p.m. OK Java 17 TESTS 171 249 614400
174077536 goalboy B Sept. 30, 2022, 12:29 p.m. OK Java 17 TESTS 171 249 614400
174020384 harman1148 B Sept. 29, 2022, 8:52 p.m. OK Java 17 TESTS 171 249 716800
174013161 gaurav_22 B Sept. 29, 2022, 7:05 p.m. OK Java 17 TESTS 171 249 716800
174025361 chaosdevil B Sept. 29, 2022, 10:36 p.m. OK Java 17 TESTS 171 249 921600
174049192 yashpandey73 B Sept. 30, 2022, 6:54 a.m. OK Java 8 TESTS 171 108 0
174046230 akarshanand2810 B Sept. 30, 2022, 6:16 a.m. OK Java 8 TESTS 171 108 0
173997929 NerfThis B Sept. 29, 2022, 4:40 p.m. OK Java 8 TESTS 171 109 0
174168987 vaibhav_1710 B Sept. 30, 2022, 7:10 p.m. OK Java 8 TESTS 171 109 0
174052789 TheMasterOfSuspense B Sept. 30, 2022, 7:41 a.m. OK Java 8 TESTS 171 109 0
174051217 C_P_T_N B Sept. 30, 2022, 7:21 a.m. OK Java 8 TESTS 171 109 0
174038502 Swapniltri B Sept. 30, 2022, 3:49 a.m. OK Java 8 TESTS 171 109 0
174040584 ikillmyself B Sept. 30, 2022, 4:30 a.m. OK Java 8 TESTS 171 124 0
174067862 sachinjaiswal B Sept. 30, 2022, 10:38 a.m. OK Java 8 TESTS 171 124 0
174158839 ankit_0207 B Sept. 30, 2022, 5:40 p.m. OK Java 8 TESTS 171 124 0
174068277 AlgoTurtle B Sept. 30, 2022, 10:43 a.m. OK Mono C# TESTS 171 46 819200
174082701 FranJ B Sept. 30, 2022, 1:24 p.m. OK MS C++ 2017 TESTS 171 15 0
174036206 wawawawa1 B Sept. 30, 2022, 2:58 a.m. OK MS C++ 2017 TESTS 171 15 0
174004412 ducminh2004pd B Sept. 29, 2022, 5:30 p.m. OK MS C++ 2017 TESTS 171 15 0
174080279 asdfghjkl133266 B Sept. 30, 2022, 12:59 p.m. OK MS C++ 2017 TESTS 171 30 0
174114328 laquendi B Sept. 30, 2022, 3:24 p.m. OK MS C++ 2017 TESTS 171 30 0
174039875 Moinul01 B Sept. 30, 2022, 4:17 a.m. OK MS C++ 2017 TESTS 171 31 0
174030375 belief_010 B Sept. 30, 2022, 12:47 a.m. OK MS C++ 2017 TESTS 171 31 0
174011603 maxK99 B Sept. 29, 2022, 6:46 p.m. OK MS C++ 2017 TESTS 171 31 0
174004293 lyqhh88 B Sept. 29, 2022, 5:29 p.m. OK MS C++ 2017 TESTS 171 31 0
174176232 gastivy B Sept. 30, 2022, 8:47 p.m. OK MS C++ 2017 TESTS 171 31 0
174029957 turz0ahsan B Sept. 30, 2022, 12:37 a.m. OK Node.js TESTS 171 93 409600
174190105 YMSeah B Oct. 1, 2022, 2:16 a.m. OK PyPy 3 TESTS 171 93 2150400
174056962 Bishwanath B Sept. 30, 2022, 8:32 a.m. OK PyPy 3 TESTS 171 93 2662400
174029929 hxu10 B Sept. 30, 2022, 12:36 a.m. OK PyPy 3 TESTS 171 93 2764800
174200863 ahasan_ B Oct. 1, 2022, 5:02 a.m. OK PyPy 3 TESTS 171 108 2560000
174023553 NotGil B Sept. 29, 2022, 9:52 p.m. OK PyPy 3 TESTS 171 108 2560000
174005252 akshat11 B Sept. 29, 2022, 5:39 p.m. OK PyPy 3 TESTS 171 108 2560000
174066367 planets_and_stars B Sept. 30, 2022, 10:18 a.m. OK PyPy 3 TESTS 171 108 2662400
174004780 Hamid1385 B Sept. 29, 2022, 5:34 p.m. OK PyPy 3 TESTS 171 108 2662400
174195064 Mrs.Zhao B Oct. 1, 2022, 3:40 a.m. OK PyPy 3 TESTS 171 108 2764800
174002931 Dinesh_devanaboina B Sept. 29, 2022, 5:16 p.m. OK PyPy 3 TESTS 171 108 2764800
174181314 Amir_Python B Sept. 30, 2022, 10:34 p.m. OK PyPy 3-64 TESTS 171 62 1843200
174045856 valentk777 B Sept. 30, 2022, 6:11 a.m. OK PyPy 3-64 TESTS 171 62 1843200
174061295 nonam333 B Sept. 30, 2022, 9:19 a.m. OK PyPy 3-64 TESTS 171 62 2048000
174041413 farrellbyu B Sept. 30, 2022, 4:45 a.m. OK PyPy 3-64 TESTS 171 62 2048000
174193867 loodv002 B Oct. 1, 2022, 3:20 a.m. OK PyPy 3-64 TESTS 171 62 2150400
174046307 Dinesh_devanaboina B Sept. 30, 2022, 6:17 a.m. OK PyPy 3-64 TESTS 171 62 3174400
174045411 bridgekiller B Sept. 30, 2022, 6:05 a.m. OK PyPy 3-64 TESTS 171 62 3891200
174006269 MatrixBlake2 B Sept. 29, 2022, 5:49 p.m. OK PyPy 3-64 TESTS 171 77 1843200
174052145 ronnyronaldo B Sept. 30, 2022, 7:33 a.m. OK PyPy 3-64 TESTS 171 77 2150400
174005099 sagarpal1909 B Sept. 29, 2022, 5:37 p.m. OK PyPy 3-64 TESTS 171 77 2969600
174191771 OLOGY B Oct. 1, 2022, 2:45 a.m. OK Python 2 TESTS 171 46 102400
174197902 Yoko_Ono B Oct. 1, 2022, 4:24 a.m. OK Python 3 TESTS 171 46 0
174180920 lucifer_delco B Sept. 30, 2022, 10:24 p.m. OK Python 3 TESTS 171 46 0
174138686 utsu_boy B Sept. 30, 2022, 4:19 p.m. OK Python 3 TESTS 171 46 0
174137847 dima_chertolyas B Sept. 30, 2022, 4:17 p.m. OK Python 3 TESTS 171 46 0
174081760 incosistent B Sept. 30, 2022, 1:14 p.m. OK Python 3 TESTS 171 46 0
174075836 sheknows B Sept. 30, 2022, 12:11 p.m. OK Python 3 TESTS 171 46 0
174071619 21bec036 B Sept. 30, 2022, 11:24 a.m. OK Python 3 TESTS 171 46 0
174070129 tanishq2507 B Sept. 30, 2022, 11:07 a.m. OK Python 3 TESTS 171 46 0
174068780 sayam241020 B Sept. 30, 2022, 10:50 a.m. OK Python 3 TESTS 171 46 0
174067877 sky_coder_ B Sept. 30, 2022, 10:38 a.m. OK Python 3 TESTS 171 46 0
174071710 Golovanov399 B Sept. 30, 2022, 11:25 a.m. OK Rust 2021 TESTS 171 31 0

remove filters

Back to search problems