Codeforces Round 707 (Div. 2, based on Moscow Open Olympiad in Informatics)

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
1501 Codeforces Round 707 (Div. 2, based on Moscow Open Olympiad in Informatics) FINISHED False 9000 116196899 March 13, 2021, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11638 ) A Alexey and Train PROGRAMMING implementation 800

B"Alexey is travelling on a train. Unfortunately, due to the bad weather, the train moves slower that it should! Alexey took the train at the railroad terminal. Let's say that the train starts from the terminal at the moment 0 . Also, let's say that the train will visit n stations numbered from 1 to n along its way, and that Alexey destination is the station n . Alexey learned from the train schedule n integer pairs (a_i, b_i) where a_i is the expected time of train's arrival at the i -th station and b_i is the expected time of departure. Also, using all information he has, Alexey was able to calculate n integers tm_1, tm_2, ... , tm_n where tm_i is the extra time the train need to travel from the station i - 1 to the station i . Formally, the train needs exactly a_i - b_{i-1} + tm_i time to travel from station i - 1 to station i (if i = 1 then b_0 is the moment the train leave the terminal, and it's equal to 0 ). The train leaves the station i , if both conditions are met: Since Alexey spent all his energy on prediction of time delays, help him to calculate the time of arrival at the station n . The first line contains one integer t ( 1 <= t <= 100 ) -- the number of test cases. The first line of each test case contains the single integer n ( 1 <= n <= 100 ) -- the number of stations. Next n lines contain two integers each: a_i and b_i ( 1 <= a_i < b_i <= 10^6 ). It's guaranteed that b_i < a_{i+1} . Next line contains n integers tm_1, tm_2, ... , tm_n ( 0 <= tm_i <= 10^6 ). For each test case, print one integer -- the time of Alexey's arrival at the last station. In the first test case, Alexey arrives at station 1 without any delay at the moment a_1 = 2 (since tm_1 = 0 ). After that, he departs at moment b_1 = 4 . Finally, he a"...

Tutorials

