Codeforces Round 499 (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
1010 Codeforces Round 499 (Div. 1) FINISHED False 7200 204908123 July 26, 2018, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5260 ) B Rocket PROGRAMMING binary search interactive 1800

B"This is an interactive problem. Natasha is going to fly to Mars. Finally, Natasha sat in the rocket. She flies, flies... but gets bored. She wishes to arrive to Mars already! So she decides to find something to occupy herself. She couldn't think of anything better to do than to calculate the distance to the red planet. Let's define x as the distance to Mars. Unfortunately, Natasha does not know x . But it is known that 1 <= x <= m , where Natasha knows the number m . Besides, x and m are positive integers. Natasha can ask the rocket questions. Every question is an integer y ( 1 <= y <= m ). The correct answer to the question is -1 , if x<y , 0 , if x=y , and 1 , if x>y . But the rocket is broken -- it does not always answer correctly. Precisely: let the correct answer to the current question be equal to t , then, if the rocket answers this question correctly, then it will answer t , otherwise it will answer -t . In addition, the rocket has a sequence p of length n . Each element of the sequence is either 0 or 1 . The rocket processes this sequence in the cyclic order, that is 1 -st element, 2 -nd, 3 -rd, ldots , (n-1) -th, n -th, 1 -st, 2 -nd, 3 -rd, ldots , (n-1) -th, n -th, ldots . If the current element is 1 , the rocket answers correctly, if 0 -- lies. Natasha doesn't know the sequence p , but she knows its length -- n . You can ask the rocket no more than 60 questions. Help Natasha find the distance to Mars. Assume, that the distance to Mars does not change while Natasha is asking questions. Your solution will not be accepted, if it does not receive an answer 0 from the rocket (even if the distance to Mars is uniquely determined by the already received rocket's answers). The first line contains two integers m and n ( 1 "...

Tutorials

