Codeforces Round 722 (Div. 1)

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
1528 Codeforces Round 722 (Div. 1) FINISHED False 8100 109956299 May 24, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1444 ) D It's a bird! No, it's a plane! No, it's AaParsa! PROGRAMMING graphs shortest paths

B"There are n cities in Shaazzzland, numbered from 0 to n-1 . Ghaazzzland, the immortal enemy of Shaazzzland, is ruled by AaParsa. As the head of the Ghaazzzland's intelligence agency, AaParsa is carrying out the most important spying mission in Ghaazzzland's history on Shaazzzland. AaParsa has planted m transport cannons in the cities of Shaazzzland. The i -th cannon is planted in the city a_i and is initially pointing at city b_i . It is guaranteed that each of the n cities has at least one transport cannon planted inside it, and that no two cannons from the same city are initially pointing at the same city (that is, all pairs (a_i, b_i) are distinct). AaParsa used very advanced technology to build the cannons, the cannons rotate every second. In other words, if the i -th cannon is pointing towards the city x at some second, it will target the city (x + 1) mod n at the next second. As their name suggests, transport cannons are for transportation, specifically for human transport. If you use the i -th cannon to launch yourself towards the city that it's currently pointing at, you'll be airborne for c_i seconds before reaching your target destination. If you still don't get it, using the i -th cannon at the s -th second (using which is only possible if you are currently in the city a_i ) will shoot you to the city (b_i + s) mod n and you'll land in there after c_i seconds (so you'll be there in the (s + c_i) -th second). Also note the cannon that you initially launched from will rotate every second but you obviously won't change direction while you are airborne. AaParsa wants to use the cannons for travelling between Shaazzzland's cities in his grand plan, and he can start travelling at second 0 . For him to fully utilize them, he needs to know the minimum number of seconds required to reach city u from city v using the cannons f"...

Tutorials

