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 |
---|---|---|---|---|---|---|
1451 | Codeforces Round 685 (Div. 2) | FINISHED | False | 8100 | 131210663 | Nov. 21, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 9658 ) | D | Circle Game | PROGRAMMING | games geometry math |
B'Utkarsh is forced to play yet another one of Ashish 's games. The game progresses turn by turn and as usual, Ashish moves first. Consider the 2D plane. There is a token which is initially at (0,0) . In one move a player must increase either the x coordinate or the y coordinate of the token by exactly k . In doing so, the player must ensure that the token stays within a (Euclidean) distance d from (0,0) . In other words, if after a move the coordinates of the token are (p,q) , then p^2 + q^2 <= q d^2 must hold. The game ends when a player is unable to make a move. It can be shown that the game will end in a finite number of moves. If both players play optimally, determine who will win. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. The only line of each test case contains two space separated integers d ( 1 <= q d <= q 10^5 ) and k ( 1 <= q k <= q d ). For each test case, if Ashish wins the game, print "Ashish", otherwise print "Utkarsh" (without the quotes). In the first test case, one possible sequence of moves can be (0, 0) xrightarrow{ text{Ashish }} (0, 1) xrightarrow{ text{Utkarsh }} (0, 2) . Ashish has no moves left, so Utkarsh wins. '... |
Editorial — Codeforces Round #685 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
99185378 | babaiserror | D | Nov. 21, 2020, 4:41 p.m. | OK | GNU C11 | TESTS | 68 | 31 | 0 | ||
99207467 | Milton_098 | D | Nov. 22, 2020, 1:36 a.m. | OK | GNU C11 | TESTS | 68 | 46 | 0 | ||
99198627 | 1435730 | D | Nov. 21, 2020, 8:20 p.m. | OK | GNU C11 | TESTS | 68 | 468 | 0 | ||
99210766 | 11224 | D | Nov. 22, 2020, 3:07 a.m. | OK | GNU C++11 | TESTS | 68 | 30 | 0 | ||
99216730 | zhoufangyuanPT | D | Nov. 22, 2020, 5:04 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99216415 | abc_j | D | Nov. 22, 2020, 4:59 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99214168 | Mahipalkeizer | D | Nov. 22, 2020, 4:22 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99214154 | Kowalks | D | Nov. 22, 2020, 4:21 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99218322 | haohaoh4 | D | Nov. 22, 2020, 5:28 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99217987 | wandisty | D | Nov. 22, 2020, 5:23 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99217442 | 275307894a | D | Nov. 22, 2020, 5:15 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99216762 | username_hidden | D | Nov. 22, 2020, 5:05 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99219665 | Catalan1906 | D | Nov. 22, 2020, 5:47 a.m. | OK | GNU C++11 | TESTS | 68 | 31 | 0 | ||
99186159 | onlystar | D | Nov. 21, 2020, 4:43 p.m. | OK | GNU C++14 | TESTS | 68 | 30 | 0 | ||
99219250 | Parul_19 | D | Nov. 22, 2020, 5:41 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99218414 | O_Iq | D | Nov. 22, 2020, 5:30 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99217823 | Zihad_Bd | D | Nov. 22, 2020, 5:21 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99217270 | Samomi | D | Nov. 22, 2020, 5:12 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99212240 | Bertlim | D | Nov. 22, 2020, 3:42 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99211421 | vishaljc77 | D | Nov. 22, 2020, 3:23 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99210267 | youarethestupiddog | D | Nov. 22, 2020, 2:53 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99219949 | derco19 | D | Nov. 22, 2020, 5:51 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99220580 | O_Iq | D | Nov. 22, 2020, 6 a.m. | OK | GNU C++14 | TESTS | 68 | 31 | 0 | ||
99219216 | vjudge2 | D | Nov. 22, 2020, 5:41 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99220600 | satish0701 | D | Nov. 22, 2020, 6 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99220024 | susmitmishra125 | D | Nov. 22, 2020, 5:52 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99220019 | Tanzeel | D | Nov. 22, 2020, 5:52 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219809 | _Bohemian | D | Nov. 22, 2020, 5:50 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219694 | Look_Y_Y | D | Nov. 22, 2020, 5:48 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219528 | uptracer | D | Nov. 22, 2020, 5:45 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219440 | Soumya1 | D | Nov. 22, 2020, 5:44 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219370 | QMark | D | Nov. 22, 2020, 5:43 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99219327 | Maruf089 | D | Nov. 22, 2020, 5:43 a.m. | OK | GNU C++17 | TESTS | 68 | 31 | 0 | ||
99193957 | ankushkhanna | D | Nov. 21, 2020, 7:23 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 15 | 0 | ||
99212637 | Nahian9696 | D | Nov. 22, 2020, 3:52 a.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 0 | ||
99196096 | silverfish | D | Nov. 21, 2020, 7:40 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 0 | ||
99182508 | idsigma | D | Nov. 21, 2020, 4:33 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 0 | ||
99184714 | shreya_2004 | D | Nov. 21, 2020, 4:39 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 0 | ||
99194553 | ankeet | D | Nov. 21, 2020, 7:26 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 0 | ||
99178735 | rakshi20 | D | Nov. 21, 2020, 4:22 p.m. | OK | GNU C++17 (64) | TESTS | 68 | 30 | 1638400 | ||
99216761 | mosquitoblood | D | Nov. 22, 2020, 5:05 a.m. | OK | GNU C++17 (64) | TESTS | 68 | 31 | 0 | ||
99219501 | fake_name | D | Nov. 22, 2020, 5:45 a.m. | OK | GNU C++17 (64) | TESTS | 68 | 31 | 0 | ||
99219319 | winxtron | D | Nov. 22, 2020, 5:42 a.m. | OK | GNU C++17 (64) | TESTS | 68 | 31 | 0 | ||
99200581 | b0bl0blaw | D | Nov. 21, 2020, 9:04 p.m. | OK | Java 11 | TESTS | 68 | 187 | 0 | ||
99218108 | decoder_1671 | D | Nov. 22, 2020, 5:25 a.m. | OK | Java 11 | TESTS | 68 | 187 | 10240000 | ||
99217256 | manojthakur123450 | D | Nov. 22, 2020, 5:12 a.m. | OK | Java 11 | TESTS | 68 | 202 | 0 | ||
99206437 | yuruiyin | D | Nov. 22, 2020, 12:58 a.m. | OK | Java 11 | TESTS | 68 | 233 | 0 | ||
99194527 | chris_11 | D | Nov. 21, 2020, 7:25 p.m. | OK | Java 11 | TESTS | 68 | 264 | 0 | ||
99194054 | Dukkha | D | Nov. 21, 2020, 7:23 p.m. | OK | Java 11 | TESTS | 68 | 280 | 0 | ||
99212362 | mphillotry | D | Nov. 22, 2020, 3:45 a.m. | OK | Java 11 | TESTS | 68 | 280 | 0 | ||
99185530 | rreeennnnn | D | Nov. 21, 2020, 4:42 p.m. | OK | Java 11 | TESTS | 68 | 280 | 0 | ||
99185516 | amit_chas | D | Nov. 21, 2020, 4:42 p.m. | OK | Java 11 | TESTS | 68 | 295 | 0 | ||
99200905 | cgrunau | D | Nov. 21, 2020, 9:13 p.m. | OK | Java 11 | TESTS | 68 | 311 | 0 | ||
99219075 | Pranay2516 | D | Nov. 22, 2020, 5:39 a.m. | OK | Java 8 | TESTS | 68 | 124 | 0 | ||
99205299 | 3434194755HaiTQ | D | Nov. 22, 2020, 12:04 a.m. | OK | Java 8 | TESTS | 68 | 124 | 0 | ||
99198348 | sizzula | D | Nov. 21, 2020, 8:14 p.m. | OK | Java 8 | TESTS | 68 | 140 | 0 | ||
99201211 | godxpunk | D | Nov. 21, 2020, 9:20 p.m. | OK | Java 8 | TESTS | 68 | 140 | 0 | ||
99211964 | _robindhankhar | D | Nov. 22, 2020, 3:36 a.m. | OK | Java 8 | TESTS | 68 | 140 | 0 | ||
99207934 | prasoon006 | D | Nov. 22, 2020, 1:50 a.m. | OK | Java 8 | TESTS | 68 | 140 | 0 | ||
99201413 | Jeg | D | Nov. 21, 2020, 9:26 p.m. | OK | Java 8 | TESTS | 68 | 140 | 0 | ||
99213031 | PP98 | D | Nov. 22, 2020, 4:01 a.m. | OK | Java 8 | TESTS | 68 | 155 | 0 | ||
99210903 | ZHANG.H. | D | Nov. 22, 2020, 3:10 a.m. | OK | Java 8 | TESTS | 68 | 155 | 0 | ||
99187475 | hoffrj | D | Nov. 21, 2020, 4:47 p.m. | OK | Java 8 | TESTS | 68 | 155 | 0 | ||
99203388 | Tlatoani | D | Nov. 21, 2020, 10:30 p.m. | OK | Kotlin | TESTS | 68 | 156 | 0 | ||
99197362 | koboshi | D | Nov. 21, 2020, 7:58 p.m. | OK | Kotlin | TESTS | 68 | 187 | 0 | ||
99195990 | amelentev | D | Nov. 21, 2020, 7:39 p.m. | OK | Kotlin | TESTS | 68 | 217 | 0 | ||
99178882 | koper | D | Nov. 21, 2020, 4:22 p.m. | OK | Kotlin | TESTS | 68 | 217 | 0 | ||
99194427 | Scotty_pwnz | D | Nov. 21, 2020, 7:25 p.m. | OK | Kotlin | TESTS | 68 | 233 | 0 | ||
99182645 | SpinDOS | D | Nov. 21, 2020, 4:33 p.m. | OK | Mono C# | TESTS | 68 | 77 | 0 | ||
99181267 | vanellope | D | Nov. 21, 2020, 4:29 p.m. | OK | MS C++ 2017 | TESTS | 68 | 31 | 0 | ||
99208181 | samcpp | D | Nov. 22, 2020, 1:57 a.m. | OK | MS C++ 2017 | TESTS | 68 | 31 | 0 | ||
99217863 | sy20190441030 | D | Nov. 22, 2020, 5:21 a.m. | OK | MS C++ 2017 | TESTS | 68 | 31 | 2048000 | ||
99183545 | YamagenSakam | D | Nov. 21, 2020, 4:36 p.m. | OK | MS C++ 2017 | TESTS | 68 | 46 | 0 | ||
99215745 | zstu18luoxianyu | D | Nov. 22, 2020, 4:48 a.m. | OK | MS C++ 2017 | TESTS | 68 | 46 | 0 | ||
99212310 | lhs8928 | D | Nov. 22, 2020, 3:44 a.m. | OK | MS C++ 2017 | TESTS | 68 | 46 | 0 | ||
99209326 | dingzhao777 | D | Nov. 22, 2020, 2:30 a.m. | OK | MS C++ 2017 | TESTS | 68 | 46 | 0 | ||
99208141 | samcpp | D | Nov. 22, 2020, 1:56 a.m. | OK | MS C++ 2017 | TESTS | 68 | 46 | 0 | ||
99181919 | thehendl | D | Nov. 21, 2020, 4:31 p.m. | OK | MS C++ 2017 | TESTS | 68 | 61 | 0 | ||
99201553 | dominotim | D | Nov. 21, 2020, 9:30 p.m. | OK | MS C++ 2017 | TESTS | 68 | 78 | 0 | ||
99194012 | fgwiebfaoish | D | Nov. 21, 2020, 7:23 p.m. | OK | .NET Core C# | TESTS | 68 | 156 | 0 | ||
99187535 | shehebe | D | Nov. 21, 2020, 4:47 p.m. | OK | PyPy 2 | TESTS | 68 | 202 | 1228800 | ||
99216165 | safal.gupta001 | D | Nov. 22, 2020, 4:55 a.m. | OK | PyPy 3 | TESTS | 68 | 140 | 0 | ||
99211937 | krishna369 | D | Nov. 22, 2020, 3:35 a.m. | OK | PyPy 3 | TESTS | 68 | 140 | 0 | ||
99209163 | silvertint | D | Nov. 22, 2020, 2:26 a.m. | OK | PyPy 3 | TESTS | 68 | 140 | 0 | ||
99202967 | satakshigarg | D | Nov. 21, 2020, 10:15 p.m. | OK | PyPy 3 | TESTS | 68 | 155 | 0 | ||
99202606 | sergiunasca | D | Nov. 21, 2020, 10:01 p.m. | OK | PyPy 3 | TESTS | 68 | 155 | 0 | ||
99198954 | shittttyyyyyy | D | Nov. 21, 2020, 8:26 p.m. | OK | PyPy 3 | TESTS | 68 | 155 | 0 | ||
99203925 | uttharapally.chandra | D | Nov. 21, 2020, 10:54 p.m. | OK | PyPy 3 | TESTS | 68 | 156 | 0 | ||
99196508 | erickjohnross | D | Nov. 21, 2020, 7:46 p.m. | OK | PyPy 3 | TESTS | 68 | 156 | 0 | ||
99208878 | uuuu_s | D | Nov. 22, 2020, 2:18 a.m. | OK | PyPy 3 | TESTS | 68 | 156 | 2252800 | ||
99212695 | Death_17 | D | Nov. 22, 2020, 3:54 a.m. | OK | PyPy 3 | TESTS | 68 | 171 | 1945600 | ||
99214656 | sh1194 | D | Nov. 22, 2020, 4:30 a.m. | OK | Python 3 | TESTS | 68 | 109 | 0 | ||
99201965 | borgib | D | Nov. 21, 2020, 9:39 p.m. | OK | Python 3 | TESTS | 68 | 109 | 307200 | ||
99186788 | ratavuli | D | Nov. 21, 2020, 4:45 p.m. | OK | Python 3 | TESTS | 68 | 124 | 0 | ||
99183674 | Berdsley | D | Nov. 21, 2020, 4:36 p.m. | OK | Python 3 | TESTS | 68 | 139 | 0 | ||
99198157 | sushanthsamala | D | Nov. 21, 2020, 8:11 p.m. | OK | Python 3 | TESTS | 68 | 140 | 409600 | ||
99189136 | divrthor345 | D | Nov. 21, 2020, 4:49 p.m. | OK | Python 3 | TESTS | 68 | 155 | 0 | ||
99188049 | ChristianHou | D | Nov. 21, 2020, 4:48 p.m. | OK | Python 3 | TESTS | 68 | 155 | 0 | ||
99184973 | swagsy2000 | D | Nov. 21, 2020, 4:40 p.m. | OK | Python 3 | TESTS | 68 | 155 | 307200 | ||
99187649 | abhishekk_7 | D | Nov. 21, 2020, 4:47 p.m. | OK | Python 3 | TESTS | 68 | 156 | 409600 | ||
99184475 | kalandar | D | Nov. 21, 2020, 4:39 p.m. | OK | Python 3 | TESTS | 68 | 171 | 0 |
Back to search problems