Codeforces Global Round 9

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
1375 Codeforces Global Round 9 FINISHED False 9000 137949299 July 4, 2020, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2269 ) F Integer Game PROGRAMMING brute force constructive algorithms games interactive math

B'This is an interactive problem. Anton and Harris are playing a game to decide which of them is the king of problemsetting. There are three piles of stones, initially containing a , b , and c stones, where a , b , and c are distinct positive integers. On each turn of the game, the following sequence of events takes place: The second player loses if, at any point, two of the piles contain the same number of stones. The first player loses if 1000 turns have passed without the second player losing. Feeling confident in his skills, Anton decided to let Harris choose whether he wants to go first or second. Help Harris defeat Anton and become the king of problemsetting! The first line of input contains three distinct positive integers a , b , and c ( 1 <= a, b, c <= 10^9 ) -- the initial number of stones in piles 1 , 2 , and 3 respectively. The interaction begins by reading the integers a , b and c . After reading the integers, print a single line containing either "First" or "Second", denoting who you want to play as (as first or second correspondently). On each turn, the first player (either you or the judge) must print a positive integer y ( 1 <= y <= 10^{12} ). Then, the second player must print 1 , 2 , or 3 , indicating which pile should have y stones added to it. From the second turn onwards, the pile that the second player chooses must be different from the pile that they chose on the previous turn. If you are playing as Second and complete 1000 turns without losing, or if you are playing as First and the judge has determined that it cannot make a move without losing, the interactor will print 0 and will finish interaction. This means that your program is correct for this test case, and you should exit immediately. If you are playing as First and complete 1000 turns without winning, or if you are playing as Secon'...

Tutorials

