Codeforces Round 619 (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
1301 Codeforces Round 619 (Div. 2) FINISHED False 7200 155748311 Feb. 13, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4041 ) D Time to Run PROGRAMMING constructive algorithms graphs implementation 1900

B"Bashar was practicing for the national programming contest. Because of sitting too much in front of the computer without doing physical movements and eating a lot Bashar became much fatter. Bashar is going to quit programming after the national contest and he is going to become an actor (just like his father), so he should lose weight. In order to lose weight, Bashar is going to run for k kilometers. Bashar is going to run in a place that looks like a grid of n rows and m columns. In this grid there are two one-way roads of one-kilometer length between each pair of adjacent by side cells, one road is going from the first cell to the second one, and the other road is going from the second cell to the first one. So, there are exactly (4 n m - 2n - 2m) roads. Let's take, for example, n = 3 and m = 4 . In this case, there are 34 roads. It is the picture of this case (arrows describe roads): Bashar wants to run by these rules: Bashar asks you if it is possible to run by such rules. If it is possible, you should tell him how should he run. You should give him a steps to do and since Bashar can't remember too many steps, a should not exceed 3000 . In every step, you should give him an integer f and a string of moves s of length at most 4 which means that he should repeat the moves in the string s for f times. He will perform the steps in the order you print them. For example, if the steps are 2 RUD, 3 UUL then the moves he is going to move are RUD + RUD + UUL + UUL + UUL = RUDRUDUULUULUUL. Can you help him and give him a correct sequence of moves such that the total distance he will run is equal to k kilometers or say, that it is impossible? The only line contains three integers n , m and k ( 1 <= q n, m <= q 500 , 1 <= q k <= q 10 ^{9} ), which are the number of rows and the number of columns in the gr"...

Tutorials

