Educational Codeforces Round 60 (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
1117 Educational Codeforces Round 60 (Rated for Div. 2) FINISHED False 7200 187021224 Feb. 18, 2019, 3:40 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7395 ) C Magic Ship PROGRAMMING binary search 1800

B'You a captain of a ship. Initially you are standing in a point (x_1, y_1) (obviously, all positions in the sea can be described by cartesian plane) and you want to travel to a point (x_2, y_2) . You know the weather forecast -- the string s of length n , consisting only of letters U, D, L and R. The letter corresponds to a direction of wind. Moreover, the forecast is periodic, e.g. the first day wind blows to the side s_1 , the second day -- s_2 , the n -th day -- s_n and (n+1) -th day -- s_1 again and so on. Ship coordinates change the following way: The ship can also either go one of the four directions or stay in place each day. If it goes then it 's exactly 1 unit of distance. Transpositions of the ship and the wind add up. If the ship stays in place, then only the direction of wind counts. For example, if wind blows the direction U and the ship moves the direction L, then from point (x, y) it will move to the point (x - 1, y + 1) , and if it goes the direction U, then it will move to the point (x, y + 2) . You task is to determine the minimal number of days required for the ship to reach the point (x_2, y_2) . The first line contains two integers x_1, y_1 ( 0 <= x_1, y_1 <= 10^9 ) -- the initial coordinates of the ship. The second line contains two integers x_2, y_2 ( 0 <= x_2, y_2 <= 10^9 ) -- the coordinates of the destination point. It is guaranteed that the initial coordinates and destination point coordinates are different. The third line contains a single integer n ( 1 <= n <= 10^5 ) -- the length of the string s . The fourth line contains the string s itself, consisting only of letters U, D, L and R. The only line should contain the minimal number of days required for the ship to reach the point (x_2, y_2) . If it 's impossible then print "-1". In the first example the ship should perform the following sequence o'...

Tutorials