Codeforces Round #722 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
117243973 Gassa D May 24, 2021, 4:25 p.m. OK D TESTS 72 3478 13516800
117279429 2114992323 D May 25, 2021, 3:41 a.m. OK GNU C++11 TESTS 74 982 1433600
117226585 _Guoyh_ D May 24, 2021, 3:40 p.m. OK GNU C++11 TESTS 72 1044 5222400
117278078 changle_cyx D May 25, 2021, 3:13 a.m. OK GNU C++11 TESTS 74 1060 19046400
117230455 Mr_Eight D May 24, 2021, 3:48 p.m. OK GNU C++11 TESTS 72 1107 2867200
117249754 MyLoveKUN D May 24, 2021, 4:43 p.m. OK GNU C++11 TESTS 72 1200 8499200
117222534 dengyaotriangle D May 24, 2021, 3:31 p.m. OK GNU C++11 TESTS 72 1294 1433600
117246479 fanache99 D May 24, 2021, 4:32 p.m. OK GNU C++11 TESTS 72 1309 5120000
117224108 LJC00118 D May 24, 2021, 3:34 p.m. OK GNU C++11 TESTS 72 1372 5222400
117272950 clfzs D May 25, 2021, 12:37 a.m. OK GNU C++11 TESTS 73 1450 4505600
117281075 yang12138 D May 25, 2021, 4:15 a.m. OK GNU C++11 TESTS 74 1465 7577600
117265591 krijgertje D May 24, 2021, 8 p.m. OK GNU C++14 TESTS 72 826 8192000
117280518 AThousandMoon D May 25, 2021, 4:04 a.m. OK GNU C++14 TESTS 74 1029 18329600
117271686 SuperJ6 D May 24, 2021, 11:37 p.m. OK GNU C++14 TESTS 73 1169 1433600
117271625 SuperJ6 D May 24, 2021, 11:34 p.m. OK GNU C++14 TESTS 73 1200 1433600
117247559 clyring D May 24, 2021, 4:36 p.m. OK GNU C++14 TESTS 72 1309 5324800
117251714 wifiiiiii D May 24, 2021, 4:48 p.m. OK GNU C++14 TESTS 72 1309 5427200
117230769 ugly2333 D May 24, 2021, 3:49 p.m. OK GNU C++14 TESTS 72 1466 1843200
117258858 _no0B D May 24, 2021, 6:04 p.m. OK GNU C++14 TESTS 72 1528 1536000
117260351 _no0B D May 24, 2021, 6:24 p.m. OK GNU C++14 TESTS 72 1653 1536000
117255296 rohit_goyal D May 24, 2021, 5:27 p.m. OK GNU C++14 TESTS 72 1824 24678400
117263623 JustasZ D May 24, 2021, 7:17 p.m. OK GNU C++17 TESTS 72 842 5324800
117274508 ButterflyDew D May 25, 2021, 1:41 a.m. OK GNU C++17 TESTS 73 889 13824000
117231026 KrK D May 24, 2021, 3:50 p.m. OK GNU C++17 TESTS 72 904 8294400
117243002 fsouza D May 24, 2021, 4:22 p.m. OK GNU C++17 TESTS 72 1075 5324800
117232081 tlwpdus D May 24, 2021, 3:52 p.m. OK GNU C++17 TESTS 72 1076 6860800
117258374 SinaSahabi D May 24, 2021, 5:57 p.m. OK GNU C++17 TESTS 72 1122 3276800
117277866 vkgainz D May 25, 2021, 3:09 a.m. OK GNU C++17 TESTS 73 1138 1536000
117254926 fivefourthreeone D May 24, 2021, 5:25 p.m. OK GNU C++17 TESTS 72 1138 9728000
117237729 bogdan10bos D May 24, 2021, 4:06 p.m. OK GNU C++17 TESTS 72 1154 1433600
117258727 Manikanta335 D May 24, 2021, 6:02 p.m. OK GNU C++17 TESTS 72 1185 10137600
117247777 kostia244 D May 24, 2021, 4:37 p.m. OK GNU C++17 (64) TESTS 72 467 1536000
117228440 KADR D May 24, 2021, 3:44 p.m. OK GNU C++17 (64) TESTS 72 670 6758400
117275339 wty2016 D May 25, 2021, 2:08 a.m. OK GNU C++17 (64) TESTS 73 748 6656000
117260506 IceKnight1093 D May 24, 2021, 6:26 p.m. OK GNU C++17 (64) TESTS 72 764 8396800
117254086 Mangooste D May 24, 2021, 5:20 p.m. OK GNU C++17 (64) TESTS 72 794 1536000
117256282 kiyoshi0205 D May 24, 2021, 5:35 p.m. OK GNU C++17 (64) TESTS 72 810 2867200
117274924 lyons D May 25, 2021, 1:55 a.m. OK GNU C++17 (64) TESTS 73 826 5836800
117254769 nweeks D May 24, 2021, 5:24 p.m. OK GNU C++17 (64) TESTS 72 857 12902400
117261163 IceKnight1093 D May 24, 2021, 6:36 p.m. OK GNU C++17 (64) TESTS 72 873 8499200
117256116 wty2016 D May 24, 2021, 5:34 p.m. OK GNU C++17 (64) TESTS 72 873 12902400
117273508 lucasr D May 25, 2021, 1:02 a.m. OK Java 11 TESTS 73 2464 0
117235787 uwi D May 24, 2021, 4:01 p.m. OK Java 11 TESTS 72 3181 0
117285657 hu_tao D May 25, 2021, 5:25 a.m. OK Java 8 TESTS 74 1965 14848000
117233133 dalt D May 24, 2021, 3:55 p.m. OK Java 8 TESTS 72 3774 0
117255185 fetetriste D May 24, 2021, 5:27 p.m. OK Java 8 TESTS 72 4742 18124800
117246902 fetetriste D May 24, 2021, 4:34 p.m. OK Java 8 TESTS 72 4835 18124800
117255261 fetetriste D May 24, 2021, 5:27 p.m. OK Java 8 TESTS 72 4914 18124800
117232774 Tlatoani D May 24, 2021, 3:54 p.m. OK Kotlin TESTS 72 1793 27238400
117216057 Madball D May 24, 2021, 3:19 p.m. OK MS C++ 2017 TESTS 72 2823 1433600
117251009 Kiri8128 D May 24, 2021, 4:46 p.m. OK PyPy 3 TESTS 72 4430 32870400
117257675 sansen D May 24, 2021, 5:50 p.m. OK Rust TESTS 72 405 19968000
117232275 sansen D May 24, 2021, 3:53 p.m. OK Rust TESTS 72 1216 24678400
117250617 cottoncotton D May 24, 2021, 4:45 p.m. OK Rust TESTS 72 1528 10342400
117259603 shino16 D May 24, 2021, 6:14 p.m. OK Rust TESTS 72 3899 17715200

remove filters

Back to search problems