Codeforces Round #619 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70991277 iica D Feb. 13, 2020, 3:44 p.m. OK D TESTS 49 31 4300800 1900
71018422 rainboy D Feb. 13, 2020, 7:23 p.m. OK GNU C11 TESTS 49 31 0 1900
71024758 kaiboy D Feb. 13, 2020, 10:34 p.m. OK GNU C11 TESTS 49 31 0 1900
71024857 kaiboy D Feb. 13, 2020, 10:38 p.m. OK GNU C11 TESTS 49 31 0 1900
70989327 pengin_2000 D Feb. 13, 2020, 3:38 p.m. OK GNU C11 TESTS 49 31 3993600 1900
71025253 kaiboy D Feb. 13, 2020, 10:58 p.m. OK GNU C11 TESTS 49 46 0 1900
71011978 hmfzy D Feb. 13, 2020, 5:45 p.m. OK GNU C++11 TESTS 49 30 0 1900
71010589 Jerry_L D Feb. 13, 2020, 5:33 p.m. OK GNU C++11 TESTS 49 30 0 1900
71039859 MackereI_Pike D Feb. 14, 2020, 6:36 a.m. OK GNU C++11 TESTS 49 30 1024000 1900
71059798 vioalbert D Feb. 14, 2020, 1:07 p.m. OK GNU C++11 TESTS 49 31 0 1900
71057851 hnust_liuxin D Feb. 14, 2020, 12:38 p.m. OK GNU C++11 TESTS 49 31 0 1900
71088895 cugel D Feb. 14, 2020, 11:24 p.m. OK GNU C++11 TESTS 49 31 0 1900
71072603 ACcepted_automaton D Feb. 14, 2020, 4:21 p.m. OK GNU C++11 TESTS 49 31 0 1900
71071946 TrigoPower D Feb. 14, 2020, 4:09 p.m. OK GNU C++11 TESTS 49 31 0 1900
71069090 JJZm4j D Feb. 14, 2020, 3:24 p.m. OK GNU C++11 TESTS 49 31 0 1900
71092975 IAT14 D Feb. 15, 2020, 3:04 a.m. OK GNU C++11 TESTS 49 31 0 1900
71044313 Nero D Feb. 14, 2020, 7:57 a.m. OK GNU C++14 TESTS 49 15 102400 1900
71026717 xiayuyang D Feb. 14, 2020, 12:25 a.m. OK GNU C++14 TESTS 49 15 102400 1900
71055482 namanbansal013 D Feb. 14, 2020, 11:34 a.m. OK GNU C++14 TESTS 49 15 102400 1900
71080227 unusual_wonder D Feb. 14, 2020, 6:45 p.m. OK GNU C++14 TESTS 49 15 102400 1900
71027211 bjn D Feb. 14, 2020, 12:52 a.m. OK GNU C++14 TESTS 49 15 204800 1900
71025994 KisekiPurin2019 D Feb. 13, 2020, 11:39 p.m. OK GNU C++14 TESTS 49 30 0 1900
71031587 Sarah_Wang D Feb. 14, 2020, 3:32 a.m. OK GNU C++14 TESTS 49 30 0 1900
71027320 leonardo.21081996 D Feb. 14, 2020, 12:58 a.m. OK GNU C++14 TESTS 49 30 102400 1900
71079840 Akash79 D Feb. 14, 2020, 6:37 p.m. OK GNU C++14 TESTS 49 30 102400 1900
71024232 saketag007 D Feb. 13, 2020, 10:12 p.m. OK GNU C++14 TESTS 49 30 102400 1900
70991400 I_Love_Obukhova_Maria D Feb. 13, 2020, 3:44 p.m. OK GNU C++17 TESTS 49 15 102400 1900
71004116 sempav D Feb. 13, 2020, 4:24 p.m. OK GNU C++17 TESTS 49 30 0 1900
71014927 Nikhil_Medam D Feb. 13, 2020, 6:20 p.m. OK GNU C++17 TESTS 49 30 0 1900
71040859 XiaoTaoTao D Feb. 14, 2020, 6:53 a.m. OK GNU C++17 TESTS 49 30 102400 1900
71038325 SPyofgame D Feb. 14, 2020, 6:10 a.m. OK GNU C++17 TESTS 49 30 102400 1900
71062052 Mitsuhaw D Feb. 14, 2020, 1:38 p.m. OK GNU C++17 TESTS 49 30 102400 1900
71096735 xingmo D Feb. 15, 2020, 5:14 a.m. OK GNU C++17 TESTS 49 30 102400 1900
71089080 Pigmeu D Feb. 14, 2020, 11:35 p.m. OK GNU C++17 TESTS 49 30 102400 1900
71050719 mihmih D Feb. 14, 2020, 9:53 a.m. OK GNU C++17 TESTS 49 30 102400 1900
71081926 knayan D Feb. 14, 2020, 7:25 p.m. OK GNU C++17 TESTS 49 30 102400 1900
70994466 u1s1reallycai D Feb. 13, 2020, 3:53 p.m. OK Go TESTS 49 31 0 1900
71029651 synapse D Feb. 14, 2020, 2:30 a.m. OK Go TESTS 49 31 0 1900
71028875 synapse D Feb. 14, 2020, 2:02 a.m. OK Go TESTS 49 31 0 1900
70990663 ccsu_cat_love_jiejie D Feb. 13, 2020, 3:42 p.m. OK Go TESTS 49 31 0 1900
71016366 Jughead D Feb. 13, 2020, 6:43 p.m. OK Go TESTS 49 62 0 1900
71025594 rm360179 D Feb. 13, 2020, 11:15 p.m. OK Haskell TESTS 49 31 102400 1900
71084953 TheSawan D Feb. 14, 2020, 8:41 p.m. OK Java 11 TESTS 49 187 0 1900
71025758 bleh0.5 D Feb. 13, 2020, 11:24 p.m. OK Java 11 TESTS 49 202 0 1900
71019696 lightseba D Feb. 13, 2020, 7:50 p.m. OK Java 11 TESTS 49 202 0 1900
71014238 jenish9599 D Feb. 13, 2020, 6:11 p.m. OK Java 11 TESTS 49 202 0 1900
71019363 lightseba D Feb. 13, 2020, 7:44 p.m. OK Java 11 TESTS 49 217 0 1900
70998535 sakt_coder D Feb. 13, 2020, 4:06 p.m. OK Java 11 TESTS 49 218 0 1900
71006054 adamjamil D Feb. 13, 2020, 4:30 p.m. OK Java 11 TESTS 49 234 0 1900
70992839 Dukkha D Feb. 13, 2020, 3:48 p.m. OK Java 11 TESTS 49 280 26931200 1900
71010302 Tatsuyaaaa D Feb. 13, 2020, 5:31 p.m. OK Java 8 TESTS 49 109 0 1900
71012831 Naman_123 D Feb. 13, 2020, 5:54 p.m. OK Java 8 TESTS 49 124 0 1900
71076972 nidhigoel D Feb. 14, 2020, 5:39 p.m. OK Java 8 TESTS 49 124 0 1900
71024286 RitvikMittal D Feb. 13, 2020, 10:14 p.m. OK Java 8 TESTS 49 124 0 1900
71013392 UnknownOne D Feb. 13, 2020, 6 p.m. OK Java 8 TESTS 49 124 0 1900
71012489 pulkit14 D Feb. 13, 2020, 5:50 p.m. OK Java 8 TESTS 49 124 0 1900
71010921 aman28rwt D Feb. 13, 2020, 5:36 p.m. OK Java 8 TESTS 49 124 0 1900
71001833 Vaibhav_Domadia D Feb. 13, 2020, 4:17 p.m. OK Java 8 TESTS 49 124 0 1900
71001436 awesomelemonade D Feb. 13, 2020, 4:16 p.m. OK Java 8 TESTS 49 124 0 1900
71000873 procrastinate7 D Feb. 13, 2020, 4:14 p.m. OK Java 8 TESTS 49 124 0 1900
71044473 Spheniscine D Feb. 14, 2020, 8 a.m. OK Kotlin TESTS 49 124 0 1900
71095635 Spheniscine D Feb. 15, 2020, 4:44 a.m. OK Kotlin TESTS 49 124 0 1900
71020415 SlavaG D Feb. 13, 2020, 8:08 p.m. OK Kotlin TESTS 49 233 5939200 1900
71002505 mban259 D Feb. 13, 2020, 4:19 p.m. OK Mono C# TESTS 49 62 102400 1900
71030366 eki D Feb. 14, 2020, 2:52 a.m. OK Mono C# TESTS 49 62 102400 1900
71050890 coderbd D Feb. 14, 2020, 9:56 a.m. OK Mono C# TESTS 49 62 204800 1900
70990760 riantkb D Feb. 13, 2020, 3:42 p.m. OK Mono C# TESTS 49 62 512000 1900
70991692 plasma-effect D Feb. 13, 2020, 3:45 p.m. OK Mono C# TESTS 49 77 4096000 1900
70995918 Yupiteru D Feb. 13, 2020, 3:58 p.m. OK Mono C# TESTS 49 77 136192000 1900
71023673 sergmel D Feb. 13, 2020, 9:47 p.m. OK Mono C# TESTS 49 93 4198400 1900
70997236 artworks D Feb. 13, 2020, 4:02 p.m. OK Mono C# TESTS 49 93 5324800 1900
71028780 vjudge2 D Feb. 14, 2020, 1:59 a.m. OK MS C++ TESTS 49 31 4096000 1900
71010833 tarattata1 D Feb. 13, 2020, 5:35 p.m. OK MS C++ TESTS 49 46 204800 1900
70981961 pichulia D Feb. 13, 2020, 3:17 p.m. OK MS C++ 2017 TESTS 49 31 0 1900
71020508 extremum D Feb. 13, 2020, 8:10 p.m. OK MS C++ 2017 TESTS 49 31 102400 1900
71080317 dimasidorenko D Feb. 14, 2020, 6:47 p.m. OK MS C++ 2017 TESTS 49 31 102400 1900
70994371 Conar D Feb. 13, 2020, 3:53 p.m. OK MS C++ 2017 TESTS 49 31 204800 1900
71001489 youx D Feb. 13, 2020, 4:16 p.m. OK MS C++ 2017 TESTS 49 31 204800 1900
71027154 12snoopy34 D Feb. 14, 2020, 12:49 a.m. OK MS C++ 2017 TESTS 49 31 307200 1900
71048467 paradoxhzy D Feb. 14, 2020, 9:11 a.m. OK MS C++ 2017 TESTS 49 31 307200 1900
71029659 ningBr D Feb. 14, 2020, 2:31 a.m. OK MS C++ 2017 TESTS 49 31 307200 1900
71012383 Dmitrenko D Feb. 13, 2020, 5:49 p.m. OK MS C++ 2017 TESTS 49 31 307200 1900
71000385 Ksenia_C D Feb. 13, 2020, 4:12 p.m. OK MS C++ 2017 TESTS 49 31 307200 1900
71019066 pajenegod D Feb. 13, 2020, 7:37 p.m. OK PyPy 2 TESTS 49 124 204800 1900
71000193 11fingers D Feb. 13, 2020, 4:11 p.m. OK PyPy 2 TESTS 49 140 512000 1900
70997298 kabeer27 D Feb. 13, 2020, 4:02 p.m. OK PyPy 2 TESTS 49 155 1433600 1900
71068570 deepak_prakash D Feb. 14, 2020, 3:16 p.m. OK PyPy 2 TESTS 49 202 819200 1900
71001846 astrom.lars D Feb. 13, 2020, 4:17 p.m. OK PyPy 2 TESTS 49 233 2457600 1900
71008253 throwawayatcoder D Feb. 13, 2020, 4:34 p.m. OK PyPy 3 TESTS 49 140 0 1900
70991895 pineriver D Feb. 13, 2020, 3:45 p.m. OK PyPy 3 TESTS 49 140 0 1900
71004892 nagitaosu D Feb. 13, 2020, 4:26 p.m. OK PyPy 3 TESTS 49 155 102400 1900
70992217 asvasil D Feb. 13, 2020, 3:46 p.m. OK PyPy 3 TESTS 49 155 1843200 1900
70991166 neterukun D Feb. 13, 2020, 3:43 p.m. OK PyPy 3 TESTS 49 155 3174400 1900
71015327 nikeshthapa255 D Feb. 13, 2020, 6:26 p.m. OK PyPy 3 TESTS 49 155 3379200 1900
71013422 nadchu D Feb. 13, 2020, 6 p.m. OK PyPy 3 TESTS 49 156 2764800 1900
71005288 sotanishy D Feb. 13, 2020, 4:28 p.m. OK PyPy 3 TESTS 49 156 3379200 1900
70990119 titia D Feb. 13, 2020, 3:40 p.m. OK PyPy 3 TESTS 49 156 3481600 1900
70995727 jatin__barley D Feb. 13, 2020, 3:57 p.m. OK PyPy 3 TESTS 49 170 1331200 1900
70978727 nwi D Feb. 13, 2020, 3:10 p.m. OK Python 2 TESTS 49 202 0 1900
71073997 maramsumanth D Feb. 14, 2020, 4:45 p.m. OK Python 3 TESTS 49 109 307200 1900
71065213 SinKing D Feb. 14, 2020, 2:23 p.m. OK Python 3 TESTS 49 109 307200 1900
70999773 IKnoom D Feb. 13, 2020, 4:10 p.m. OK Python 3 TESTS 49 109 307200 1900
71007476 Danish_love D Feb. 13, 2020, 4:33 p.m. OK Python 3 TESTS 49 124 307200 1900
71067222 NocturneBflat D Feb. 14, 2020, 2:53 p.m. OK Python 3 TESTS 49 124 614400 1900
71002200 SPD_9X2 D Feb. 13, 2020, 4:18 p.m. OK Python 3 TESTS 49 140 307200 1900
71001208 nethish D Feb. 13, 2020, 4:15 p.m. OK Python 3 TESTS 49 140 409600 1900
70987928 sansen D Feb. 13, 2020, 3:34 p.m. OK Rust TESTS 49 31 204800 1900
70982702 tuna_salad D Feb. 13, 2020, 3:19 p.m. OK Rust TESTS 49 46 102400 1900

remove filters

Back to search problems