Educational Codeforces Round 85 (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
1334 Educational Codeforces Round 85 (Rated for Div. 2) FINISHED False 7200 145293899 April 10, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23355 ) A Level Statistics PROGRAMMING implementation math

B"Polycarp has recently created a new level in this cool new game Berlio Maker 85 and uploaded it online. Now players from all over the world can try his level. All levels in this game have two stats to them: the number of plays and the number of clears. So when a player attempts the level, the number of plays increases by 1 . If he manages to finish the level successfully then the number of clears increases by 1 as well. Note that both of the statistics update at the same time (so if the player finishes the level successfully then the number of plays will increase at the same time as the number of clears). Polycarp is very excited about his level, so he keeps peeking at the stats to know how hard his level turns out to be. So he peeked at the stats n times and wrote down n pairs of integers -- (p_1, c_1), (p_2, c_2), ... , (p_n, c_n) , where p_i is the number of plays at the i -th moment of time and c_i is the number of clears at the same moment of time. The stats are given in chronological order (i.e. the order of given pairs is exactly the same as Polycarp has written down). Between two consecutive moments of time Polycarp peeked at the stats many players (but possibly zero) could attempt the level. Finally, Polycarp wonders if he hasn't messed up any records and all the pairs are correct. If there could exist such a sequence of plays (and clears, respectively) that the stats were exactly as Polycarp has written down, then he considers his records correct. Help him to check the correctness of his records. For your convenience you have to answer multiple independent test cases. The first line contains a single integer T (1 <= T <= 500) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 100 ) -- the number of moments of time Polycarp peeked at the stats. Each of the next n lines contains two integers p_i and c_i ($$"...

Tutorials

