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 |
---|---|---|---|---|---|---|
1634 | Codeforces Round 770 (Div. 2) | FINISHED | False | 9000 | 93021863 | Feb. 6, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4444 ) | D | Finding Zero | PROGRAMMING | constructive algorithms greedy interactive |
B'This is an interactive problem. We picked an array of whole numbers a_1, a_2, ldots, a_n ( 0 <= a_i <= 10^9 ) and concealed exactly one zero in it! Your goal is to find the location of this zero, that is, to find i such that a_i = 0 . You are allowed to make several queries to guess the answer. For each query, you can think up three distinct indices i, j, k , and we will tell you the value of max(a_i, a_j, a_k) - min(a_i, a_j, a_k) . In other words, we will tell you the difference between the maximum and the minimum number among a_i , a_j and a_k . You are allowed to make no more than 2 cdot n - 2 queries, and after that you have two tries to guess where the zero is. That is, you have to tell us two numbers i and j and you win if a_i = 0 or a_j = 0 . Can you guess where we hid the zero? Note that the array in each test case is fixed beforehand and will not change during the game. In other words, the interactor is not adaptive. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 500 ). Description of the test cases follows. The first and only line of each test case contains an integer n ( 4 <= n <= 1000 ) -- the length of the array that we picked. It is guaranteed that the sum of n over all test cases does not exceed 3000 . For each test case, the interaction starts with reading n . To make a query, print "? i j k " (without quotes, 1 <= i, j, k <= n , indices must be distinct). Then you should read our response from standard input, that is, max(a_i, a_j, a_k) - min(a_i, a_j, a_k) . If the response is -1 , it means your program has made an invalid query or has run out of tries. Your program must terminate immediately after reading -1 , and you will get a verdict Wrong answer. Otherwise you may get any verdict, because the program will continue r'... |
Codeforces Round #770 (Div. 2) editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
145493892 | donkeys | D | Feb. 7, 2022, 3:33 a.m. | OK | Clang++17 Diagnostics | TESTS | 73 | 140 | 1024000 | ||
145482234 | YOK | D | Feb. 6, 2022, 9:02 p.m. | OK | GNU C11 | TESTS | 73 | 77 | 0 | ||
145478029 | dean.menezes | D | Feb. 6, 2022, 7:29 p.m. | OK | GNU C11 | TESTS | 73 | 77 | 0 | ||
145471974 | 406 | D | Feb. 6, 2022, 6:10 p.m. | OK | GNU C11 | TESTS | 73 | 77 | 0 | ||
145493508 | winSeven_MrBB | D | Feb. 7, 2022, 3:25 a.m. | OK | GNU C++14 | TESTS | 73 | 62 | 0 | ||
145469693 | ahwhQZY20080812 | D | Feb. 6, 2022, 5:52 p.m. | OK | GNU C++14 | TESTS | 73 | 62 | 0 | ||
145464287 | JHN021 | D | Feb. 6, 2022, 5:01 p.m. | OK | GNU C++14 | TESTS | 72 | 62 | 0 | ||
145494022 | L_Wave | D | Feb. 7, 2022, 3:35 a.m. | OK | GNU C++14 | TESTS | 73 | 62 | 204800 | ||
145492391 | zhouxp | D | Feb. 7, 2022, 3:01 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145491299 | panhuachao | D | Feb. 7, 2022, 2:37 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145490206 | WHC-MIK-7521X | D | Feb. 7, 2022, 2:08 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145489452 | CCCCOrz | D | Feb. 7, 2022, 1:43 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145496218 | BEAR0131 | D | Feb. 7, 2022, 4:16 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145497318 | Kush.code | D | Feb. 7, 2022, 4:36 a.m. | OK | GNU C++14 | TESTS | 73 | 77 | 0 | ||
145481387 | fezjo | D | Feb. 6, 2022, 8:38 p.m. | OK | GNU C++17 | TESTS | 73 | 46 | 204800 | ||
145469663 | PotremZ | D | Feb. 6, 2022, 5:52 p.m. | OK | GNU C++17 | TESTS | 73 | 61 | 0 | ||
145485932 | DogAndCat | D | Feb. 6, 2022, 11:22 p.m. | OK | GNU C++17 | TESTS | 73 | 61 | 0 | ||
145497635 | dxt99 | D | Feb. 7, 2022, 4:41 a.m. | OK | GNU C++17 | TESTS | 73 | 61 | 102400 | ||
145475270 | rayhaneh-einollahi | D | Feb. 6, 2022, 6:47 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145473350 | qwerty2300730 | D | Feb. 6, 2022, 6:24 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145472589 | johnsmith0x3f | D | Feb. 6, 2022, 6:17 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145471690 | pizzaroot | D | Feb. 6, 2022, 6:08 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145478093 | liangdaye | D | Feb. 6, 2022, 7:30 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145475419 | ocarima | D | Feb. 6, 2022, 6:49 p.m. | OK | GNU C++17 | TESTS | 73 | 62 | 0 | ||
145487601 | ecnerwala | D | Feb. 7, 2022, 12:37 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 46 | 0 | ||
145460793 | Yajuu_Senpai | D | Feb. 6, 2022, 4:51 p.m. | OK | GNU C++17 (64) | TESTS | 72 | 46 | 0 | ||
145489491 | PigeonG | D | Feb. 7, 2022, 1:44 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145494084 | Hank2019 | D | Feb. 7, 2022, 3:36 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145492305 | RohitRKS | D | Feb. 7, 2022, 3 a.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145483145 | Parvej | D | Feb. 6, 2022, 9:30 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145476760 | harmlesshulk | D | Feb. 6, 2022, 7:08 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145476738 | Bit_Master_2205 | D | Feb. 6, 2022, 7:07 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145475808 | cjoa | D | Feb. 6, 2022, 6:54 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145469671 | ayush_raj.21 | D | Feb. 6, 2022, 5:52 p.m. | OK | GNU C++17 (64) | TESTS | 73 | 62 | 0 | ||
145494451 | dottle | D | Feb. 7, 2022, 3:43 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 46 | 0 | ||
145503205 | naviS1mple | D | Feb. 7, 2022, 6:01 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 61 | 0 | ||
145496937 | shivaram_22 | D | Feb. 7, 2022, 4:29 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145493474 | hotboy2703 | D | Feb. 7, 2022, 3:24 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145483334 | _SHADOW | D | Feb. 6, 2022, 9:37 p.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145475571 | bibikov1 | D | Feb. 6, 2022, 6:51 p.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145463654 | MrEssiorx | D | Feb. 6, 2022, 4:59 p.m. | OK | GNU C++20 (64) | TESTS | 72 | 62 | 0 | ||
145502658 | Continued_Story | D | Feb. 7, 2022, 5:55 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145499178 | Wfarhaan | D | Feb. 7, 2022, 5:05 a.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 0 | ||
145474064 | ItayOtto | D | Feb. 6, 2022, 6:32 p.m. | OK | GNU C++20 (64) | TESTS | 73 | 62 | 102400 | ||
145476345 | kamranm | D | Feb. 6, 2022, 7:01 p.m. | OK | Java 11 | TESTS | 73 | 436 | 0 | ||
145459088 | Long214 | D | Feb. 6, 2022, 4:46 p.m. | OK | Java 11 | TESTS | 72 | 452 | 0 | ||
145471179 | Longgggggggg | D | Feb. 6, 2022, 6:03 p.m. | OK | Java 11 | TESTS | 73 | 452 | 0 | ||
145492667 | NSU_Luminous | D | Feb. 7, 2022, 3:07 a.m. | OK | Java 11 | TESTS | 73 | 483 | 307200 | ||
145468414 | Nicolas125841 | D | Feb. 6, 2022, 5:46 p.m. | OK | Java 11 | TESTS | 72 | 499 | 0 | ||
145492647 | NSU_Luminous | D | Feb. 7, 2022, 3:06 a.m. | OK | Java 11 | TESTS | 73 | 499 | 307200 | ||
145457514 | umanggupta1975 | D | Feb. 6, 2022, 4:42 p.m. | OK | Java 11 | TESTS | 72 | 514 | 307200 | ||
145492557 | NSU_Luminous | D | Feb. 7, 2022, 3:04 a.m. | OK | Java 11 | TESTS | 73 | 530 | 102400 | ||
145502028 | ilasiawo | D | Feb. 7, 2022, 5:46 a.m. | OK | Java 11 | TESTS | 73 | 530 | 409600 | ||
145457604 | ssk4988 | D | Feb. 6, 2022, 4:42 p.m. | OK | Java 11 | TESTS | 72 | 545 | 0 | ||
145490767 | hiro116s | D | Feb. 7, 2022, 2:23 a.m. | OK | Java 8 | TESTS | 73 | 311 | 0 | ||
145473195 | UniversalAdmin | D | Feb. 6, 2022, 6:23 p.m. | OK | Java 8 | TESTS | 73 | 358 | 0 | ||
145469839 | TCchen | D | Feb. 6, 2022, 5:53 p.m. | OK | Java 8 | TESTS | 73 | 374 | 0 | ||
145463706 | AndreySiunov | D | Feb. 6, 2022, 4:59 p.m. | OK | Java 8 | TESTS | 72 | 374 | 0 | ||
145476297 | VishuTomar | D | Feb. 6, 2022, 7:01 p.m. | OK | Java 8 | TESTS | 73 | 389 | 0 | ||
145501269 | AS_1729 | D | Feb. 7, 2022, 5:35 a.m. | OK | Java 8 | TESTS | 73 | 389 | 38297600 | ||
145485175 | pepelats | D | Feb. 6, 2022, 10:49 p.m. | OK | Java 8 | TESTS | 73 | 451 | 0 | ||
145474773 | Mirali7 | D | Feb. 6, 2022, 6:40 p.m. | OK | MS C++ 2017 | TESTS | 73 | 93 | 0 | ||
145488374 | Tangerine | D | Feb. 7, 2022, 1:08 a.m. | OK | MS C++ 2017 | TESTS | 73 | 93 | 0 | ||
145470266 | gs13023 | D | Feb. 6, 2022, 5:56 p.m. | OK | MS C++ 2017 | TESTS | 73 | 93 | 0 | ||
145468393 | zhangpangpang | D | Feb. 6, 2022, 5:46 p.m. | OK | MS C++ 2017 | TESTS | 72 | 108 | 0 | ||
145474849 | psn2706 | D | Feb. 6, 2022, 6:41 p.m. | OK | MS C++ 2017 | TESTS | 73 | 108 | 204800 | ||
145462610 | fatant | D | Feb. 6, 2022, 4:56 p.m. | OK | MS C++ 2017 | TESTS | 72 | 109 | 0 | ||
145483268 | dominotim | D | Feb. 6, 2022, 9:35 p.m. | OK | MS C++ 2017 | TESTS | 73 | 109 | 0 | ||
145463549 | fatvlad_ | D | Feb. 6, 2022, 4:59 p.m. | OK | MS C++ 2017 | TESTS | 72 | 186 | 0 | ||
145461874 | Kukel_RoadToGrandmaster | D | Feb. 6, 2022, 4:54 p.m. | OK | .NET Core C# | TESTS | 72 | 202 | 5939200 | ||
145474940 | sushmanth.dampur8780 | D | Feb. 6, 2022, 6:43 p.m. | OK | PyPy 3 | TESTS | 73 | 358 | 5120000 | ||
145460704 | divrthor345 | D | Feb. 6, 2022, 4:51 p.m. | OK | PyPy 3 | TESTS | 72 | 358 | 7270400 | ||
145501344 | sadstone | D | Feb. 7, 2022, 5:37 a.m. | OK | PyPy 3 | TESTS | 73 | 373 | 5734400 | ||
145465489 | codicon | D | Feb. 6, 2022, 5:03 p.m. | OK | PyPy 3 | TESTS | 72 | 374 | 6758400 | ||
145469801 | Amiy_Tiwari | D | Feb. 6, 2022, 5:53 p.m. | OK | PyPy 3 | TESTS | 73 | 405 | 7168000 | ||
145484798 | jonathanmartins_devbr | D | Feb. 6, 2022, 10:35 p.m. | OK | PyPy 3 | TESTS | 73 | 420 | 7475200 | ||
145486160 | Usurper__ | D | Feb. 6, 2022, 11:31 p.m. | OK | PyPy 3 | TESTS | 73 | 436 | 7270400 | ||
145494713 | skhan_org | D | Feb. 7, 2022, 3:48 a.m. | OK | PyPy 3 | TESTS | 73 | 452 | 9728000 | ||
145461404 | tomu.hirata | D | Feb. 6, 2022, 4:53 p.m. | OK | PyPy 3 | TESTS | 72 | 467 | 7475200 | ||
145476460 | tan_delhi | D | Feb. 6, 2022, 7:03 p.m. | OK | PyPy 3 | TESTS | 73 | 467 | 9113600 | ||
145466032 | plevande | D | Feb. 6, 2022, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 72 | 343 | 5836800 | ||
145465563 | elqver | D | Feb. 6, 2022, 5:03 p.m. | OK | PyPy 3-64 | TESTS | 72 | 405 | 10854400 | ||
145465944 | InvalidSyntax | D | Feb. 6, 2022, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 72 | 436 | 9523200 | ||
145482010 | DBabichev | D | Feb. 6, 2022, 8:55 p.m. | OK | PyPy 3-64 | TESTS | 73 | 436 | 10752000 | ||
145468354 | DarkSparkle | D | Feb. 6, 2022, 5:46 p.m. | OK | PyPy 3-64 | TESTS | 72 | 451 | 10035200 | ||
145465134 | deutzia | D | Feb. 6, 2022, 5:02 p.m. | OK | PyPy 3-64 | TESTS | 72 | 451 | 10547200 | ||
145474050 | MrVroom999 | D | Feb. 6, 2022, 6:32 p.m. | OK | PyPy 3-64 | TESTS | 73 | 452 | 7987200 | ||
145472888 | oadey89 | D | Feb. 6, 2022, 6:20 p.m. | OK | PyPy 3-64 | TESTS | 73 | 468 | 13824000 | ||
145485865 | lydxlx | D | Feb. 6, 2022, 11:19 p.m. | OK | PyPy 3-64 | TESTS | 73 | 483 | 10547200 | ||
145461434 | return20071007 | D | Feb. 6, 2022, 4:53 p.m. | OK | PyPy 3-64 | TESTS | 72 | 514 | 10854400 | ||
145476119 | OLOGY | D | Feb. 6, 2022, 6:58 p.m. | OK | Python 2 | TESTS | 73 | 124 | 0 | ||
145478613 | OLOGY | D | Feb. 6, 2022, 7:39 p.m. | OK | Python 2 | TESTS | 73 | 140 | 0 | ||
145480545 | OLOGY | D | Feb. 6, 2022, 8:19 p.m. | OK | Python 2 | TESTS | 73 | 155 | 0 | ||
145474312 | OLOGY | D | Feb. 6, 2022, 6:35 p.m. | OK | Python 2 | TESTS | 73 | 156 | 0 | ||
145478953 | OLOGY | D | Feb. 6, 2022, 7:46 p.m. | OK | Python 2 | TESTS | 73 | 187 | 0 | ||
145474927 | primavera6 | D | Feb. 6, 2022, 6:42 p.m. | OK | Python 3 | TESTS | 73 | 202 | 204800 | ||
145478021 | primavera6 | D | Feb. 6, 2022, 7:29 p.m. | OK | Python 3 | TESTS | 73 | 217 | 204800 | ||
145473551 | aberent | D | Feb. 6, 2022, 6:26 p.m. | OK | Python 3 | TESTS | 73 | 234 | 204800 | ||
145457977 | qazz625 | D | Feb. 6, 2022, 4:43 p.m. | OK | Python 3 | TESTS | 72 | 249 | 204800 | ||
145469471 | Megatvini | D | Feb. 6, 2022, 5:51 p.m. | OK | Python 3 | TESTS | 73 | 264 | 204800 | ||
145494454 | ankan2526 | D | Feb. 7, 2022, 3:44 a.m. | OK | Python 3 | TESTS | 73 | 264 | 409600 | ||
145503170 | Convival | D | Feb. 7, 2022, 6:01 a.m. | OK | Python 3 | TESTS | 73 | 264 | 716800 | ||
145457432 | NecroSean38 | D | Feb. 6, 2022, 4:42 p.m. | OK | Python 3 | TESTS | 72 | 280 | 204800 | ||
145463717 | ostroumov | D | Feb. 6, 2022, 4:59 p.m. | OK | Python 3 | TESTS | 72 | 280 | 307200 | ||
145458044 | JaneKri | D | Feb. 6, 2022, 4:43 p.m. | OK | Python 3 | TESTS | 72 | 296 | 204800 | ||
145483260 | Mur | D | Feb. 6, 2022, 9:35 p.m. | OK | Ruby 3 | TESTS | 73 | 436 | 204800 | ||
145464915 | clause | D | Feb. 6, 2022, 5:02 p.m. | OK | Rust 2021 | TESTS | 72 | 139 | 0 | ||
145465620 | NewRustyCoder | D | Feb. 6, 2022, 5:03 p.m. | OK | Rust 2021 | TESTS | 72 | 140 | 307200 |
Back to search problems