60851

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40790794 fluffyowl B July 26, 2018, 3:33 p.m. OK D TESTS 134 46 0 1800
40788599 Gassa B July 26, 2018, 3:25 p.m. OK D TESTS 134 46 0 1800
40809879 smallest_ling B July 26, 2018, 4:58 p.m. OK GNU C++ TESTS 134 31 0 1800
40806196 fksquare B July 26, 2018, 4:40 p.m. OK GNU C++ TESTS 134 31 0 1800
40805621 wwwxxxddd B July 26, 2018, 4:37 p.m. OK GNU C++ TESTS 134 31 0 1800
40804437 yuyinohama B July 26, 2018, 4:31 p.m. OK GNU C++ TESTS 134 31 0 1800
40802218 Lich_King B July 26, 2018, 4:21 p.m. OK GNU C++ TESTS 134 31 0 1800
40799836 LargeDumpling B July 26, 2018, 4:09 p.m. OK GNU C++ TESTS 134 31 0 1800
40799776 __W__ B July 26, 2018, 4:09 p.m. OK GNU C++ TESTS 134 31 0 1800
40797303 Tima B July 26, 2018, 3:58 p.m. OK GNU C++ TESTS 134 31 0 1800
40797113 Hydrangeas B July 26, 2018, 3:57 p.m. OK GNU C++ TESTS 134 31 0 1800
40796391 yts1999 B July 26, 2018, 3:54 p.m. OK GNU C++ TESTS 134 31 0 1800
40811070 Stelutzu B July 26, 2018, 5:02 p.m. OK GNU C++11 TESTS 134 31 0 1800
40809688 lucasturci B July 26, 2018, 4:57 p.m. OK GNU C++11 TESTS 134 31 0 1800
40809083 GoForIt B July 26, 2018, 4:54 p.m. OK GNU C++11 TESTS 134 31 0 1800
40805904 cb_Adam B July 26, 2018, 4:39 p.m. OK GNU C++11 TESTS 134 31 0 1800
40805597 arshad2117 B July 26, 2018, 4:37 p.m. OK GNU C++11 TESTS 134 31 0 1800
40805158 FizzyDavicl B July 26, 2018, 4:35 p.m. OK GNU C++11 TESTS 134 31 0 1800
40805030 mouse_wireless B July 26, 2018, 4:34 p.m. OK GNU C++11 TESTS 134 31 0 1800
40803687 zx2003 B July 26, 2018, 4:28 p.m. OK GNU C++11 TESTS 134 31 0 1800
40802585 sas4eka B July 26, 2018, 4:22 p.m. OK GNU C++11 TESTS 134 31 0 1800
40802553 architkarandikar B July 26, 2018, 4:22 p.m. OK GNU C++11 TESTS 134 31 0 1800
40811251 ATS B July 26, 2018, 5:03 p.m. OK GNU C++14 TESTS 134 31 0 1800
40811002 DeshiBasara B July 26, 2018, 5:02 p.m. OK GNU C++14 TESTS 134 31 0 1800
40810965 sulfuric B July 26, 2018, 5:02 p.m. OK GNU C++14 TESTS 134 31 0 1800
40810688 yusufsholeh B July 26, 2018, 5:01 p.m. OK GNU C++14 TESTS 134 31 0 1800
40810467 solaimanope B July 26, 2018, 5 p.m. OK GNU C++14 TESTS 134 31 0 1800
40810379 siddharthnohria B July 26, 2018, 5 p.m. OK GNU C++14 TESTS 134 31 0 1800
40810162 KevinWan B July 26, 2018, 4:59 p.m. OK GNU C++14 TESTS 134 31 0 1800
40809676 Hyperbolic B July 26, 2018, 4:57 p.m. OK GNU C++14 TESTS 134 31 0 1800
40808040 leaf1415 B July 26, 2018, 4:49 p.m. OK GNU C++14 TESTS 134 31 0 1800
40807787 minfe B July 26, 2018, 4:48 p.m. OK GNU C++14 TESTS 134 31 0 1800
40809121 smartnj B July 26, 2018, 4:54 p.m. OK GNU C++17 TESTS 134 31 0 1800
40806318 vanvector B July 26, 2018, 4:41 p.m. OK GNU C++17 TESTS 134 31 0 1800
40805602 Perfectxx B July 26, 2018, 4:37 p.m. OK GNU C++17 TESTS 134 31 0 1800
40804941 nishank.suresh B July 26, 2018, 4:34 p.m. OK GNU C++17 TESTS 134 31 0 1800
40804667 Jaihk662 B July 26, 2018, 4:33 p.m. OK GNU C++17 TESTS 134 31 0 1800
40804463 Makcum888 B July 26, 2018, 4:32 p.m. OK GNU C++17 TESTS 134 31 0 1800
40803208 abc473848880 B July 26, 2018, 4:25 p.m. OK GNU C++17 TESTS 134 31 0 1800
40802997 re_eVVorld B July 26, 2018, 4:24 p.m. OK GNU C++17 TESTS 134 31 0 1800
40802746 GStnt B July 26, 2018, 4:23 p.m. OK GNU C++17 TESTS 134 31 0 1800
40802417 ganbaranai B July 26, 2018, 4:22 p.m. OK GNU C++17 TESTS 134 31 0 1800
40793899 aabdelzaher B July 26, 2018, 3:44 p.m. OK Java 8 TESTS 134 140 0 1800
40793641 sirknightingfail B July 26, 2018, 3:43 p.m. OK Java 8 TESTS 134 140 0 1800
40790261 Harpae B July 26, 2018, 3:31 p.m. OK Java 8 TESTS 134 140 0 1800
40786816 Petr B July 26, 2018, 3:20 p.m. OK Java 8 TESTS 134 140 0 1800
40809078 Kharouba B July 26, 2018, 4:54 p.m. OK Java 8 TESTS 134 155 0 1800
40801647 fetetriste B July 26, 2018, 4:18 p.m. OK Java 8 TESTS 134 155 0 1800
40798341 kessido B July 26, 2018, 4:02 p.m. OK Java 8 TESTS 134 155 0 1800
40791494 AkshajK B July 26, 2018, 3:35 p.m. OK Java 8 TESTS 134 155 0 1800
40790097 Lewin B July 26, 2018, 3:30 p.m. OK Java 8 TESTS 134 155 0 1800
40789719 TheColemanClassic B July 26, 2018, 3:29 p.m. OK Java 8 TESTS 134 155 0 1800
40795898 witua B July 26, 2018, 3:52 p.m. OK MS C++ TESTS 134 31 819200 1800
40791141 lxn B July 26, 2018, 3:34 p.m. OK MS C++ TESTS 134 46 0 1800
40789583 almogwald B July 26, 2018, 3:29 p.m. OK MS C++ TESTS 134 46 0 1800
40793452 MathisHammel B July 26, 2018, 3:42 p.m. OK PyPy 2 TESTS 134 156 0 1800
40794922 WNG B July 26, 2018, 3:48 p.m. OK Python 2 TESTS 134 187 0 1800
40794376 darkkcyan B July 26, 2018, 3:46 p.m. OK Python 2 TESTS 134 187 0 1800
40790165 .o. B July 26, 2018, 3:31 p.m. OK Python 3 TESTS 134 124 0 1800
40792955 kimiyuki B July 26, 2018, 3:41 p.m. OK Python 3 TESTS 134 140 0 1800

remove filters

Back to search problems