Educational Codeforces Round 85 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
76190676 elkadymohammed01 A April 10, 2020, 4:50 p.m. OK Clang++17 Diagnostics TESTS 168 327 0
76190345 elkadymohammed01 A April 10, 2020, 4:49 p.m. OK Clang++17 Diagnostics TESTS 168 327 0
76197523 dzyura_christopher A April 10, 2020, 5:37 p.m. OK Clang++17 Diagnostics TESTS 168 327 9420800
76190531 elkadymohammed01 A April 10, 2020, 4:49 p.m. OK Clang++17 Diagnostics TESTS 168 373 1024000
76298597 Ueki A April 12, 2020, 7:19 a.m. OK Clang++17 Diagnostics TESTS 168 389 4198400
76285154 fpc_coder A April 12, 2020, 4:39 a.m. OK FPC TESTS 168 31 0
76202254 LaSWeeG A April 10, 2020, 6:20 p.m. OK FPC TESTS 168 31 0
76189043 a.chaibi A April 10, 2020, 4:42 p.m. OK FPC TESTS 168 46 0
76276566 tranminhprvt01 A April 12, 2020, 1:22 a.m. OK FPC TESTS 168 46 0
76173736 Tanzim_bn A April 10, 2020, 4:10 p.m. OK GNU C11 TESTS 168 31 0
76325231 Stanislav_Pushkashu A April 12, 2020, 12:38 p.m. OK GNU C11 TESTS 168 31 0
76191597 chowdhuryshashwoto A April 10, 2020, 4:55 p.m. OK GNU C11 TESTS 168 31 0
76229314 wujunjie.. A April 11, 2020, 3:52 a.m. OK GNU C11 TESTS 168 31 0
76230008 i_am_a_robot A April 11, 2020, 4:09 a.m. OK GNU C11 TESTS 168 31 0
76231866 satyam_5123 A April 11, 2020, 4:44 a.m. OK GNU C11 TESTS 168 31 0
76290672 Rockarya_IIITH A April 12, 2020, 5:55 a.m. OK GNU C11 TESTS 168 31 0
76296786 coder_bhusan A April 12, 2020, 7:01 a.m. OK GNU C11 TESTS 168 31 0
76303662 pengin_2000 A April 12, 2020, 8:12 a.m. OK GNU C11 TESTS 168 31 0
76314121 Kelvin11 A April 12, 2020, 10:03 a.m. OK GNU C11 TESTS 168 31 0
76445649 luogu_bot1 A April 13, 2020, 3:40 a.m. OK GNU C++11 TESTS 168 31 0
76443983 vectorwyx A April 13, 2020, 3:04 a.m. OK GNU C++11 TESTS 168 31 0
76442768 luogu_bot4 A April 13, 2020, 2:36 a.m. OK GNU C++11 TESTS 168 31 0
76438931 zzzzyyyy A April 13, 2020, 12:52 a.m. OK GNU C++11 TESTS 168 31 0
76437943 TheShadow_DC A April 13, 2020, 12:22 a.m. OK GNU C++11 TESTS 168 31 0
76425516 fkhjoy A April 12, 2020, 7:50 p.m. OK GNU C++11 TESTS 168 31 0
76323435 Hamzakallajo A April 12, 2020, 12:18 p.m. OK GNU C++11 TESTS 168 31 0
76314530 cfcode_1 A April 12, 2020, 10:07 a.m. OK GNU C++11 TESTS 168 31 0
76309760 _YL_ A April 12, 2020, 9:19 a.m. OK GNU C++11 TESTS 168 31 0
76305973 TheGodofTVSeries A April 12, 2020, 8:37 a.m. OK GNU C++11 TESTS 168 31 0
76393755 NooB_inCsu A April 12, 2020, 3:43 p.m. OK GNU C++14 TESTS 168 31 0
76406260 dollygupta07 A April 12, 2020, 4:48 p.m. OK GNU C++14 TESTS 168 31 0
76406960 abhishek_2197 A April 12, 2020, 4:56 p.m. OK GNU C++14 TESTS 168 31 0
76408913 anhkha1004 A April 12, 2020, 5:08 p.m. OK GNU C++14 TESTS 168 31 0
76411914 akstron A April 12, 2020, 5:30 p.m. OK GNU C++14 TESTS 168 31 0
76413369 chiragjn A April 12, 2020, 5:41 p.m. OK GNU C++14 TESTS 168 31 0
76426038 OnlyLatinLetters A April 12, 2020, 7:57 p.m. OK GNU C++14 TESTS 168 31 0
76438891 Ahmad_Mohammad_Kouja A April 13, 2020, 12:51 a.m. OK GNU C++14 TESTS 168 31 0
76441823 rentu A April 13, 2020, 2:13 a.m. OK GNU C++14 TESTS 168 31 0
76447409 chongA A April 13, 2020, 4:13 a.m. OK GNU C++14 TESTS 168 31 0
76437511 lcjWA A April 13, 2020, 12:10 a.m. OK GNU C++17 TESTS 168 31 0
76447142 lakergo A April 13, 2020, 4:08 a.m. OK GNU C++17 TESTS 168 31 0
76444900 Juan_Pa A April 13, 2020, 3:24 a.m. OK GNU C++17 TESTS 168 31 0
76443183 vjudge4 A April 13, 2020, 2:45 a.m. OK GNU C++17 TESTS 168 31 0
76442555 UUUnmei A April 13, 2020, 2:31 a.m. OK GNU C++17 TESTS 168 31 0
76442105 abc864197532 A April 13, 2020, 2:20 a.m. OK GNU C++17 TESTS 168 31 0
76441072 xaacc A April 13, 2020, 1:52 a.m. OK GNU C++17 TESTS 168 31 0
76431462 Hasti_K A April 12, 2020, 9:28 p.m. OK GNU C++17 TESTS 168 31 0
76423296 Codess A April 12, 2020, 7:22 p.m. OK GNU C++17 TESTS 168 31 0
76420588 flamed51 A April 12, 2020, 6:51 p.m. OK GNU C++17 TESTS 168 31 0
76273999 moraprex A April 12, 2020, 12:01 a.m. OK GNU C++17 (64) TESTS 168 31 0
76284320 TselmegKh A April 12, 2020, 4:23 a.m. OK GNU C++17 (64) TESTS 168 31 0
76290218 Kafi190041224 A April 12, 2020, 5:50 a.m. OK GNU C++17 (64) TESTS 168 31 0
76292390 FAGUN_06 A April 12, 2020, 6:15 a.m. OK GNU C++17 (64) TESTS 168 31 0
76302228 Hakuna.Matataaa A April 12, 2020, 7:57 a.m. OK GNU C++17 (64) TESTS 168 31 0
76312351 spartan1234 A April 12, 2020, 9:45 a.m. OK GNU C++17 (64) TESTS 168 31 0
76327600 ASS_ASS_IN A April 12, 2020, 1:02 p.m. OK GNU C++17 (64) TESTS 168 31 0
76329610 1cainis1rice A April 12, 2020, 1:24 p.m. OK GNU C++17 (64) TESTS 168 31 0
76371405 vjudge1 A April 12, 2020, 2:56 p.m. OK GNU C++17 (64) TESTS 168 31 0
76412341 nibirjoydhar A April 12, 2020, 5:33 p.m. OK GNU C++17 (64) TESTS 168 31 0
76208252 Howlla A April 10, 2020, 7:26 p.m. OK Go TESTS 168 61 0
76191753 justplesh A April 10, 2020, 4:56 p.m. OK Go TESTS 168 62 0
76274884 caph1993 A April 12, 2020, 12:31 a.m. OK Go TESTS 168 62 102400
76193219 whiteshtef A April 10, 2020, 5:05 p.m. OK Go TESTS 168 77 0
76311101 soumitri12 A April 12, 2020, 9:33 a.m. OK Java 11 TESTS 168 187 0
76307454 pennyIsLove A April 12, 2020, 8:54 a.m. OK Java 11 TESTS 168 187 0
76303238 ak2703 A April 12, 2020, 8:08 a.m. OK Java 11 TESTS 168 187 0
76271933 aiy12 A April 11, 2020, 11 p.m. OK Java 11 TESTS 168 187 0
76324858 Vatsal53 A April 12, 2020, 12:34 p.m. OK Java 11 TESTS 168 202 0
76286702 zcbm318 A April 12, 2020, 5:05 a.m. OK Java 11 TESTS 168 202 0
76220117 alankritanand001 A April 10, 2020, 11:23 p.m. OK Java 11 TESTS 168 202 0
76270442 jakejase2 A April 11, 2020, 10:20 p.m. OK Java 11 TESTS 168 218 0
76208871 Taaaaaaa A April 10, 2020, 7:34 p.m. OK Java 11 TESTS 168 218 0
76273936 lifeiteng A April 11, 2020, 11:59 p.m. OK Java 11 TESTS 168 233 0
76277684 ZerooCool A April 12, 2020, 1:56 a.m. OK Java 8 TESTS 168 109 0
76444016 vimalb A April 13, 2020, 3:05 a.m. OK Java 8 TESTS 168 124 0
76327529 ra20r A April 12, 2020, 1:02 p.m. OK Java 8 TESTS 168 124 0
76315175 rajat_011 A April 12, 2020, 10:14 a.m. OK Java 8 TESTS 168 124 0
76307673 seepak12 A April 12, 2020, 8:56 a.m. OK Java 8 TESTS 168 124 0
76296674 code171292 A April 12, 2020, 7 a.m. OK Java 8 TESTS 168 124 0
76293168 Nitin_pandey30 A April 12, 2020, 6:23 a.m. OK Java 8 TESTS 168 124 0
76286708 nishant2015 A April 12, 2020, 5:05 a.m. OK Java 8 TESTS 168 124 0
76282945 marcose18 A April 12, 2020, 3:57 a.m. OK Java 8 TESTS 168 124 0
76282477 XsLel A April 12, 2020, 3:47 a.m. OK Java 8 TESTS 168 124 0
76284367 schmak.ekb A April 12, 2020, 4:24 a.m. OK Kotlin TESTS 168 124 0
76270856 taresin A April 11, 2020, 10:30 p.m. OK Kotlin TESTS 168 202 102400
76415788 mhdwajeeh.95 A April 12, 2020, 6:03 p.m. OK Kotlin TESTS 168 217 0
76176562 jorgerecio A April 10, 2020, 4:15 p.m. OK Kotlin TESTS 168 218 102400
76191929 szzz- A April 10, 2020, 4:57 p.m. OK Mono C# TESTS 168 62 3072000
76191600 melnikova.myu A April 10, 2020, 4:55 p.m. OK Mono C# TESTS 168 77 3072000
76179352 kilicars A April 10, 2020, 4:21 p.m. OK Mono C# TESTS 168 77 6656000
76200016 bati06 A April 10, 2020, 5:59 p.m. OK Mono C# TESTS 168 78 6656000
76212086 YTICpoch A April 10, 2020, 8:20 p.m. OK MS C++ TESTS 168 61 0
76186935 xmgzt A April 10, 2020, 4:34 p.m. OK MS C++ TESTS 168 62 0
76325111 2018qwer A April 12, 2020, 12:37 p.m. OK MS C++ TESTS 168 62 0
76279648 15756211003 A April 12, 2020, 2:46 a.m. OK MS C++ 2017 TESTS 168 31 0
76225992 Accelerating A April 11, 2020, 2:30 a.m. OK MS C++ 2017 TESTS 168 46 0
76280884 vjudge4 A April 12, 2020, 3:13 a.m. OK MS C++ 2017 TESTS 168 46 819200
76179828 AM5800 A April 10, 2020, 4:21 p.m. OK MS C++ 2017 TESTS 168 62 0
76184028 djl_SCUT A April 10, 2020, 4:29 p.m. OK MS C++ 2017 TESTS 168 77 0
76174630 w77244 A April 10, 2020, 4:11 p.m. OK MS C++ 2017 TESTS 168 77 0
76276777 ASIXER A April 12, 2020, 1:28 a.m. OK MS C++ 2017 TESTS 168 77 0
76225956 isLXa A April 11, 2020, 2:28 a.m. OK MS C++ 2017 TESTS 168 77 0
76205362 danilgrig A April 10, 2020, 6:52 p.m. OK MS C++ 2017 TESTS 168 77 0
76192907 zhaochuannfei A April 10, 2020, 5:03 p.m. OK MS C++ 2017 TESTS 168 77 0
76205311 Darooha A April 10, 2020, 6:51 p.m. OK Ocaml TESTS 168 31 307200
76309032 Pocepko A April 12, 2020, 9:11 a.m. OK PascalABC.NET TESTS 168 374 307200
76193313 _practice A April 10, 2020, 5:06 p.m. OK PyPy 2 TESTS 168 155 6758400
76192152 raj1307 A April 10, 2020, 4:58 p.m. OK PyPy 2 TESTS 168 186 2969600
76324871 snape_here A April 12, 2020, 12:34 p.m. OK PyPy 2 TESTS 168 202 1843200
76270803 beethoven97 A April 11, 2020, 10:29 p.m. OK PyPy 2 TESTS 168 218 2560000
76272506 saifahmadkhan4 A April 11, 2020, 11:15 p.m. OK PyPy 2 TESTS 168 451 4198400
76204465 Devraj10 A April 10, 2020, 6:42 p.m. OK PyPy 2 TESTS 168 467 2764800
76413288 wolffd A April 12, 2020, 5:41 p.m. OK PyPy 2 TESTS 168 468 4608000
76193883 divyamohan123 A April 10, 2020, 5:10 p.m. OK PyPy 3 TESTS 168 186 3891200
76187623 sohanuzzamansoad A April 10, 2020, 4:34 p.m. OK PyPy 3 TESTS 168 187 3993600
76356211 ShowMySword A April 12, 2020, 2:33 p.m. OK PyPy 3 TESTS 168 202 4096000
76211854 throwawayatcoder A April 10, 2020, 8:16 p.m. OK PyPy 3 TESTS 168 217 3276800
76233047 Anuranjan_Pandey A April 11, 2020, 5:06 a.m. OK PyPy 3 TESTS 168 217 4198400
76183455 thekushalghosh A April 10, 2020, 4:28 p.m. OK PyPy 3 TESTS 168 217 4403200
76173464 Isha.Gupta A April 10, 2020, 4:09 p.m. OK PyPy 3 TESTS 168 217 4505600
76192279 WA-----Me-----AC A April 10, 2020, 4:59 p.m. OK PyPy 3 TESTS 168 217 5324800
76381053 robert_nabil20022002 A April 12, 2020, 3:14 p.m. OK PyPy 3 TESTS 168 218 4915200
76193759 SpicyKong A April 10, 2020, 5:09 p.m. OK PyPy 3 TESTS 168 233 4198400
76317802 gilesg A April 12, 2020, 10:48 a.m. OK Python 2 TESTS 168 233 0
76272475 saifahmadkhan4 A April 11, 2020, 11:14 p.m. OK Python 2 TESTS 168 264 0
76260258 elistark A April 11, 2020, 7:27 p.m. OK Python 2 TESTS 168 265 0
76174654 ComptineDunAutreEte A April 10, 2020, 4:11 p.m. OK Python 2 TESTS 168 311 102400
76348570 orailly A April 12, 2020, 2:23 p.m. OK Python 3 TESTS 168 124 4300800
76176888 golubhaiya A April 10, 2020, 4:16 p.m. OK Python 3 TESTS 168 140 307200
76209407 apurva3455 A April 10, 2020, 7:41 p.m. OK Python 3 TESTS 168 156 307200
76440660 jaeworld A April 13, 2020, 1:41 a.m. OK Python 3 TESTS 168 170 307200
76187663 ssidhant A April 10, 2020, 4:34 p.m. OK Python 3 TESTS 168 170 307200
76440098 jaeworld A April 13, 2020, 1:27 a.m. OK Python 3 TESTS 168 171 307200
76434014 perDAYTwo_A A April 12, 2020, 10:29 p.m. OK Python 3 TESTS 168 171 307200
76258238 ByMykel A April 11, 2020, 7:03 p.m. OK Python 3 TESTS 168 171 307200
76209125 k-na A April 10, 2020, 7:37 p.m. OK Python 3 TESTS 168 171 307200
76193259 KingVlad A April 10, 2020, 5:06 p.m. OK Python 3 TESTS 168 171 307200
76214884 Gtx A April 10, 2020, 9:08 p.m. OK Ruby TESTS 168 140 409600
76230000 bqn A April 11, 2020, 4:09 a.m. OK Rust TESTS 168 31 102400
76211077 magnickolas A April 10, 2020, 8:04 p.m. OK Scala TESTS 168 607 0

remove filters

Back to search problems