79731

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
85988382 Gassa F July 4, 2020, 4:52 p.m. OK D TESTS 69 31 4710400
85963959 hos.lyric F July 4, 2020, 3:44 p.m. OK D TESTS 69 31 4710400
86008098 yao11617 F July 4, 2020, 7:57 p.m. OK GNU C++11 TESTS 69 31 3686400
86007854 its_Atrap F July 4, 2020, 7:52 p.m. OK GNU C++11 TESTS 69 31 3891200
85986985 Vegeta_008 F July 4, 2020, 4:48 p.m. OK GNU C++11 TESTS 69 31 3891200
85986827 Pisces0311 F July 4, 2020, 4:47 p.m. OK GNU C++11 TESTS 69 31 3891200
85996276 frodakcin F July 4, 2020, 5:13 p.m. OK GNU C++11 TESTS 69 31 3993600
86023767 Prabowo F July 5, 2020, 4:50 a.m. OK GNU C++11 TESTS 69 31 4096000
86012420 Rvess F July 4, 2020, 9:52 p.m. OK GNU C++11 TESTS 69 31 4096000
86010576 T1duS F July 4, 2020, 8:54 p.m. OK GNU C++11 TESTS 69 31 4096000
86009754 tripPple_A F July 4, 2020, 8:32 p.m. OK GNU C++11 TESTS 69 31 4096000
86007607 duality F July 4, 2020, 7:47 p.m. OK GNU C++11 TESTS 69 31 4096000
85995196 SameerGulati F July 4, 2020, 5:11 p.m. OK GNU C++14 TESTS 69 31 3686400
86014468 FaQueue F July 4, 2020, 11:18 p.m. OK GNU C++14 TESTS 69 31 3686400
86014187 Cinnamoroll F July 4, 2020, 11:04 p.m. OK GNU C++14 TESTS 69 31 3686400
86011202 ziki F July 4, 2020, 9:14 p.m. OK GNU C++14 TESTS 69 31 3686400
86000097 hs484 F July 4, 2020, 5:57 p.m. OK GNU C++14 TESTS 69 31 3686400
85995877 kissgergely F July 4, 2020, 5:12 p.m. OK GNU C++14 TESTS 69 31 3686400
85993002 KbMu F July 4, 2020, 5:05 p.m. OK GNU C++14 TESTS 69 31 3686400
85992126 siddhant22 F July 4, 2020, 5:03 p.m. OK GNU C++14 TESTS 69 31 3686400
85986655 NeIrka2.0 F July 4, 2020, 4:47 p.m. OK GNU C++14 TESTS 69 31 3686400
85985347 Brovko F July 4, 2020, 4:43 p.m. OK GNU C++14 TESTS 69 31 3686400
86011273 Danzev F July 4, 2020, 9:16 p.m. OK GNU C++17 TESTS 69 31 3686400
86009449 cutie_chan F July 4, 2020, 8:26 p.m. OK GNU C++17 TESTS 69 31 3686400
86008118 CarusoX F July 4, 2020, 7:57 p.m. OK GNU C++17 TESTS 69 31 3686400
86007896 Tanmay_21 F July 4, 2020, 7:53 p.m. OK GNU C++17 TESTS 69 31 3686400
86007732 nor F July 4, 2020, 7:50 p.m. OK GNU C++17 TESTS 69 31 3686400
86006269 wifiiii F July 4, 2020, 7:23 p.m. OK GNU C++17 TESTS 69 31 3686400
86005836 boleyn.su F July 4, 2020, 7:15 p.m. OK GNU C++17 TESTS 69 31 3686400
86005802 ildia F July 4, 2020, 7:14 p.m. OK GNU C++17 TESTS 69 31 3686400
86005108 abeker F July 4, 2020, 7:02 p.m. OK GNU C++17 TESTS 69 31 3686400
86004324 tarush F July 4, 2020, 6:48 p.m. OK GNU C++17 TESTS 69 31 3686400
85983425 sumitacchan F July 4, 2020, 4:37 p.m. OK GNU C++17 (64) TESTS 69 30 4300800
86023806 i_am_noob F July 5, 2020, 4:51 a.m. OK GNU C++17 (64) TESTS 69 30 4505600
85984731 math957963 F July 4, 2020, 4:41 p.m. OK GNU C++17 (64) TESTS 69 31 4198400
86013615 haengsyo F July 4, 2020, 10:39 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86016560 P.Hung F July 5, 2020, 1:01 a.m. OK GNU C++17 (64) TESTS 69 31 4300800
86014633 neal F July 4, 2020, 11:26 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86014616 _oscar_S21 F July 4, 2020, 11:25 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86014001 NoobM F July 4, 2020, 10:56 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86013256 tyler F July 4, 2020, 10:23 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86013154 lsantire F July 4, 2020, 10:19 p.m. OK GNU C++17 (64) TESTS 69 31 4300800
86016316 Apfeloxid F July 5, 2020, 12:49 a.m. OK Java 11 TESTS 69 171 23756800
86015533 Xylenox F July 5, 2020, 12:13 a.m. OK Java 11 TESTS 69 171 23756800
86004268 skittles1412 F July 4, 2020, 6:48 p.m. OK Java 11 TESTS 69 171 23756800
85973763 qwerty787788 F July 4, 2020, 4:08 p.m. OK Java 11 TESTS 69 171 23859200
86016337 Apfeloxid F July 5, 2020, 12:50 a.m. OK Java 11 TESTS 69 187 23756800
85999441 PizzaLovers007 F July 4, 2020, 5:52 p.m. OK Java 11 TESTS 69 187 23756800
85985548 eatmore F July 4, 2020, 4:43 p.m. OK Java 11 TESTS 69 187 23756800
85989865 fivefourthreeone F July 4, 2020, 4:57 p.m. OK Java 11 TESTS 69 202 24371200
86000046 uwi F July 4, 2020, 5:56 p.m. OK Java 11 TESTS 69 218 24473600
85991058 Java F July 4, 2020, 5 p.m. OK Java 8 TESTS 69 109 20275200
86015623 lucasr F July 5, 2020, 12:18 a.m. OK Java 8 TESTS 69 124 20275200
86011084 procrastinate7 F July 4, 2020, 9:10 p.m. OK Java 8 TESTS 69 124 20275200
85985836 AnandOza F July 4, 2020, 4:44 p.m. OK Java 8 TESTS 69 124 20275200
85971736 Magikarp1 F July 4, 2020, 4:03 p.m. OK Java 8 TESTS 69 124 20275200
85988791 smiley_kat F July 4, 2020, 4:53 p.m. OK Java 8 TESTS 69 140 21094400
86000099 cwise F July 4, 2020, 5:57 p.m. OK Java 8 TESTS 69 140 42496000
85987644 EmK F July 4, 2020, 4:50 p.m. OK Mono C# TESTS 69 77 12288000
85993944 machine_solution F July 4, 2020, 5:08 p.m. OK MS C++ 2017 TESTS 69 31 3686400
85976303 alexwice F July 4, 2020, 4:16 p.m. OK PyPy 2 TESTS 69 109 23347200
86026290 xyzyzl_ F July 5, 2020, 5:41 a.m. OK PyPy 3 TESTS 69 140 20172800
86016597 thekushalghosh F July 5, 2020, 1:03 a.m. OK PyPy 3 TESTS 69 140 20172800
86005236 tobias.glimmerfors F July 4, 2020, 7:04 p.m. OK PyPy 3 TESTS 69 140 20172800
86004963 ecnerwala F July 4, 2020, 6:59 p.m. OK PyPy 3 TESTS 69 140 20172800
86001707 nehan_der_thal F July 4, 2020, 6:13 p.m. OK PyPy 3 TESTS 69 140 20172800
86001332 YangDavid F July 4, 2020, 6:09 p.m. OK PyPy 3 TESTS 69 140 20172800
85984506 titia F July 4, 2020, 4:40 p.m. OK PyPy 3 TESTS 69 140 20172800
85977836 kclee2172 F July 4, 2020, 4:20 p.m. OK PyPy 3 TESTS 69 140 20172800
85961307 conqueror_of_tourist F July 4, 2020, 3:38 p.m. OK PyPy 3 TESTS 69 140 20172800
86001829 510030805voidf F July 4, 2020, 6:15 p.m. OK PyPy 3 TESTS 69 155 20172800
85976231 nwi F July 4, 2020, 4:15 p.m. OK Python 2 TESTS 69 171 6553600
86017591 mkawa2 F July 5, 2020, 1:52 a.m. OK Python 3 TESTS 69 109 6963200
86023204 _andyli F July 5, 2020, 4:37 a.m. OK Python 3 TESTS 69 109 8089600
86000702 sh1194 F July 4, 2020, 6:02 p.m. OK Python 3 TESTS 69 124 6656000
86017559 mkawa2 F July 5, 2020, 1:50 a.m. OK Python 3 TESTS 69 124 6963200
86002788 sansen F July 4, 2020, 6:27 p.m. OK Rust TESTS 69 31 3788800
85981543 ichyo F July 4, 2020, 4:31 p.m. OK Rust TESTS 69 31 4403200
86002477 pandrei F July 4, 2020, 6:23 p.m. OK Rust TESTS 69 46 3788800

remove filters

Back to search problems