Codeforces Round 700 (Div. 1)

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
1479 Codeforces Round 700 (Div. 1) FINISHED False 8100 124557862 Feb. 7, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12032 ) A Searching Local Minimum PROGRAMMING binary search interactive ternary search

B'This is an interactive problem. Homer likes arrays a lot and he wants to play a game with you. Homer has hidden from you a permutation a_1, a_2, ... , a_n of integers 1 to n . You are asked to find any index k ( 1 <= q k <= q n ) which is a local minimum. For an array a_1, a_2, ... , a_n , an index i ( 1 <= q i <= q n ) is said to be a local minimum if a_i < min {a_{i-1},a_{i+1} } , where a_0 = a_{n+1} = + infty . An array is said to be a permutation of integers 1 to n , if it contains all integers from 1 to n exactly once. Initially, you are only given the value of n without any other information about this permutation. At each interactive step, you are allowed to choose any i ( 1 <= q i <= q n ) and make a query with it. As a response, you will be given the value of a_i . You are asked to find any index k which is a local minimum after at most 100 queries. You begin the interaction by reading an integer n ( 1 <= n <= 10^5 ) on a separate line. To make a query on index i ( 1 <= q i <= q n ), you should output "? i " in a separate line. Then read the value of a_i in a separate line. The number of the "?" queries is limited within 100 . When you find an index k ( 1 <= q k <= q n ) which is a local minimum, output "! k " in a separate line and terminate your program. In case your query format is invalid, or you have made more than 100 "?" queries, you will receive Wrong Answer verdict. After printing a query do not forget to output end of line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use: Hack Format The first line of the hack should contain a single integer n ( 1 <= q n <= q 10^5 ). The second line should contain n distinct integers a_1, a_2, ... , a_n ( 1 <= q a_i <= q n ). In the example, the first line contains an i'...

Tutorials