65365

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50140599 Iplayer C Feb. 18, 2019, 9:30 p.m. OK Clang++17 Diagnostics TESTS 24 670 14745600 1800
50393673 Khanj C Feb. 23, 2019, 2:56 p.m. OK Clang++17 Diagnostics TESTS 24 717 14745600 1800
50259820 rr_ C Feb. 20, 2019, 10:53 p.m. OK D TESTS 24 78 4198400 1800
50128143 ruban C Feb. 18, 2019, 5:22 p.m. OK Delphi TESTS 24 46 55910400 1800
50778674 ilya_kas C March 4, 2019, 10:09 a.m. OK FPC TESTS 24 31 2150400 1800
51676986 TShT C March 22, 2019, 11:01 a.m. OK FPC TESTS 24 31 5427200 1800
52011523 vjudge3 C March 30, 2019, 8:48 a.m. OK GNU C11 TESTS 24 30 1740800 1800
50132765 rainboy C Feb. 18, 2019, 5:51 p.m. OK GNU C11 TESTS 24 31 102400 1800
52011462 2018030401093 C March 30, 2019, 8:46 a.m. OK GNU C11 TESTS 24 31 1740800 1800
50162983 libra8z C Feb. 19, 2019, 1:25 p.m. OK GNU C11 TESTS 24 31 3379200 1800
50119826 rainboy C Feb. 18, 2019, 4:35 p.m. OK GNU C11 TESTS 24 46 102400 1800
50145834 _ShadowSong C Feb. 19, 2019, 3:56 a.m. OK GNU C++11 TESTS 24 15 716800 1800
54081112 Fister C May 14, 2019, 3:11 a.m. OK GNU C++11 TESTS 24 15 921600 1800
50113102 huhaoo C Feb. 18, 2019, 4:06 p.m. OK GNU C++11 TESTS 24 15 1536000 1800
50155605 QZR_2018 C Feb. 19, 2019, 9:51 a.m. OK GNU C++11 TESTS 24 15 1740800 1800
50154651 temp06 C Feb. 19, 2019, 9:19 a.m. OK GNU C++11 TESTS 24 30 102400 1800
50347367 zhtzht C Feb. 23, 2019, 6:59 a.m. OK GNU C++11 TESTS 24 30 921600 1800
50144736 cXs5 C Feb. 19, 2019, 2:48 a.m. OK GNU C++11 TESTS 24 30 921600 1800
50132719 wiwitrifai C Feb. 18, 2019, 5:50 p.m. OK GNU C++11 TESTS 24 30 921600 1800
50116538 eatenbagpipe C Feb. 18, 2019, 4:19 p.m. OK GNU C++11 TESTS 24 30 921600 1800
50206298 imilki C Feb. 19, 2019, 7:28 p.m. OK GNU C++11 TESTS 24 30 1024000 1800
50125564 rdd6584 C Feb. 18, 2019, 5:08 p.m. OK GNU C++14 TESTS 24 15 204800 1800
50274305 vsriram1012 C Feb. 21, 2019, 9:07 a.m. OK GNU C++14 TESTS 24 15 307200 1800
50342761 alurquiza C Feb. 23, 2019, 3:59 a.m. OK GNU C++14 TESTS 24 15 307200 1800
50394118 feri80 C Feb. 23, 2019, 3:08 p.m. OK GNU C++14 TESTS 24 15 819200 1800
50132478 ACdreams C Feb. 18, 2019, 5:47 p.m. OK GNU C++14 TESTS 24 15 921600 1800
68691246 _HonEy C Jan. 13, 2020, 6:13 a.m. OK GNU C++14 TESTS 24 15 921600 1800
50164324 forever77 C Feb. 19, 2019, 1:59 p.m. OK GNU C++14 TESTS 24 15 921600 1800
50132152 XLor C Feb. 18, 2019, 5:43 p.m. OK GNU C++14 TESTS 24 15 921600 1800
50268659 Rdpaula C Feb. 21, 2019, 6:01 a.m. OK GNU C++14 TESTS 24 15 1024000 1800
50156577 mig C Feb. 19, 2019, 10:26 a.m. OK GNU C++14 TESTS 24 15 1126400 1800
50123290 Growth C Feb. 18, 2019, 4:54 p.m. OK GNU C++17 TESTS 24 15 307200 1800
50330971 Gregory C Feb. 22, 2019, 6:31 p.m. OK GNU C++17 TESTS 24 15 307200 1800
50156065 ZeroAmbition C Feb. 19, 2019, 10:08 a.m. OK GNU C++17 TESTS 24 15 819200 1800
50125529 Cro-Marmot C Feb. 18, 2019, 5:07 p.m. OK GNU C++17 TESTS 24 15 921600 1800
58101378 Biioy C Aug. 1, 2019, 1:11 a.m. OK GNU C++17 TESTS 24 15 921600 1800
52885075 Houbunsha C April 17, 2019, 4:23 a.m. OK GNU C++17 TESTS 24 15 921600 1800
50473301 vjudge3 C Feb. 25, 2019, 3:33 a.m. OK GNU C++17 TESTS 24 15 921600 1800
50349173 Mr_leon C Feb. 23, 2019, 7:46 a.m. OK GNU C++17 TESTS 24 15 921600 1800
50210654 lys1280023 C Feb. 19, 2019, 11:04 p.m. OK GNU C++17 TESTS 24 15 921600 1800
51087829 AayushAC1998 C March 9, 2019, 1:41 p.m. OK GNU C++17 TESTS 24 15 1024000 1800
50530484 hqhs C Feb. 26, 2019, 1:27 p.m. OK Go TESTS 24 31 716800 1800
50301786 2008061626 C Feb. 22, 2019, 2:53 a.m. OK Go TESTS 24 31 716800 1800
61269178 vjudge2 C Sept. 25, 2019, 1:35 p.m. OK Go TESTS 24 78 1638400 1800
61269002 WangJialei C Sept. 25, 2019, 1:33 p.m. OK Go TESTS 24 78 1638400 1800
53815897 sameep17264 C May 6, 2019, 10:23 a.m. OK Java 8 TESTS 24 108 0 1800
52079078 Samez C March 31, 2019, 11:24 a.m. OK Java 8 TESTS 24 109 0 1800
50423741 dmitriy0712 C Feb. 24, 2019, 10:26 a.m. OK Java 8 TESTS 24 109 0 1800
50268777 jwozniak C Feb. 21, 2019, 6:05 a.m. OK Java 8 TESTS 24 109 0 1800
50245539 solarbeam C Feb. 20, 2019, 2:44 p.m. OK Java 8 TESTS 24 109 0 1800
50164630 satya26 C Feb. 19, 2019, 2:07 p.m. OK Java 8 TESTS 24 109 0 1800
50136255 jenish9599 C Feb. 18, 2019, 7:03 p.m. OK Java 8 TESTS 24 109 0 1800
50135094 bazinga84 C Feb. 18, 2019, 6:33 p.m. OK Java 8 TESTS 24 109 0 1800
50123281 fnch C Feb. 18, 2019, 4:54 p.m. OK Java 8 TESTS 24 109 0 1800
64794045 chojh1222 C Nov. 13, 2019, 12:16 p.m. OK Java 8 TESTS 24 124 0 1800
50121703 Sergey.Bankevich C Feb. 18, 2019, 4:45 p.m. OK Kotlin TESTS 24 373 0 1800
50163793 eki C Feb. 19, 2019, 1:46 p.m. OK Mono C# TESTS 24 61 3481600 1800
50144949 claw88 C Feb. 19, 2019, 3:01 a.m. OK Mono C# TESTS 24 62 716800 1800
50122670 ykurmangaliyev C Feb. 18, 2019, 4:51 p.m. OK Mono C# TESTS 24 62 5529600 1800
50121336 mban259 C Feb. 18, 2019, 4:43 p.m. OK Mono C# TESTS 24 62 6656000 1800
50129565 TrabajoNocturno C Feb. 18, 2019, 5:30 p.m. OK Mono C# TESTS 24 93 72806400 1800
63431604 hibatibati C Oct. 26, 2019, 9:17 a.m. OK Mono C# TESTS 24 139 3891200 1800
54326642 vjudge2 C May 18, 2019, 3:12 a.m. OK MS C++ TESTS 24 30 819200 1800
52230946 vjudge5 C April 2, 2019, 11:53 a.m. OK MS C++ TESTS 24 30 1126400 1800
52151921 vjudge4 C April 1, 2019, 11:57 a.m. OK MS C++ TESTS 24 30 1740800 1800
52137657 vjudge3 C April 1, 2019, 4:24 a.m. OK MS C++ TESTS 24 30 1740800 1800
50157374 qq1322389149 C Feb. 19, 2019, 10:53 a.m. OK MS C++ TESTS 24 30 1740800 1800
52152110 vjudge1 C April 1, 2019, 12:01 p.m. OK MS C++ TESTS 24 30 1740800 1800
52340915 vjudge2 C April 5, 2019, 10:28 a.m. OK MS C++ TESTS 24 30 1945600 1800
51352345 vjudge2 C March 15, 2019, 11:47 p.m. OK MS C++ TESTS 24 31 102400 1800
51352322 vjudge2 C March 15, 2019, 11:45 p.m. OK MS C++ TESTS 24 31 102400 1800
53221599 vjudge1 C April 24, 2019, 12:07 p.m. OK MS C++ TESTS 24 31 921600 1800
50122667 siwei C Feb. 18, 2019, 4:51 p.m. OK MS C++ 2017 TESTS 24 31 307200 1800
50238842 bbisnouse C Feb. 20, 2019, 12:04 p.m. OK MS C++ 2017 TESTS 24 31 921600 1800
61372320 pansh1n C Sept. 27, 2019, 3:23 p.m. OK MS C++ 2017 TESTS 24 31 1638400 1800
58427084 yorky C Aug. 7, 2019, 10:11 a.m. OK MS C++ 2017 TESTS 24 31 1843200 1800
64647091 vjudge5 C Nov. 10, 2019, 3:28 p.m. OK MS C++ 2017 TESTS 24 31 1843200 1800
50135921 olya.masaeva C Feb. 18, 2019, 6:53 p.m. OK MS C++ 2017 TESTS 24 31 1843200 1800
50148285 rokirovochka C Feb. 19, 2019, 5:52 a.m. OK MS C++ 2017 TESTS 24 31 1843200 1800
52306998 Mechorca C April 4, 2019, 12:42 p.m. OK MS C++ 2017 TESTS 24 31 1843200 1800
65029770 vjudge2 C Nov. 15, 2019, 9:21 a.m. OK MS C++ 2017 TESTS 24 31 2662400 1800
50115999 pill C Feb. 18, 2019, 4:17 p.m. OK MS C++ 2017 TESTS 24 31 3481600 1800
50253166 mostyka C Feb. 20, 2019, 6:16 p.m. OK PascalABC.NET TESTS 24 202 2252800 1800
50479113 Stanislav666 C Feb. 25, 2019, 7:57 a.m. OK PascalABC.NET TESTS 24 218 102400 1800
50125042 zacker-22 C Feb. 18, 2019, 5:04 p.m. OK PyPy 2 TESTS 24 124 1228800 1800
50114728 pajenegod C Feb. 18, 2019, 4:12 p.m. OK PyPy 2 TESTS 24 124 2048000 1800
50134598 wolffd C Feb. 18, 2019, 6:22 p.m. OK PyPy 2 TESTS 24 124 3788800 1800
50113983 aeternalis1 C Feb. 18, 2019, 4:09 p.m. OK PyPy 2 TESTS 24 140 3891200 1800
57489761 thuutin C July 22, 2019, 6:41 a.m. OK PyPy 2 TESTS 24 140 6246400 1800
50122278 alessandrosolbiati C Feb. 18, 2019, 4:48 p.m. OK PyPy 2 TESTS 24 140 7372800 1800
50163817 YESMAths C Feb. 19, 2019, 1:47 p.m. OK PyPy 2 TESTS 24 155 6246400 1800
50157868 nic6200 C Feb. 19, 2019, 11:07 a.m. OK PyPy 2 TESTS 24 155 6656000 1800
50297828 c1729 C Feb. 21, 2019, 10:22 p.m. OK PyPy 2 TESTS 24 170 9830400 1800
50143758 pedrosorio C Feb. 19, 2019, 1:31 a.m. OK PyPy 2 TESTS 24 171 1433600 1800
50153833 adshin21 C Feb. 19, 2019, 8:55 a.m. OK PyPy 3 TESTS 24 140 2252800 1800
50214762 Regius C Feb. 20, 2019, 3:33 a.m. OK PyPy 3 TESTS 24 140 4198400 1800
50637932 nexus.chebykin C March 1, 2019, 12:37 p.m. OK PyPy 3 TESTS 24 140 4812800 1800
50540259 pineriver C Feb. 26, 2019, 5:43 p.m. OK PyPy 3 TESTS 24 140 5529600 1800
63949134 Gustavslatvijalatvija123 C Oct. 31, 2019, 8:14 p.m. OK PyPy 3 TESTS 24 155 3072000 1800
63949020 Gustavslatvijalatvija123 C Oct. 31, 2019, 8:10 p.m. OK PyPy 3 TESTS 24 155 3072000 1800
63935659 jansons C Oct. 31, 2019, 3:45 p.m. OK PyPy 3 TESTS 24 155 3072000 1800
63210883 gatis C Oct. 23, 2019, 3:39 a.m. OK PyPy 3 TESTS 24 155 3072000 1800
50126691 islammohsen C Feb. 18, 2019, 5:14 p.m. OK PyPy 3 TESTS 24 155 7270400 1800
63949285 Gustavslatvijalatvija123 C Oct. 31, 2019, 8:19 p.m. OK PyPy 3 TESTS 24 156 5632000 1800
50243074 stunba C Feb. 20, 2019, 1:44 p.m. OK Python 2 TESTS 24 217 2252800 1800
50221416 gaidash C Feb. 20, 2019, 5:57 a.m. OK Python 2 TESTS 24 218 3379200 1800
50307733 SoSooding C Feb. 22, 2019, 7:19 a.m. OK Python 2 TESTS 24 218 3993600 1800
50243360 bestzx55 C Feb. 20, 2019, 1:52 p.m. OK Python 2 TESTS 24 218 3993600 1800
55515208 arman.t C June 13, 2019, 4:39 a.m. OK Python 2 TESTS 24 218 7987200 1800
50207673 wunder9l C Feb. 19, 2019, 8:15 p.m. OK Python 2 TESTS 24 218 8089600 1800
52024543 harshsodi C March 30, 2019, 2:14 p.m. OK Python 2 TESTS 24 218 10240000 1800
50297850 c1729 C Feb. 21, 2019, 10:23 p.m. OK Python 2 TESTS 24 233 9318400 1800
50145613 sampsonguo302 C Feb. 19, 2019, 3:43 a.m. OK Python 2 TESTS 24 265 9625600 1800
50126048 noob77777 C Feb. 18, 2019, 5:10 p.m. OK Python 2 TESTS 24 280 4403200 1800
50164057 Rinatti C Feb. 19, 2019, 1:53 p.m. OK Python 3 TESTS 24 140 7065600 1800
50163253 titia C Feb. 19, 2019, 1:32 p.m. OK Python 3 TESTS 24 140 7065600 1800
57103253 Vasiliy_48 C July 15, 2019, 2:30 p.m. OK Python 3 TESTS 24 155 3993600 1800
50776346 IQuant C March 4, 2019, 8:43 a.m. OK Python 3 TESTS 24 155 4198400 1800
50145025 kantohm11 C Feb. 19, 2019, 3:05 a.m. OK Python 3 TESTS 24 155 6144000 1800
56532907 Mad_Andrei C July 4, 2019, 9:05 p.m. OK Python 3 TESTS 24 155 6963200 1800
51486534 Tauzn C March 19, 2019, 1:46 p.m. OK Python 3 TESTS 24 155 7065600 1800
50739375 sdhd C March 3, 2019, 2:33 p.m. OK Python 3 TESTS 24 155 7065600 1800
50637943 nexus.chebykin C March 1, 2019, 12:37 p.m. OK Python 3 TESTS 24 155 7065600 1800
50699486 tanish36 C March 2, 2019, 8:02 p.m. OK Python 3 TESTS 24 156 7065600 1800
50123957 arzk C Feb. 18, 2019, 4:58 p.m. OK Rust TESTS 24 30 1024000 1800
50138867 macho_uno C Feb. 18, 2019, 8:20 p.m. OK Rust TESTS 24 31 3993600 1800
50117159 yakamoto C Feb. 18, 2019, 4:22 p.m. OK Scala TESTS 24 405 0 1800

remove filters

Back to search problems