Codeforces Global Round 8

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
1368 Codeforces Global Round 8 FINISHED False 9000 139331699 June 18, 2020, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 39882 ) A C+= PROGRAMMING brute force greedy math

B'Leo has developed a new programming language C+=. In C+=, integer variables can only be changed with a "+=" operation that adds the right-hand side value to the left-hand side variable. For example, performing "a += b" when a = 2 , b = 3 changes the value of a to 5 (the value of b does not change). In a prototype program Leo has two integer variables a and b, initialized with some positive values. He can perform any number of operations "a += b" or "b += a". Leo wants to test handling large integers, so he wants to make the value of either a or b strictly greater than a given value n . What is the smallest number of operations he has to perform? The first line contains a single integer T ( 1 <= q T <= q 100 ) -- the number of test cases. Each of the following T lines describes a single test case, and contains three integers a, b, n ( 1 <= q a, b <= q n <= q 10^9 ) -- initial values of a and b, and the value one of the variables has to exceed, respectively. For each test case print a single integer -- the smallest number of operations needed. Separate answers with line breaks. In the first case we cannot make a variable exceed 3 in one operation. One way of achieving this in two operations is to perform "b += a" twice. '...

Tutorials

Codeforces Global Round 8: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84234189 madv809 A June 18, 2020, 4:19 p.m. OK FPC TESTS 10 31 0
84270646 aatmanvaidya A June 18, 2020, 7:21 p.m. OK GNU C11 TESTS 10 15 0
84270863 Tamanna_46 A June 18, 2020, 7:25 p.m. OK GNU C11 TESTS 10 15 0
84273405 iamavik A June 18, 2020, 8:09 p.m. OK GNU C11 TESTS 10 15 0
84278309 michelmtk A June 18, 2020, 10:06 p.m. OK GNU C11 TESTS 10 15 0
84253980 harishsanaka A June 18, 2020, 5:05 p.m. OK GNU C11 TESTS 10 15 0
84282531 Ajij120386 A June 19, 2020, 1:13 a.m. OK GNU C11 TESTS 10 15 0
84287271 Rikazmuneeb A June 19, 2020, 3:40 a.m. OK GNU C11 TESTS 10 15 0
84290503 ekramhossain117 A June 19, 2020, 4:42 a.m. OK GNU C11 TESTS 10 15 0
84291305 Itsmdshahin A June 19, 2020, 4:56 a.m. OK GNU C11 TESTS 10 15 0
84281264 Middleofnowhere A June 19, 2020, 12:18 a.m. OK GNU C11 TESTS 10 15 0
84294541 pranavdv A June 19, 2020, 6:02 a.m. OK GNU C++11 TESTS 10 15 0
84294046 yueyuanzhiyyz A June 19, 2020, 5:46 a.m. OK GNU C++11 TESTS 10 15 0
84293489 jaideep_ankur A June 19, 2020, 5:38 a.m. OK GNU C++11 TESTS 10 15 0
84293240 Deku. A June 19, 2020, 5:35 a.m. OK GNU C++11 TESTS 10 15 0
84290656 tazmilur20 A June 19, 2020, 4:44 a.m. OK GNU C++11 TESTS 10 15 0
84290403 new_xyq A June 19, 2020, 4:40 a.m. OK GNU C++11 TESTS 10 15 0
84289930 jannattamim31 A June 19, 2020, 4:32 a.m. OK GNU C++11 TESTS 10 15 0
84288026 adityachirania97 A June 19, 2020, 3:55 a.m. OK GNU C++11 TESTS 10 15 0
84287529 zhtt0 A June 19, 2020, 3:45 a.m. OK GNU C++11 TESTS 10 15 0
84287168 LiuNottwo A June 19, 2020, 3:37 a.m. OK GNU C++11 TESTS 10 15 0
84270757 _Arjun_Singh_ A June 18, 2020, 7:23 p.m. OK GNU C++14 TESTS 10 15 0
84272372 Un_disputed A June 18, 2020, 7:49 p.m. OK GNU C++14 TESTS 10 15 0
84272734 Ilove_coding A June 18, 2020, 7:56 p.m. OK GNU C++14 TESTS 10 15 0
84277988 Sarthak308 A June 18, 2020, 9:56 p.m. OK GNU C++14 TESTS 10 15 0
84282788 vedant0245 A June 19, 2020, 1:24 a.m. OK GNU C++14 TESTS 10 15 0
84286042 RocksDXebec A June 19, 2020, 3:08 a.m. OK GNU C++14 TESTS 10 15 0
84288826 new_bie63 A June 19, 2020, 4:11 a.m. OK GNU C++14 TESTS 10 15 0
84288880 whowillitbe A June 19, 2020, 4:12 a.m. OK GNU C++14 TESTS 10 15 0
84288998 jm10 A June 19, 2020, 4:14 a.m. OK GNU C++14 TESTS 10 15 0
84291263 amitkumarpatel1999 A June 19, 2020, 4:55 a.m. OK GNU C++14 TESTS 10 15 0
84294306 SazzadSowmik A June 19, 2020, 5:58 a.m. OK GNU C++17 TESTS 10 15 0
84292663 adrirajc A June 19, 2020, 5:25 a.m. OK GNU C++17 TESTS 10 15 0
84292063 AlexLuchianov A June 19, 2020, 5:14 a.m. OK GNU C++17 TESTS 10 15 0
84288392 osengar A June 19, 2020, 4:02 a.m. OK GNU C++17 TESTS 10 15 0
84287079 toppoprakash123 A June 19, 2020, 3:35 a.m. OK GNU C++17 TESTS 10 15 0
84285455 anonym_king A June 19, 2020, 2:53 a.m. OK GNU C++17 TESTS 10 15 0
84284704 Sahil_bansal A June 19, 2020, 2:31 a.m. OK GNU C++17 TESTS 10 15 0
84283031 generic_placeholder_name A June 19, 2020, 1:33 a.m. OK GNU C++17 TESTS 10 15 0
84294709 ShengMingrui A June 19, 2020, 6:04 a.m. OK GNU C++17 TESTS 10 15 0
84282701 dhruv2000 A June 19, 2020, 1:19 a.m. OK GNU C++17 TESTS 10 15 0
84275004 lucid_dreamer A June 18, 2020, 8:41 p.m. OK GNU C++17 (64) TESTS 10 15 0
84293210 H4Wk3ye A June 19, 2020, 5:34 a.m. OK GNU C++17 (64) TESTS 10 15 0
84286973 Hamoudi A June 19, 2020, 3:33 a.m. OK GNU C++17 (64) TESTS 10 15 0
84285584 nadimnesar A June 19, 2020, 2:56 a.m. OK GNU C++17 (64) TESTS 10 15 0
84284637 marksman_ A June 19, 2020, 2:29 a.m. OK GNU C++17 (64) TESTS 10 15 0
84283397 LethalPuppy A June 19, 2020, 1:49 a.m. OK GNU C++17 (64) TESTS 10 15 0
84281333 WZYYN A June 19, 2020, 12:21 a.m. OK GNU C++17 (64) TESTS 10 15 0
84279398 alexistoigo A June 18, 2020, 10:48 p.m. OK GNU C++17 (64) TESTS 10 15 0
84277980 _KMS_ A June 18, 2020, 9:56 p.m. OK GNU C++17 (64) TESTS 10 15 0
84269290 sharrad99 A June 18, 2020, 7 p.m. OK GNU C++17 (64) TESTS 10 15 0
84285065 jcsxky A June 19, 2020, 2:42 a.m. OK Go TESTS 10 46 0
84278261 BugLeave A June 18, 2020, 10:04 p.m. OK Go TESTS 10 46 0
84283372 jamesfan961101 A June 19, 2020, 1:48 a.m. OK Java 11 TESTS 10 171 0
84276472 O-infinity A June 18, 2020, 9:14 p.m. OK Java 11 TESTS 10 171 0
84276273 AshrafEzz A June 18, 2020, 9:10 p.m. OK Java 11 TESTS 10 171 0
84267100 litesam A June 18, 2020, 6:35 p.m. OK Java 11 TESTS 10 171 0
84226980 TempVariable A June 18, 2020, 4:03 p.m. OK Java 11 TESTS 10 186 0
84290694 saniya3010 A June 19, 2020, 4:45 a.m. OK Java 11 TESTS 10 186 0
84261324 shocks A June 18, 2020, 5:58 p.m. OK Java 11 TESTS 10 186 0
84287706 prafful49 A June 19, 2020, 3:49 a.m. OK Java 11 TESTS 10 187 0
84290839 sudhamshreddy7 A June 19, 2020, 4:47 a.m. OK Java 11 TESTS 10 187 0
84291724 sameer_hack A June 19, 2020, 5:08 a.m. OK Java 11 TESTS 10 187 0
84287749 bohot_hard_123 A June 19, 2020, 3:50 a.m. OK Java 8 TESTS 10 108 0
84275723 shivamnarware A June 18, 2020, 8:57 p.m. OK Java 8 TESTS 10 108 0
84263165 shane_cm20 A June 18, 2020, 6:14 p.m. OK Java 8 TESTS 10 108 0
84254627 RockStar_14 A June 18, 2020, 5:06 p.m. OK Java 8 TESTS 10 108 0
84291541 Keyur21 A June 19, 2020, 5:05 a.m. OK Java 8 TESTS 10 108 0
84290673 NayaWala A June 19, 2020, 4:44 a.m. OK Java 8 TESTS 10 108 0
84287923 sri03988 A June 19, 2020, 3:53 a.m. OK Java 8 TESTS 10 109 0
84286652 Me146 A June 19, 2020, 3:25 a.m. OK Java 8 TESTS 10 109 0
84285693 mananparmar7042 A June 19, 2020, 2:58 a.m. OK Java 8 TESTS 10 109 0
84285665 honeysingh18 A June 19, 2020, 2:58 a.m. OK Java 8 TESTS 10 109 0
84275224 Luay A June 18, 2020, 8:46 p.m. OK JavaScript TESTS 10 31 0
84285611 Spheniscine A June 19, 2020, 2:56 a.m. OK Kotlin TESTS 10 109 0
84290213 wuchaojie925 A June 19, 2020, 4:37 a.m. OK Kotlin TESTS 10 140 409600
84262205 amit1509kumar A June 18, 2020, 6:05 p.m. OK Mono C# TESTS 10 62 0
84269220 TRR A June 18, 2020, 6:59 p.m. OK Mono C# TESTS 10 62 0
84231287 YTICpoch A June 18, 2020, 4:13 p.m. OK MS C++ TESTS 10 15 0
84275376 Tura A June 18, 2020, 8:49 p.m. OK MS C++ TESTS 10 31 0
84222358 sskhynix A June 18, 2020, 3:54 p.m. OK MS C++ 2017 TESTS 10 15 0
84268347 Moawya_AbdulRahman A June 18, 2020, 6:47 p.m. OK MS C++ 2017 TESTS 10 30 0
84251639 dasanisai A June 18, 2020, 5 p.m. OK MS C++ 2017 TESTS 10 30 0
84284627 pengyule A June 19, 2020, 2:29 a.m. OK MS C++ 2017 TESTS 10 31 0
84287337 JuicyCloud12609 A June 19, 2020, 3:41 a.m. OK MS C++ 2017 TESTS 10 31 0
84279304 willhebe A June 18, 2020, 10:44 p.m. OK MS C++ 2017 TESTS 10 31 0
84278207 letshavesomefun A June 18, 2020, 10:03 p.m. OK MS C++ 2017 TESTS 10 31 0
84274734 Van9Lebed A June 18, 2020, 8:35 p.m. OK MS C++ 2017 TESTS 10 31 0
84269093 Moawya_AbdulRahman A June 18, 2020, 6:57 p.m. OK MS C++ 2017 TESTS 10 31 0
84246186 p66084138 A June 18, 2020, 4:47 p.m. OK MS C++ 2017 TESTS 10 31 0
84232302 explorer_sifat A June 18, 2020, 4:15 p.m. OK Node.js TESTS 10 78 0
84268267 OmniSliver A June 18, 2020, 6:47 p.m. OK Node.js TESTS 10 78 1126400
84285178 yinlei A June 19, 2020, 2:45 a.m. OK PHP TESTS 10 31 0
84262169 crapplet A June 18, 2020, 6:05 p.m. OK PyPy 2 TESTS 10 124 819200
84271856 H1ppyXd A June 18, 2020, 7:40 p.m. OK PyPy 3 TESTS 10 124 1433600
84277507 suyasha_ A June 18, 2020, 9:42 p.m. OK PyPy 3 TESTS 10 139 2867200
84263104 raxtar A June 18, 2020, 6:13 p.m. OK PyPy 3 TESTS 10 139 2969600
84276164 Aya_Elwakil A June 18, 2020, 9:07 p.m. OK PyPy 3 TESTS 10 140 1228800
84292238 Vedkribhu A June 19, 2020, 5:17 a.m. OK PyPy 3 TESTS 10 140 1331200
84275843 RF_Faisal A June 18, 2020, 9 p.m. OK PyPy 3 TESTS 10 140 1331200
84275777 iamteen A June 18, 2020, 8:59 p.m. OK PyPy 3 TESTS 10 140 1331200
84274752 Maaro_Mujhe_Maaro A June 18, 2020, 8:35 p.m. OK PyPy 3 TESTS 10 140 1331200
84267730 FuryPotat0 A June 18, 2020, 6:40 p.m. OK PyPy 3 TESTS 10 140 1331200
84243042 palashjhanwar10 A June 18, 2020, 4:39 p.m. OK PyPy 3 TESTS 10 140 1331200
84289939 mokshasood06 A June 19, 2020, 4:32 a.m. OK Python 2 TESTS 10 171 0
84255544 heeteshsimon A June 18, 2020, 5:08 p.m. OK Python 2 TESTS 10 171 0
84237201 ShadhinAshraf A June 18, 2020, 4:25 p.m. OK Python 2 TESTS 10 186 0
84291787 JustinH1 A June 19, 2020, 5:09 a.m. OK Python 3 TESTS 10 93 0
84289199 ashutoshark A June 19, 2020, 4:18 a.m. OK Python 3 TESTS 10 93 0
84286022 jatindscl A June 19, 2020, 3:08 a.m. OK Python 3 TESTS 10 93 0
84285713 rupeshrk3 A June 19, 2020, 2:59 a.m. OK Python 3 TESTS 10 93 0
84278695 spellstaker A June 18, 2020, 10:18 p.m. OK Python 3 TESTS 10 93 0
84263345 LintuStorm A June 18, 2020, 6:16 p.m. OK Python 3 TESTS 10 93 0
84248467 BaharUllah A June 18, 2020, 4:52 p.m. OK Python 3 TESTS 10 93 0
84243357 peakofthemountain A June 18, 2020, 4:40 p.m. OK Python 3 TESTS 10 93 0
84221889 eugalt A June 18, 2020, 3:53 p.m. OK Python 3 TESTS 10 93 0
84266851 sh1194 A June 18, 2020, 6:34 p.m. OK Python 3 TESTS 10 93 307200
84266767 IvanDyachenko A June 18, 2020, 6:33 p.m. OK Scala TESTS 10 483 307200
84227048 IvanDyachenko A June 18, 2020, 4:03 p.m. OK Scala TESTS 10 701 614400

remove filters

Back to search problems