Codeforces Round #707 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
109904617 Arpitkr A March 13, 2021, 3:09 p.m. OK GNU C11 TESTS 6 15 0 800
109886323 VsRoom A March 13, 2021, 11:34 a.m. OK GNU C11 TESTS 6 15 0 800
109896159 Flsrage A March 13, 2021, 1:40 p.m. OK GNU C11 TESTS 6 15 0 800
109932470 manish_1605 A March 14, 2021, 3:13 a.m. OK GNU C11 TESTS 6 15 0 800
109874728 apjcoder123 A March 13, 2021, 10:48 a.m. OK GNU C11 TESTS 6 15 0 800
109885188 Fenrir_EX A March 13, 2021, 11:30 a.m. OK GNU C11 TESTS 6 15 0 800
109881594 kccc A March 13, 2021, 11:17 a.m. OK GNU C11 TESTS 6 30 0 800
109916491 baibaiouo A March 13, 2021, 5:58 p.m. OK GNU C11 TESTS 6 31 0 800
109936707 ViL_GAX A March 14, 2021, 5:02 a.m. OK GNU C11 TESTS 6 31 0 800
109893734 priority A March 13, 2021, 1:14 p.m. OK GNU C++11 TESTS 6 15 0 800
109930546 I_do_not_know A March 14, 2021, 2:03 a.m. OK GNU C++11 TESTS 6 15 0 800
109930467 qdnoip A March 14, 2021, 2 a.m. OK GNU C++11 TESTS 6 15 0 800
109937333 chunjiangchaoshui A March 14, 2021, 5:14 a.m. OK GNU C++11 TESTS 6 15 0 800
109929582 iterater A March 14, 2021, 1:25 a.m. OK GNU C++11 TESTS 6 15 0 800
109928104 newbiewzs A March 13, 2021, 11:54 p.m. OK GNU C++11 TESTS 6 15 0 800
109931362 jsz666 A March 14, 2021, 2:34 a.m. OK GNU C++11 TESTS 6 15 0 800
109927653 seeeagull A March 13, 2021, 11:23 p.m. OK GNU C++11 TESTS 6 15 0 800
109911099 Love_Jacques A March 13, 2021, 4:36 p.m. OK GNU C++11 TESTS 6 15 0 800
109907378 CCSU__MI A March 13, 2021, 3:44 p.m. OK GNU C++11 TESTS 6 15 0 800
109908479 code_a_g A March 13, 2021, 4 p.m. OK GNU C++14 TESTS 6 15 0 800
109936803 ViL_GAX A March 14, 2021, 5:04 a.m. OK GNU C++14 TESTS 6 15 0 800
109935805 nitvjudge4 A March 14, 2021, 4:41 a.m. OK GNU C++14 TESTS 6 15 0 800
109930611 nitvjudge3 A March 14, 2021, 2:05 a.m. OK GNU C++14 TESTS 6 15 0 800
109926390 LONG__INT A March 13, 2021, 10:13 p.m. OK GNU C++14 TESTS 6 15 0 800
109920251 late_comer04 A March 13, 2021, 7:08 p.m. OK GNU C++14 TESTS 6 15 0 800
109920145 mahir_314 A March 13, 2021, 7:06 p.m. OK GNU C++14 TESTS 6 15 0 800
109918345 AbzRel A March 13, 2021, 6:31 p.m. OK GNU C++14 TESTS 6 15 0 800
109917474 kakky A March 13, 2021, 6:16 p.m. OK GNU C++14 TESTS 6 15 0 800
109910081 WAtoAC2001 A March 13, 2021, 4:21 p.m. OK GNU C++14 TESTS 6 15 0 800
109916479 Destructive_Yash A March 13, 2021, 5:58 p.m. OK GNU C++17 TESTS 6 15 0 800
109931174 Asurudo_Jyo A March 14, 2021, 2:27 a.m. OK GNU C++17 TESTS 6 15 0 800
109927609 TFF A March 13, 2021, 11:20 p.m. OK GNU C++17 TESTS 6 15 0 800
109920774 VeDon A March 13, 2021, 7:20 p.m. OK GNU C++17 TESTS 6 15 0 800
109919911 Imtiaz_rafi A March 13, 2021, 7:01 p.m. OK GNU C++17 TESTS 6 15 0 800
109918667 Crytic.16 A March 13, 2021, 6:37 p.m. OK GNU C++17 TESTS 6 15 0 800
109915877 savangadhiya7623 A March 13, 2021, 5:48 p.m. OK GNU C++17 TESTS 6 15 0 800
109912688 alien8 A March 13, 2021, 4:59 p.m. OK GNU C++17 TESTS 6 15 0 800
109912207 Hafiz_ A March 13, 2021, 4:51 p.m. OK GNU C++17 TESTS 6 15 0 800
109912050 AlphaB A March 13, 2021, 4:49 p.m. OK GNU C++17 TESTS 6 15 0 800
109901041 youtsuha A March 13, 2021, 2:27 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109901275 lemongrab A March 13, 2021, 2:30 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109902929 tiasmondal A March 13, 2021, 2:48 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109903276 Apelpul A March 13, 2021, 2:52 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109911365 sahil_bajaj A March 13, 2021, 4:40 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109913449 AceKing A March 13, 2021, 5:11 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109917300 Lord_David A March 13, 2021, 6:12 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109920220 timoffey14 A March 13, 2021, 7:07 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109922759 Zeroo0iq A March 13, 2021, 8:05 p.m. OK GNU C++17 (64) TESTS 6 15 0 800
109930354 TheYellowFlash A March 14, 2021, 1:57 a.m. OK GNU C++17 (64) TESTS 6 15 0 800
109892533 lll_99 A March 13, 2021, 1 p.m. OK Go TESTS 6 31 0 800
109901356 ytripathi891 A March 13, 2021, 2:31 p.m. OK Java 11 TESTS 6 171 0 800
109934204 tushar_patil A March 14, 2021, 4:02 a.m. OK Java 11 TESTS 6 171 0 800
109918723 SaberXpro A March 13, 2021, 6:38 p.m. OK Java 11 TESTS 6 171 0 800
109910120 Divy_Chavda A March 13, 2021, 4:22 p.m. OK Java 11 TESTS 6 171 0 800
109899177 BlueBirdie A March 13, 2021, 2:08 p.m. OK Java 11 TESTS 6 171 0 800
109894753 Abhin21 A March 13, 2021, 1:26 p.m. OK Java 11 TESTS 6 186 0 800
109917916 pdk.abhishek A March 13, 2021, 6:24 p.m. OK Java 11 TESTS 6 187 0 800
109917757 gssakash A March 13, 2021, 6:21 p.m. OK Java 11 TESTS 6 187 0 800
109916106 aayushdhakad A March 13, 2021, 5:52 p.m. OK Java 11 TESTS 6 187 0 800
109915473 dmw A March 13, 2021, 5:41 p.m. OK Java 11 TESTS 6 187 0 800
109899542 darshan287 A March 13, 2021, 2:12 p.m. OK Java 8 TESTS 6 78 0 800
109927328 exploreri A March 13, 2021, 11:04 p.m. OK Java 8 TESTS 6 93 0 800
109927229 exploreri A March 13, 2021, 10:57 p.m. OK Java 8 TESTS 6 93 0 800
109911844 Adi_7861 A March 13, 2021, 4:46 p.m. OK Java 8 TESTS 6 93 0 800
109897908 ramuked A March 13, 2021, 1:56 p.m. OK Java 8 TESTS 6 108 0 800
109938617 aljipa A March 14, 2021, 5:38 a.m. OK Java 8 TESTS 6 109 0 800
109929123 gurkaran_s A March 14, 2021, 1:01 a.m. OK Java 8 TESTS 6 109 0 800
109910165 Coderx_101 A March 13, 2021, 4:22 p.m. OK Java 8 TESTS 6 109 0 800
109906895 sum_123 A March 13, 2021, 3:38 p.m. OK Java 8 TESTS 6 109 0 800
109878912 Snow A March 13, 2021, 11:06 a.m. OK Java 8 TESTS 6 109 0 800
109912772 noisegain A March 13, 2021, 5 p.m. OK Kotlin TESTS 6 155 102400 800
109880551 chenhl123 A March 13, 2021, 11:12 a.m. OK MS C++ TESTS 6 31 0 800
109877283 Inoplanetanen A March 13, 2021, 10:59 a.m. OK MS C++ TESTS 6 46 0 800
109877529 chenjiacheng A March 13, 2021, 11 a.m. OK MS C++ 2017 TESTS 6 30 0 800
109912487 Amosh_ A March 13, 2021, 4:56 p.m. OK MS C++ 2017 TESTS 6 31 0 800
109883454 chronos19rus A March 13, 2021, 11:24 a.m. OK MS C++ 2017 TESTS 6 31 0 800
109878772 vw.anwar A March 13, 2021, 11:05 a.m. OK MS C++ 2017 TESTS 6 31 0 800
109877076 lzl202003011019 A March 13, 2021, 10:58 a.m. OK MS C++ 2017 TESTS 6 31 0 800
109883795 For_Tawers A March 13, 2021, 11:25 a.m. OK MS C++ 2017 TESTS 6 31 102400 800
109938872 voterak A March 14, 2021, 5:42 a.m. OK MS C++ 2017 TESTS 6 46 0 800
109937764 XieJiaXuan A March 14, 2021, 5:23 a.m. OK MS C++ 2017 TESTS 6 46 0 800
109929769 Harshita_0304 A March 14, 2021, 1:33 a.m. OK MS C++ 2017 TESTS 6 46 0 800
109926992 chronos19rus A March 13, 2021, 10:45 p.m. OK MS C++ 2017 TESTS 6 46 0 800
109883056 zrpopova A March 13, 2021, 11:22 a.m. OK PascalABC.NET TESTS 6 280 0 800
109876928 iriska_poluektova A March 13, 2021, 10:57 a.m. OK PascalABC.NET TESTS 6 296 102400 800
109908337 beethoven97 A March 13, 2021, 3:57 p.m. OK PyPy 2 TESTS 6 124 819200 800
109924932 lebron87 A March 13, 2021, 9:08 p.m. OK PyPy 2 TESTS 6 124 2662400 800
109930612 YMSeah A March 14, 2021, 2:05 a.m. OK PyPy 3 TESTS 6 108 2252800 800
109921210 armsusman A March 13, 2021, 7:30 p.m. OK PyPy 3 TESTS 6 108 2560000 800
109922336 kalp.s.vyas A March 13, 2021, 7:55 p.m. OK PyPy 3 TESTS 6 124 2560000 800
109911503 evoxtorm A March 13, 2021, 4:42 p.m. OK PyPy 3 TESTS 6 124 2560000 800
109936538 rivnam A March 14, 2021, 4:58 a.m. OK PyPy 3 TESTS 6 124 2662400 800
109892861 armsusman A March 13, 2021, 1:05 p.m. OK PyPy 3 TESTS 6 124 2662400 800
109934958 adi112100 A March 14, 2021, 4:21 a.m. OK PyPy 3 TESTS 6 124 3072000 800
109910583 sid_121212 A March 13, 2021, 4:29 p.m. OK PyPy 3 TESTS 6 124 3174400 800
109907288 rajbit A March 13, 2021, 3:43 p.m. OK PyPy 3 TESTS 6 139 2662400 800
109894783 Cant_Name_Variables A March 13, 2021, 1:26 p.m. OK PyPy 3 TESTS 6 139 2969600 800
109883335 agw02010 A March 13, 2021, 11:23 a.m. OK Python 3 TESTS 6 77 307200 800
109881039 gingerin A March 13, 2021, 11:14 a.m. OK Python 3 TESTS 6 77 307200 800
109880908 the_lost_jedi A March 13, 2021, 11:14 a.m. OK Python 3 TESTS 6 77 307200 800
109937633 hardcore_coder A March 14, 2021, 5:20 a.m. OK Python 3 TESTS 6 92 307200 800
109915603 shubham_409 A March 13, 2021, 5:43 p.m. OK Python 3 TESTS 6 92 307200 800
109892847 swapnilagarwal2001 A March 13, 2021, 1:04 p.m. OK Python 3 TESTS 6 92 307200 800
109896422 eugalt A March 13, 2021, 1:42 p.m. OK Python 3 TESTS 6 93 0 800
109938156 Lightning-Ldrago A March 14, 2021, 5:30 a.m. OK Python 3 TESTS 6 93 307200 800
109933333 ShrijitShaswat A March 14, 2021, 3:38 a.m. OK Python 3 TESTS 6 93 307200 800
109925537 Genius3435 A March 13, 2021, 9:30 p.m. OK Python 3 TESTS 6 93 307200 800

remove filters

Back to search problems