Editorial of Codeforces Round #700

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
106813864 hos.lyric A Feb. 7, 2021, 4 p.m. OK D TESTS 58 46 4198400
106783972 Gassa A Feb. 7, 2021, 3:16 p.m. OK D TESTS 58 46 4198400
106749820 duality A Feb. 7, 2021, 2:36 p.m. OK GNU C++11 TESTS 58 15 0
106766311 Sdchr A Feb. 7, 2021, 2:53 p.m. OK GNU C++11 TESTS 58 15 409600
106800385 Hoshimi A Feb. 7, 2021, 3:39 p.m. OK GNU C++11 TESTS 58 30 0
106774579 Komershan A Feb. 7, 2021, 3:04 p.m. OK GNU C++11 TESTS 58 30 0
106772646 xwoqlk A Feb. 7, 2021, 3:01 p.m. OK GNU C++11 TESTS 58 30 0
106758885 ix35 A Feb. 7, 2021, 2:44 p.m. OK GNU C++11 TESTS 58 30 0
106760274 ol1v3r A Feb. 7, 2021, 2:46 p.m. OK GNU C++11 TESTS 58 30 0
106758813 Crabby_Maskiv A Feb. 7, 2021, 2:44 p.m. OK GNU C++11 TESTS 58 30 0
106863794 Maki_Nishikino_ A Feb. 8, 2021, 1:34 a.m. OK GNU C++11 TESTS 61 30 0
106812280 Clix A Feb. 7, 2021, 3:58 p.m. OK GNU C++11 TESTS 58 30 0
106851553 Ahmed- A Feb. 7, 2021, 7:33 p.m. OK GNU C++14 TESTS 60 30 0
106759875 naveenls A Feb. 7, 2021, 2:45 p.m. OK GNU C++14 TESTS 58 30 0
106865162 George1123 A Feb. 8, 2021, 2:16 a.m. OK GNU C++14 TESTS 64 30 0
106790514 H44 A Feb. 7, 2021, 3:26 p.m. OK GNU C++14 TESTS 58 30 0
106870401 parth_choksi A Feb. 8, 2021, 3:59 a.m. OK GNU C++14 TESTS 64 31 0
106865929 Plasmatic A Feb. 8, 2021, 2:33 a.m. OK GNU C++14 TESTS 64 31 0
106877819 akshatjai258 A Feb. 8, 2021, 5:48 a.m. OK GNU C++14 TESTS 64 31 0
106875153 Tushar08 A Feb. 8, 2021, 5:13 a.m. OK GNU C++14 TESTS 64 31 0
106871536 wenhao801 A Feb. 8, 2021, 4:19 a.m. OK GNU C++14 TESTS 64 31 0
106866854 Pankaj_Kumar1 A Feb. 8, 2021, 2:54 a.m. OK GNU C++14 TESTS 64 31 0
106796657 codelegend A Feb. 7, 2021, 3:34 p.m. OK GNU C++17 TESTS 58 30 0
106770246 YerzhanU A Feb. 7, 2021, 2:58 p.m. OK GNU C++17 TESTS 58 30 0
106851883 ixix A Feb. 7, 2021, 7:36 p.m. OK GNU C++17 TESTS 60 30 0
106799862 Verjok A Feb. 7, 2021, 3:39 p.m. OK GNU C++17 TESTS 58 30 0
106803472 AlanSkarica A Feb. 7, 2021, 3:44 p.m. OK GNU C++17 TESTS 58 30 409600
106762307 Sutaner A Feb. 7, 2021, 2:48 p.m. OK GNU C++17 TESTS 58 30 3174400
106763123 MVHE A Feb. 7, 2021, 2:49 p.m. OK GNU C++17 TESTS 58 30 3993600
106846055 kpw29 A Feb. 7, 2021, 6:47 p.m. OK GNU C++17 TESTS 58 30 7987200
106878463 ay_singh A Feb. 8, 2021, 5:57 a.m. OK GNU C++17 TESTS 64 31 0
106878314 thatsramen A Feb. 8, 2021, 5:54 a.m. OK GNU C++17 TESTS 64 31 0
106755900 Petr A Feb. 7, 2021, 2:41 p.m. OK GNU C++17 (64) TESTS 58 15 0
106765226 kevin A Feb. 7, 2021, 2:52 p.m. OK GNU C++17 (64) TESTS 58 30 0
106763848 12tqian A Feb. 7, 2021, 2:50 p.m. OK GNU C++17 (64) TESTS 58 30 0
106866538 haruki_K A Feb. 8, 2021, 2:47 a.m. OK GNU C++17 (64) TESTS 64 30 0
106864739 yuzhechuan A Feb. 8, 2021, 2:04 a.m. OK GNU C++17 (64) TESTS 62 30 0
106847763 tonegawa A Feb. 7, 2021, 6:56 p.m. OK GNU C++17 (64) TESTS 59 30 0
106832975 Quang A Feb. 7, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 58 30 0
106765176 qdd A Feb. 7, 2021, 2:52 p.m. OK GNU C++17 (64) TESTS 58 30 0
106857771 m.hasan01 A Feb. 7, 2021, 9:37 p.m. OK GNU C++17 (64) TESTS 60 30 409600
106853697 fakhoury A Feb. 7, 2021, 8:08 p.m. OK GNU C++17 (64) TESTS 60 30 409600
106757219 clyring A Feb. 7, 2021, 2:42 p.m. OK Haskell TESTS 58 31 1126400
106776103 saptarshi1729 A Feb. 7, 2021, 3:06 p.m. OK Java 11 TESTS 58 202 0
106763417 ASoboll A Feb. 7, 2021, 2:50 p.m. OK Java 11 TESTS 58 202 0
106762553 anhpp A Feb. 7, 2021, 2:49 p.m. OK Java 11 TESTS 58 202 0
106765851 sarthakmanna A Feb. 7, 2021, 2:53 p.m. OK Java 11 TESTS 58 202 614400
106877826 BiggEr. A Feb. 8, 2021, 5:48 a.m. OK Java 11 TESTS 64 217 204800
106772169 skittles1412 A Feb. 7, 2021, 3:01 p.m. OK Java 11 TESTS 58 218 0
106758531 uwi A Feb. 7, 2021, 2:44 p.m. OK Java 11 TESTS 58 218 0
106850125 Apfeloxid A Feb. 7, 2021, 7:15 p.m. OK Java 11 TESTS 60 218 0
106768008 nick_301 A Feb. 7, 2021, 2:55 p.m. OK Java 11 TESTS 58 233 204800
106766234 awesomelemonade A Feb. 7, 2021, 2:53 p.m. OK Java 8 TESTS 58 124 0
106761894 iakovlev.zakhar A Feb. 7, 2021, 2:48 p.m. OK Java 8 TESTS 58 124 0
106808456 YahiaSherif A Feb. 7, 2021, 3:52 p.m. OK Java 8 TESTS 58 124 0
106782094 shilov A Feb. 7, 2021, 3:14 p.m. OK Java 8 TESTS 58 124 0
106770807 hu_tao A Feb. 7, 2021, 2:59 p.m. OK Java 8 TESTS 58 124 0
106764487 golions A Feb. 7, 2021, 2:51 p.m. OK Java 8 TESTS 58 124 0
106780257 DarLam A Feb. 7, 2021, 3:11 p.m. OK Java 8 TESTS 58 140 0
106869888 InANutshell A Feb. 8, 2021, 3:50 a.m. OK Java 8 TESTS 64 140 0
106862300 liuhanguang A Feb. 8, 2021, 12:38 a.m. OK Java 8 TESTS 61 140 0
106846539 Snow A Feb. 7, 2021, 6:49 p.m. OK Java 8 TESTS 58 140 0
106864613 Spheniscine A Feb. 8, 2021, 2 a.m. OK Kotlin TESTS 62 124 0
106759903 Tlatoani A Feb. 7, 2021, 2:46 p.m. OK Kotlin TESTS 58 124 0
106875234 pallav12 A Feb. 8, 2021, 5:14 a.m. OK Kotlin TESTS 64 139 0
106862547 Spheniscine A Feb. 8, 2021, 12:49 a.m. OK Kotlin TESTS 61 155 0
106854333 DMN A Feb. 7, 2021, 8:19 p.m. OK Mono C# TESTS 60 77 202649600
106765508 terry_u16 A Feb. 7, 2021, 2:52 p.m. OK .NET Core C# TESTS 58 109 1945600
106767080 Arnyev A Feb. 7, 2021, 2:54 p.m. OK .NET Core C# TESTS 58 124 102400
106853570 Hexomiter A Feb. 7, 2021, 8:02 p.m. OK PyPy 3 TESTS 60 93 0
106762131 Kira_1234 A Feb. 7, 2021, 2:48 p.m. OK PyPy 3 TESTS 58 93 0
106784055 hir35 A Feb. 7, 2021, 3:16 p.m. OK PyPy 3 TESTS 58 93 409600
106772761 qwertz73355a A Feb. 7, 2021, 3:01 p.m. OK PyPy 3 TESTS 58 93 409600
106869638 tamato A Feb. 8, 2021, 3:45 a.m. OK PyPy 3 TESTS 64 108 0
106864001 Stephan A Feb. 8, 2021, 1:41 a.m. OK PyPy 3 TESTS 61 108 0
106788743 nimiranio A Feb. 7, 2021, 3:23 p.m. OK PyPy 3 TESTS 58 108 0
106763333 not_tehlka A Feb. 7, 2021, 2:50 p.m. OK PyPy 3 TESTS 58 108 102400
106788505 yuusanlondon A Feb. 7, 2021, 3:23 p.m. OK PyPy 3 TESTS 58 108 409600
106777794 titia A Feb. 7, 2021, 3:08 p.m. OK PyPy 3 TESTS 58 108 1228800
106815854 WNG A Feb. 7, 2021, 4:03 p.m. OK Python 3 TESTS 58 62 716800
106863717 mkawa2 A Feb. 8, 2021, 1:32 a.m. OK Python 3 TESTS 61 77 0
106866949 Pakhi2001 A Feb. 8, 2021, 2:56 a.m. OK Python 3 TESTS 64 77 307200
106771652 r57shell A Feb. 7, 2021, 3 p.m. OK Python 3 TESTS 58 77 307200
106767993 Kiri8128 A Feb. 7, 2021, 2:55 p.m. OK Python 3 TESTS 58 77 307200
106763335 sansen A Feb. 7, 2021, 2:50 p.m. OK Rust TESTS 58 31 0

remove filters

Back to search problems