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 |
---|---|---|---|---|---|---|
1305 | Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated, T-shirts + prizes!) | FINISHED | False | 8100 | 154106711 | March 3, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 5087 ) | D | Kuroni and the Celebration | PROGRAMMING | constructive algorithms dfs and similar graphs interactive trees | 1900 |
B'This is an interactive problem. After getting AC after 13 Time Limit Exceeded verdicts on a geometry problem, Kuroni went to an Italian restaurant to celebrate this holy achievement. Unfortunately, the excess sauce disoriented him, and he 's now lost! The United States of America can be modeled as a tree (why though) with n vertices. The tree is rooted at vertex r , wherein lies Kuroni 's hotel. Kuroni has a phone app designed to help him in such emergency cases. To use the app, he has to input two vertices u and v , and it 'll return a vertex w , which is the lowest common ancestor of those two vertices. However, since the phone 's battery has been almost drained out from live-streaming Kuroni 's celebration party, he could only use the app at most lfloor frac{n}{2} rfloor times. After that, the phone would die and there will be nothing left to help our dear friend! :( As the night is cold and dark, Kuroni needs to get back, so that he can reunite with his comfy bed and pillow(s). Can you help him figure out his hotel 's location? The interaction starts with reading a single integer n ( 2 <= n <= 1000 ), the number of vertices of the tree. Then you will read n-1 lines, the i -th of them has two integers x_i and y_i ( 1 <= x_i, y_i <= n , x_i ne y_i ), denoting there is an edge connecting vertices x_i and y_i . It is guaranteed that the edges will form a tree. Then you can make queries of type "? u v" ( 1 <= u, v <= n ) to find the lowest common ancestor of vertex u and v . After the query, read the result w as an integer. In case your query is invalid or you asked more than lfloor frac{n}{2} rfloor queries, the program will print -1 and will finish interaction. You will receive a Wrong answer verdict. Make sure to exit immediately to avoid getting other verdicts. When you find out the vertex r , print "! r " and quit afte'... |
Ozon Tech Challenge 2020 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
72392505 | despair | D | March 4, 2020, 6:39 a.m. | OK | Clang++17 Diagnostics | TESTS | 251 | 139 | 7782400 | 1900 | |
72331633 | hos.lyric | D | March 3, 2020, 3:25 p.m. | OK | D | TESTS | 150 | 46 | 4198400 | 1900 | |
72333559 | Gassa | D | March 3, 2020, 3:31 p.m. | OK | D | TESTS | 150 | 46 | 4403200 | 1900 | |
72345628 | avm | D | March 3, 2020, 4:12 p.m. | OK | D | TESTS | 150 | 46 | 4403200 | 1900 | |
72328511 | physics0523 | D | March 3, 2020, 3:15 p.m. | OK | GNU C11 | TESTS | 150 | 61 | 37785600 | 1900 | |
72339095 | pengin_2000 | D | March 3, 2020, 3:49 p.m. | OK | GNU C11 | TESTS | 150 | 78 | 0 | 1900 | |
72479269 | jiaangk_ | D | March 5, 2020, 12:51 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72387022 | _Limuloo | D | March 4, 2020, 4:30 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72386423 | Qza_AC | D | March 4, 2020, 4:12 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72385931 | hzk_cpp | D | March 4, 2020, 3:56 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72385142 | woshiluo | D | March 4, 2020, 3:35 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72381190 | hnust_zhangpeng | D | March 4, 2020, 1:33 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72559621 | LinkinPony | D | March 6, 2020, 8:14 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72485251 | mqd | D | March 5, 2020, 4:15 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72608012 | ZYehia | D | March 7, 2020, 12:10 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72545436 | TYGZ | D | March 6, 2020, 1:08 a.m. | OK | GNU C++11 | TESTS | 251 | 31 | 0 | 1900 | |
72404640 | vjudge2 | D | March 4, 2020, 10:17 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 0 | 1900 | |
72385315 | vjudge5 | D | March 4, 2020, 3:39 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 102400 | 1900 | |
72449524 | Vitaha | D | March 4, 2020, 3:55 p.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72563075 | luogu_bot3 | D | March 6, 2020, 9:29 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72562837 | _HonEy | D | March 6, 2020, 9:25 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72562762 | ReSi | D | March 6, 2020, 9:23 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72507226 | Bondo | D | March 5, 2020, 11:38 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72478980 | rounak_0501 | D | March 5, 2020, 12:39 a.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72418525 | goatzyq | D | March 4, 2020, 1:51 p.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72411596 | yingying | D | March 4, 2020, 12:16 p.m. | OK | GNU C++14 | TESTS | 251 | 31 | 204800 | 1900 | |
72390876 | tpaaaa | D | March 4, 2020, 6:08 a.m. | OK | GNU C++17 | TESTS | 251 | 31 | 0 | 1900 | |
72574862 | sushkov.pv | D | March 6, 2020, 1:06 p.m. | OK | GNU C++17 | TESTS | 251 | 31 | 0 | 1900 | |
72349587 | liyunfan1223 | D | March 3, 2020, 4:26 p.m. | OK | GNU C++17 | TESTS | 150 | 31 | 102400 | 1900 | |
72386397 | vjudge4 | D | March 4, 2020, 4:11 a.m. | OK | GNU C++17 | TESTS | 251 | 31 | 102400 | 1900 | |
72485869 | kayiko | D | March 5, 2020, 4:35 a.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72470759 | Ignatos | D | March 4, 2020, 8:10 p.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72419745 | low_kii_savage | D | March 4, 2020, 2:07 p.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72528253 | Inuyashaaaa_ | D | March 5, 2020, 5:01 p.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72523046 | nonstopfor | D | March 5, 2020, 3:35 p.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72490792 | GioChkhaidze | D | March 5, 2020, 6:36 a.m. | OK | GNU C++17 | TESTS | 251 | 31 | 204800 | 1900 | |
72363841 | Jughead | D | March 3, 2020, 6:40 p.m. | OK | Go | TESTS | 150 | 46 | 0 | 1900 | |
72365296 | synapse | D | March 3, 2020, 6:57 p.m. | OK | Go | TESTS | 151 | 62 | 5324800 | 1900 | |
72365047 | synapse | D | March 3, 2020, 6:54 p.m. | OK | Go | TESTS | 151 | 62 | 5324800 | 1900 | |
72364487 | synapse | D | March 3, 2020, 6:47 p.m. | OK | Go | TESTS | 151 | 77 | 5324800 | 1900 | |
72342641 | synapse | D | March 3, 2020, 4:02 p.m. | OK | Go | TESTS | 150 | 77 | 5324800 | 1900 | |
72387821 | j31d0 | D | March 4, 2020, 4:53 a.m. | OK | Haskell | TESTS | 251 | 93 | 102400 | 1900 | |
72398221 | Azakarka | D | March 4, 2020, 8:30 a.m. | OK | Java 11 | TESTS | 251 | 264 | 0 | 1900 | |
72365983 | jenish9599 | D | March 3, 2020, 7:08 p.m. | OK | Java 11 | TESTS | 200 | 265 | 0 | 1900 | |
72330454 | mikit | D | March 3, 2020, 3:21 p.m. | OK | Java 11 | TESTS | 150 | 280 | 0 | 1900 | |
72382002 | rs9 | D | March 4, 2020, 2 a.m. | OK | Java 11 | TESTS | 251 | 280 | 204800 | 1900 | |
72376391 | pikapika00 | D | March 3, 2020, 10:05 p.m. | OK | Java 11 | TESTS | 251 | 280 | 204800 | 1900 | |
72345284 | Dukkha | D | March 3, 2020, 4:11 p.m. | OK | Java 11 | TESTS | 150 | 296 | 204800 | 1900 | |
72352507 | ZeyadKhattab | D | March 3, 2020, 4:36 p.m. | OK | Java 11 | TESTS | 150 | 311 | 0 | 1900 | |
72329645 | Suzukaze | D | March 3, 2020, 3:18 p.m. | OK | Java 11 | TESTS | 150 | 311 | 0 | 1900 | |
72341765 | alexyz | D | March 3, 2020, 3:58 p.m. | OK | Java 11 | TESTS | 150 | 327 | 0 | 1900 | |
72332656 | I_Am_Anderson_Phan | D | March 3, 2020, 3:28 p.m. | OK | Java 11 | TESTS | 150 | 327 | 0 | 1900 | |
72365058 | BNL | D | March 3, 2020, 6:54 p.m. | OK | Java 8 | TESTS | 151 | 139 | 0 | 1900 | |
72494009 | kusomushi | D | March 5, 2020, 7:47 a.m. | OK | Java 8 | TESTS | 251 | 155 | 0 | 1900 | |
72542046 | bluesky111 | D | March 5, 2020, 10:17 p.m. | OK | Java 8 | TESTS | 251 | 170 | 0 | 1900 | |
72366158 | 1u_my_light | D | March 3, 2020, 7:10 p.m. | OK | Java 8 | TESTS | 200 | 170 | 0 | 1900 | |
72366855 | kostasanemozalis | D | March 3, 2020, 7:21 p.m. | OK | Java 8 | TESTS | 201 | 171 | 0 | 1900 | |
72551527 | lzhang | D | March 6, 2020, 5:01 a.m. | OK | Java 8 | TESTS | 251 | 171 | 0 | 1900 | |
72361139 | KharYusuf | D | March 3, 2020, 6:16 p.m. | OK | Java 8 | TESTS | 150 | 171 | 0 | 1900 | |
72349262 | rohan03 | D | March 3, 2020, 4:25 p.m. | OK | Java 8 | TESTS | 150 | 171 | 0 | 1900 | |
72330591 | AnandOza | D | March 3, 2020, 3:21 p.m. | OK | Java 8 | TESTS | 150 | 171 | 0 | 1900 | |
72571690 | aman28rwt | D | March 6, 2020, 12:15 p.m. | OK | Java 8 | TESTS | 251 | 186 | 0 | 1900 | |
72395996 | Spheniscine | D | March 4, 2020, 7:47 a.m. | OK | Kotlin | TESTS | 251 | 187 | 0 | 1900 | |
72395555 | Spheniscine | D | March 4, 2020, 7:37 a.m. | OK | Kotlin | TESTS | 251 | 202 | 0 | 1900 | |
72349592 | Denzed | D | March 3, 2020, 4:26 p.m. | OK | Kotlin | TESTS | 150 | 202 | 204800 | 1900 | |
72329966 | Tlatoani | D | March 3, 2020, 3:19 p.m. | OK | Kotlin | TESTS | 150 | 202 | 204800 | 1900 | |
72352178 | yakamoto | D | March 3, 2020, 4:35 p.m. | OK | Kotlin | TESTS | 150 | 202 | 716800 | 1900 | |
72361017 | SlavaG | D | March 3, 2020, 6:16 p.m. | OK | Kotlin | TESTS | 150 | 218 | 0 | 1900 | |
72380227 | strelas | D | March 4, 2020, 12:57 a.m. | OK | Kotlin | TESTS | 251 | 218 | 1126400 | 1900 | |
72330885 | knightL | D | March 3, 2020, 3:22 p.m. | OK | Kotlin | TESTS | 150 | 249 | 204800 | 1900 | |
72417282 | songsinger | D | March 4, 2020, 1:34 p.m. | OK | Kotlin | TESTS | 251 | 280 | 1536000 | 1900 | |
72354309 | ostroumov | D | March 3, 2020, 4:42 p.m. | OK | Kotlin | TESTS | 150 | 296 | 0 | 1900 | |
72331964 | eulerscheZahl | D | March 3, 2020, 3:26 p.m. | OK | Mono C# | TESTS | 150 | 140 | 6860800 | 1900 | |
72349714 | plasma-effect | D | March 3, 2020, 4:27 p.m. | OK | Mono C# | TESTS | 150 | 171 | 15564800 | 1900 | |
72338279 | Yupiteru | D | March 3, 2020, 3:47 p.m. | OK | Mono C# | TESTS | 150 | 358 | 141619200 | 1900 | |
72354435 | Hello_World3 | D | March 3, 2020, 4:42 p.m. | OK | MS C++ | TESTS | 150 | 46 | 102400 | 1900 | |
72344394 | tarattata1 | D | March 3, 2020, 4:08 p.m. | OK | MS C++ | TESTS | 150 | 61 | 204800 | 1900 | |
72357959 | Gevorg_Boyakhchyan2004 | D | March 3, 2020, 4:49 p.m. | OK | MS C++ 2017 | TESTS | 150 | 46 | 0 | 1900 | |
72351075 | BpeMeHHa91_TryDHocTb | D | March 3, 2020, 4:32 p.m. | OK | MS C++ 2017 | TESTS | 150 | 46 | 307200 | 1900 | |
72343140 | Juney | D | March 3, 2020, 4:03 p.m. | OK | MS C++ 2017 | TESTS | 150 | 46 | 307200 | 1900 | |
72563915 | 2018qwer | D | March 6, 2020, 9:46 a.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 307200 | 1900 | |
72404817 | 12snoopy34 | D | March 4, 2020, 10:20 a.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 307200 | 1900 | |
72402135 | lonely_moon | D | March 4, 2020, 9:35 a.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 307200 | 1900 | |
72370357 | bunos | D | March 3, 2020, 8:24 p.m. | OK | MS C++ 2017 | TESTS | 201 | 46 | 409600 | 1900 | |
72387290 | suun | D | March 4, 2020, 4:37 a.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 409600 | 1900 | |
72387305 | suun | D | March 4, 2020, 4:38 a.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 409600 | 1900 | |
72585855 | PrideBlack | D | March 6, 2020, 3:57 p.m. | OK | MS C++ 2017 | TESTS | 251 | 46 | 409600 | 1900 | |
72366106 | alexwice | D | March 3, 2020, 7:10 p.m. | OK | PyPy 2 | TESTS | 200 | 202 | 67993600 | 1900 | |
72344545 | astrom.lars | D | March 3, 2020, 4:08 p.m. | OK | PyPy 2 | TESTS | 150 | 217 | 3174400 | 1900 | |
72367226 | ori.convert.torus | D | March 3, 2020, 7:27 p.m. | OK | PyPy 3 | TESTS | 201 | 217 | 3584000 | 1900 | |
72556235 | sairam1298 | D | March 6, 2020, 6:53 a.m. | OK | PyPy 3 | TESTS | 251 | 217 | 5120000 | 1900 | |
72368764 | cho12 | D | March 3, 2020, 7:53 p.m. | OK | PyPy 3 | TESTS | 201 | 218 | 2560000 | 1900 | |
72367175 | ori.convert.torus | D | March 3, 2020, 7:26 p.m. | OK | PyPy 3 | TESTS | 201 | 218 | 3584000 | 1900 | |
72343369 | addammy | D | March 3, 2020, 4:04 p.m. | OK | PyPy 3 | TESTS | 150 | 233 | 2662400 | 1900 | |
72363424 | CKP_ | D | March 3, 2020, 6:35 p.m. | OK | PyPy 3 | TESTS | 150 | 233 | 4198400 | 1900 | |
72371563 | enraged | D | March 3, 2020, 8:50 p.m. | OK | PyPy 3 | TESTS | 201 | 264 | 2560000 | 1900 | |
72354197 | auouo | D | March 3, 2020, 4:41 p.m. | OK | PyPy 3 | TESTS | 150 | 264 | 3891200 | 1900 | |
72345396 | danchu | D | March 3, 2020, 4:11 p.m. | OK | PyPy 3 | TESTS | 150 | 264 | 5017600 | 1900 | |
72334174 | Jorke | D | March 3, 2020, 3:33 p.m. | OK | PyPy 3 | TESTS | 150 | 264 | 8601600 | 1900 | |
72365485 | Akikaze | D | March 3, 2020, 7 p.m. | OK | Python 3 | TESTS | 179 | 124 | 614400 | 1900 | |
72348719 | LightWant | D | March 3, 2020, 4:23 p.m. | OK | Python 3 | TESTS | 150 | 155 | 512000 | 1900 | |
72398389 | m80126colin | D | March 4, 2020, 8:33 a.m. | OK | Python 3 | TESTS | 251 | 156 | 921600 | 1900 | |
72347417 | Shee11 | D | March 3, 2020, 4:19 p.m. | OK | Python 3 | TESTS | 150 | 156 | 921600 | 1900 | |
72329317 | Kiri8128 | D | March 3, 2020, 3:18 p.m. | OK | Python 3 | TESTS | 150 | 171 | 512000 | 1900 | |
72583088 | artworks | D | March 6, 2020, 3:12 p.m. | OK | Python 3 | TESTS | 251 | 171 | 716800 | 1900 | |
72397480 | m80126colin | D | March 4, 2020, 8:16 a.m. | OK | Python 3 | TESTS | 251 | 171 | 1126400 | 1900 | |
72362229 | kabeer27 | D | March 3, 2020, 6:24 p.m. | OK | Python 3 | TESTS | 150 | 186 | 716800 | 1900 | |
72362457 | patahene | D | March 3, 2020, 6:26 p.m. | OK | Python 3 | TESTS | 150 | 186 | 1228800 | 1900 | |
72347090 | spOoky | D | March 3, 2020, 4:17 p.m. | OK | Python 3 | TESTS | 150 | 187 | 614400 | 1900 | |
72399444 | simanman | D | March 4, 2020, 8:51 a.m. | OK | Ruby | TESTS | 251 | 140 | 2048000 | 1900 | |
72493717 | cotton100pc | D | March 5, 2020, 7:40 a.m. | OK | Rust | TESTS | 251 | 46 | 204800 | 1900 | |
72329262 | sansen | D | March 3, 2020, 3:17 p.m. | OK | Rust | TESTS | 150 | 77 | 307200 | 1900 | |
72394981 | kushwaha_vi | D | March 4, 2020, 7:25 a.m. | OK | Scala | TESTS | 251 | 514 | 0 | 1900 | |
72385933 | j31d0 | D | March 4, 2020, 3:56 a.m. | OK | Scala | TESTS | 251 | 732 | 102400 | 1900 |
Back to search problems