Codeforces Round 643 (Div. 2)

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
1355 Codeforces Round 643 (Div. 2) FINISHED False 7200 147723911 May 16, 2020, 11:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 881 ) F Guess Divisors Count PROGRAMMING constructive algorithms interactive number theory 2600

B'This is an interactive problem. We have hidden an integer 1 <= X <= 10^{9} . You don 't have to guess this number. You have to find the number of divisors of this number, and you don 't even have to find the exact number: your answer will be considered correct if its absolute error is not greater than 7 or its relative error is not greater than 0.5 . More formally, let your answer be ans and the number of divisors of X be d , then your answer will be considered correct if at least one of the two following conditions is true: You can make at most 22 queries. One query consists of one integer 1 <= Q <= 10^{18} . In response, you will get gcd(X, Q) -- the greatest common divisor of X and Q . The number X is fixed before all queries. In other words, interactor is not adaptive. Let 's call the process of guessing the number of divisors of number X a game. In one test you will have to play T independent games, that is, guess the number of divisors T times for T independent values of X . The first line of input contains one integer T ( 1 <= T <= 100 ) -- the number of games. To make a query print a line "? Q" ( 1 <= Q <= 10^{18} ). After that read one integer gcd(X, Q) . You can make no more than 22 such queries during one game. If you are confident that you have figured out the number of divisors of X with enough precision, you can print your answer in "! ans" format. ans have to be an integer. If this was the last game, you have to terminate the program, otherwise you have to start the next game immediately. Note that the interactor doesn 't print anything in response to you printing answer. After printing a query do not forget to output end of line and flush the output. To do this, use: Hacks To hack, use the following format: The first line contains one integer T ( 1 <= T <= 100 ) -- the number of games. Each of '...

Tutorials

