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 |
---|---|---|---|---|---|---|
1550 | Educational Codeforces Round 111 (Rated for Div. 2) | FINISHED | False | 7200 | 110906663 | July 14, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 696 ) | F | Jumping Around | PROGRAMMING | data structures divide and conquer dp ds graphs shortest paths trees |
B'There is an infinite pond that can be represented with a number line. There are n rocks in the pond, numbered from 1 to n . The i -th rock is located at an integer coordinate a_i . The coordinates of the rocks are pairwise distinct. The rocks are numbered in the increasing order of the coordinate, so a_1 < a_2 < ... < a_n . A robot frog sits on the rock number s . The frog is programmable. It has a base jumping distance parameter d . There also is a setting for the jumping distance range. If the jumping distance range is set to some integer k , then the frog can jump from some rock to any rock at a distance from d - k to d + k inclusive in any direction. The distance between two rocks is an absolute difference between their coordinates. You are assigned a task to implement a feature for the frog. Given two integers i and k determine if the frog can reach a rock number i from a rock number s performing a sequence of jumps with the jumping distance range set to k . The sequence can be arbitrarily long or empty. You will be given q testcases for that feature, the j -th testcase consists of two integers i and k . Print "Yes" if the i -th rock is reachable and "No" otherwise. You can output "YES" and "NO" in any case (for example, strings "yEs", "yes", "Yes" and 'YES" ' will be recognized as a positive answer). The first line contains four integers n , q , s and d ( 1 <= n, q <= 2 cdot 10^5 ; 1 <= s <= n ; 1 <= d <= 10^6 ) -- the number of rocks, the number of testcases, the starting rock and the base jumping distance parameter. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^6 ) -- the coordinates of the rocks. The coordinates of the rocks are pairwise distinct. The rocks are numbered in the increasing order of distance from the land, so a_1 < a_2 < dot'... |
Educational Codeforces Round 111 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
122543693 | Newbie_Rainbow_sjy | F | July 15, 2021, 3:47 a.m. | OK | GNU C++11 | TESTS | 38 | 187 | 14950400 | ||
122511867 | nwi | F | July 14, 2021, 4:58 p.m. | OK | GNU C++11 | TESTS | 38 | 265 | 58368000 | ||
122512717 | phathnv202 | F | July 14, 2021, 5:06 p.m. | OK | GNU C++11 | TESTS | 38 | 1310 | 92569600 | ||
122507960 | Hodobox | F | July 14, 2021, 4:33 p.m. | OK | GNU C++11 | TESTS | 38 | 1606 | 152473600 | ||
122510764 | TheOneYouWant | F | July 14, 2021, 4:49 p.m. | OK | GNU C++14 | TESTS | 38 | 421 | 44032000 | ||
122507186 | DeadPillow | F | July 14, 2021, 4:31 p.m. | OK | GNU C++14 | TESTS | 38 | 452 | 14950400 | ||
122526990 | AwakeAnay | F | July 14, 2021, 8:29 p.m. | OK | GNU C++14 | TESTS | 38 | 873 | 42393600 | ||
122510847 | TheOneYouWant | F | July 14, 2021, 4:50 p.m. | OK | GNU C++14 | TESTS | 38 | 1310 | 157491200 | ||
122527463 | islingr | F | July 14, 2021, 8:39 p.m. | OK | GNU C++17 | TESTS | 38 | 218 | 30720000 | ||
122505999 | xaohu | F | July 14, 2021, 4:28 p.m. | OK | GNU C++17 | TESTS | 38 | 248 | 58060800 | ||
122526535 | islingr | F | July 14, 2021, 8:20 p.m. | OK | GNU C++17 | TESTS | 38 | 280 | 17203200 | ||
122500924 | dreamoon_love_AA | F | July 14, 2021, 4:10 p.m. | OK | GNU C++17 | TESTS | 38 | 280 | 99225600 | ||
122526472 | islingr | F | July 14, 2021, 8:18 p.m. | OK | GNU C++17 | TESTS | 38 | 296 | 17203200 | ||
122510048 | hank55663 | F | July 14, 2021, 4:44 p.m. | OK | GNU C++17 | TESTS | 38 | 312 | 9318400 | ||
122512880 | Mr.Robot_28 | F | July 14, 2021, 5:08 p.m. | OK | GNU C++17 | TESTS | 38 | 326 | 12697600 | ||
122541616 | Blondie | F | July 15, 2021, 3:12 a.m. | OK | GNU C++17 | TESTS | 38 | 342 | 67891200 | ||
122535016 | couplefire | F | July 15, 2021, 12:49 a.m. | OK | GNU C++17 | TESTS | 38 | 421 | 22835200 | ||
122517151 | ei133333 | F | July 14, 2021, 5:54 p.m. | OK | GNU C++17 | TESTS | 38 | 436 | 27238400 | ||
122527275 | risujiroh | F | July 14, 2021, 8:35 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 140 | 15155200 | ||
122527251 | risujiroh | F | July 14, 2021, 8:35 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 155 | 15155200 | ||
122527487 | islingr | F | July 14, 2021, 8:40 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 186 | 43417600 | ||
122527306 | islingr | F | July 14, 2021, 8:36 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 202 | 18841600 | ||
122509291 | rainboy | F | July 14, 2021, 4:39 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 234 | 16281600 | ||
122537108 | frame233 | F | July 15, 2021, 1:43 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 249 | 18636800 | ||
122526053 | JaroslavUrban | F | July 14, 2021, 8:10 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 249 | 46592000 | ||
122523997 | JovanB | F | July 14, 2021, 7:32 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 280 | 59084800 | ||
122536791 | frame233 | F | July 15, 2021, 1:36 a.m. | OK | GNU C++17 (64) | TESTS | 38 | 296 | 19763200 | ||
122504855 | natsugiri | F | July 14, 2021, 4:24 p.m. | OK | GNU C++17 (64) | TESTS | 38 | 296 | 30515200 | ||
122529752 | clyring | F | July 14, 2021, 9:36 p.m. | OK | Haskell | TESTS | 38 | 4991 | 62156800 | ||
122501638 | uwi | F | July 14, 2021, 4:13 p.m. | OK | Java 11 | TESTS | 38 | 717 | 65228800 | ||
122503644 | Tlatoani | F | July 14, 2021, 4:19 p.m. | OK | Kotlin | TESTS | 38 | 1107 | 39628800 | ||
122513232 | sansen | F | July 14, 2021, 5:11 p.m. | OK | Rust | TESTS | 38 | 2183 | 34406400 |
Back to search problems