Codeforces Round #643 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
80429735 ruban F May 17, 2020, 4:04 a.m. OK Delphi TESTS 62 92 85504000 2600
80450556 frodakcin F May 17, 2020, 8:39 a.m. OK GNU C++11 TESTS 62 31 3686400 2600
80858752 msuwakow F May 21, 2020, 1:57 p.m. OK GNU C++11 TESTS 63 46 0 2600
80648798 msuwakow F May 19, 2020, 2:19 a.m. OK GNU C++11 TESTS 63 46 0 2600
80644748 hkxadpall F May 18, 2020, 11:48 p.m. OK GNU C++11 TESTS 63 46 0 2600
80644651 hkxadpall F May 18, 2020, 11:43 p.m. OK GNU C++11 TESTS 63 46 0 2600
80643562 vjudge2 F May 18, 2020, 10:57 p.m. OK GNU C++11 TESTS 63 46 0 2600
80643480 xiazixi F May 18, 2020, 10:54 p.m. OK GNU C++11 TESTS 63 46 0 2600
80752995 yao11617 F May 20, 2020, 8:12 a.m. OK GNU C++11 TESTS 63 46 102400 2600
81036388 Malomalomalomalo F May 23, 2020, 5:33 p.m. OK GNU C++11 TESTS 63 46 204800 2600
80865321 msuwakow F May 21, 2020, 3:10 p.m. OK GNU C++11 TESTS 63 46 307200 2600
80604889 bits_srin F May 18, 2020, 1:11 p.m. OK GNU C++14 TESTS 63 46 3891200 2600
80411052 platter F May 16, 2020, 7:39 p.m. OK GNU C++14 TESTS 62 46 4096000 2600
80399647 tuan2012 F May 16, 2020, 5:21 p.m. OK GNU C++14 TESTS 62 46 4198400 2600
80744665 Sen_no_yume F May 20, 2020, 6:03 a.m. OK GNU C++14 TESTS 63 61 0 2600
80547368 dlalswp25 F May 17, 2020, 6:39 p.m. OK GNU C++14 TESTS 62 61 3788800 2600
80820801 dantoh F May 21, 2020, 5 a.m. OK GNU C++14 TESTS 63 62 0 2600
80700361 xyjw F May 19, 2020, 2:55 p.m. OK GNU C++14 TESTS 63 62 0 2600
80654010 reborn.chris F May 19, 2020, 4:32 a.m. OK GNU C++14 TESTS 63 62 0 2600
80699389 xyjw F May 19, 2020, 2:45 p.m. OK GNU C++14 TESTS 63 62 204800 2600
80665678 Muhammad_Hokimiyon F May 19, 2020, 7:47 a.m. OK GNU C++14 TESTS 63 62 204800 2600
81389071 antony191 F May 25, 2020, 1:49 p.m. OK GNU C++17 TESTS 63 46 409600 2600
80826086 out111 F May 21, 2020, 6:38 a.m. OK GNU C++17 TESTS 63 46 409600 2600
80820961 StarInShadow F May 21, 2020, 5:04 a.m. OK GNU C++17 TESTS 63 46 409600 2600
80933635 generic_placeholder_name F May 22, 2020, 12:30 p.m. OK GNU C++17 TESTS 63 46 1331200 2600
80618439 Mucosolvan F May 18, 2020, 3:41 p.m. OK GNU C++17 TESTS 63 46 3891200 2600
80589289 leoyang F May 18, 2020, 9:55 a.m. OK GNU C++17 TESTS 63 46 3891200 2600
80539073 Mr.Robot_28 F May 17, 2020, 4:37 p.m. OK GNU C++17 TESTS 62 46 3891200 2600
80523551 vipjml F May 17, 2020, 1:26 p.m. OK GNU C++17 TESTS 62 46 3891200 2600
80402307 BENYAM1N F May 16, 2020, 5:51 p.m. OK GNU C++17 TESTS 62 46 4096000 2600
80568339 _wzx27 F May 18, 2020, 4:31 a.m. OK GNU C++17 TESTS 63 46 5529600 2600
81571604 zhongyuwei F May 27, 2020, 1:10 a.m. OK GNU C++17 (64) TESTS 63 46 0 2600
80553990 polpolpol F May 17, 2020, 8:49 p.m. OK GNU C++17 (64) TESTS 62 46 4300800 2600
80530738 Hasnaine_ F May 17, 2020, 2:52 p.m. OK GNU C++17 (64) TESTS 62 46 4300800 2600
80530126 Hasnaine_ F May 17, 2020, 2:45 p.m. OK GNU C++17 (64) TESTS 62 46 4300800 2600
81027884 UniverseofHK F May 23, 2020, 3:42 p.m. OK GNU C++17 (64) TESTS 63 61 0 2600
80939607 UniverseofHK F May 22, 2020, 2 p.m. OK GNU C++17 (64) TESTS 63 61 0 2600
80703504 betrue12 F May 19, 2020, 3:26 p.m. OK GNU C++17 (64) TESTS 63 61 0 2600
80561205 agul F May 18, 2020, 1:13 a.m. OK GNU C++17 (64) TESTS 62 61 4300800 2600
80529310 Vax F May 17, 2020, 2:36 p.m. OK GNU C++17 (64) TESTS 62 61 4300800 2600
80529266 newbie_all_the_time F May 17, 2020, 2:35 p.m. OK GNU C++17 (64) TESTS 62 61 4300800 2600
80400439 synapse F May 16, 2020, 5:30 p.m. OK Go TESTS 62 93 10649600 2600
80402245 synapse F May 16, 2020, 5:50 p.m. OK Go TESTS 62 108 10649600 2600
80399751 synapse F May 16, 2020, 5:22 p.m. OK Go TESTS 62 109 10649600 2600
80778363 egaeus.code F May 20, 2020, 1:54 p.m. OK Java 11 TESTS 63 280 204800 2600
80605987 fivefourthreeone F May 18, 2020, 1:24 p.m. OK Java 11 TESTS 63 311 25190400 2600
80397373 uwi F May 16, 2020, 4:58 p.m. OK Java 11 TESTS 62 405 24780800 2600
80411534 nsmikhailov F May 16, 2020, 7:47 p.m. OK Java 11 TESTS 62 1840 25292800 2600
80390198 Yugioh F May 16, 2020, 3:50 p.m. OK Java 8 TESTS 62 264 20787200 2600
80415009 ijxjdjd F May 16, 2020, 8:47 p.m. OK Java 8 TESTS 62 280 21299200 2600
81358556 AnandOza F May 25, 2020, 7:33 a.m. OK Java 8 TESTS 63 295 0 2600
81360264 AnandOza F May 25, 2020, 7:58 a.m. OK Java 8 TESTS 63 296 0 2600
80563257 MikasaAckermann F May 18, 2020, 2:26 a.m. OK Kotlin TESTS 62 249 21606400 2600
81018403 Fortin F May 23, 2020, 1:36 p.m. OK Kotlin TESTS 63 280 0 2600
80886861 LSD F May 21, 2020, 8:30 p.m. OK MS C++ 2017 TESTS 63 46 0 2600
80782356 sanjay-leo F May 20, 2020, 2:45 p.m. OK PyPy 3 TESTS 63 327 7168000 2600
80783061 sanjay-leo F May 20, 2020, 2:53 p.m. OK PyPy 3 TESTS 63 342 6246400 2600
80782593 sanjay-leo F May 20, 2020, 2:48 p.m. OK PyPy 3 TESTS 63 342 6963200 2600
80623765 cugel F May 18, 2020, 4:42 p.m. OK PyPy 3 TESTS 63 343 6246400 2600
80820936 zqx1392 F May 21, 2020, 5:04 a.m. OK PyPy 3 TESTS 63 343 10752000 2600
80782785 sanjay-leo F May 20, 2020, 2:50 p.m. OK PyPy 3 TESTS 63 358 6860800 2600
80544412 arthurconmy F May 17, 2020, 5:54 p.m. OK PyPy 3 TESTS 62 420 28569600 2600
80783614 sanjay-leo F May 20, 2020, 3 p.m. OK PyPy 3 TESTS 63 733 12902400 2600
81678657 andr14142 F May 28, 2020, 6:59 a.m. OK Python 3 TESTS 63 186 307200 2600
81679523 andr14142 F May 28, 2020, 7:11 a.m. OK Python 3 TESTS 63 202 307200 2600
81647029 andr14142 F May 27, 2020, 6:21 p.m. OK Python 3 TESTS 63 202 512000 2600
81383635 sriganeshr2001 F May 25, 2020, 12:43 p.m. OK Python 3 TESTS 63 202 512000 2600
81095494 andr14142 F May 24, 2020, 5:56 a.m. OK Python 3 TESTS 63 202 716800 2600
80783210 sanjay-leo F May 20, 2020, 2:55 p.m. OK Python 3 TESTS 63 218 307200 2600
80388760 code1194 F May 16, 2020, 3:39 p.m. OK Python 3 TESTS 62 218 6963200 2600
80405919 ikatakos F May 16, 2020, 6:34 p.m. OK Python 3 TESTS 62 233 7168000 2600
80389970 code1194 F May 16, 2020, 3:48 p.m. OK Python 3 TESTS 62 233 7168000 2600
80430697 mkawa2 F May 17, 2020, 4:24 a.m. OK Python 3 TESTS 62 249 7782400 2600

remove filters

Back to search problems