Codeforces Round 597 (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
1245 Codeforces Round 597 (Div. 2) FINISHED False 7200 164820287 Nov. 1, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14327 ) A Good ol' Numbers Coloring PROGRAMMING math number theory 1000

B'Consider the set of all nonnegative integers: {0, 1, 2, ... } . Given two integers a and b ( 1 <= a, b <= 10^4 ). We paint all the numbers in increasing number first we paint 0 , then we paint 1 , then 2 and so on. Each number is painted white or black. We paint a number i according to the following rules: In this way, each nonnegative integer gets one of two colors. For example, if a=3 , b=5 , then the colors of the numbers (in the order from 0 ) are: white ( 0 ), black ( 1 ), black ( 2 ), white ( 3 ), black ( 4 ), white ( 5 ), white ( 6 ), black ( 7 ), white ( 8 ), white ( 9 ), ... Note that: Your task is to determine whether or not the number of nonnegative integers colored black is infinite. If there are infinitely many nonnegative integers colored black, simply print a line containing "Infinite" (without the quotes). Otherwise, print "Finite" (without the quotes). The first line of input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases in the input. Then t lines follow, each line contains two space-separated integers a and b ( 1 <= a, b <= 10^4 ). For each test case, print one line containing either "Infinite" or "Finite" (without the quotes). Output is case-insensitive (i.e. "infinite", "inFiNite" or "finiTE" are all valid answers). '...

Tutorials

Codeforces Round #597 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65937074 joshkirstein A Nov. 29, 2019, 3:08 a.m. OK Clang++17 Diagnostics TESTS 8 46 0 1000
64111945 OmarKhaled_ A Nov. 2, 2019, 7:01 p.m. OK Clang++17 Diagnostics TESTS 8 46 0 1000
68809464 canhtoantpvp A Jan. 14, 2020, 3:59 p.m. OK FPC TESTS 8 15 102400 1000
64554924 dblark A Nov. 9, 2019, 2:55 a.m. OK FPC TESTS 8 30 0 1000
64568353 dblark A Nov. 9, 2019, 8:19 a.m. OK FPC TESTS 8 30 0 1000
64189390 amirreza12 A Nov. 4, 2019, 7 a.m. OK FPC TESTS 8 31 0 1000
64197504 luogu_bot3 A Nov. 4, 2019, 10:17 a.m. OK FPC TESTS 8 31 0 1000
64106014 Learn4Fun A Nov. 2, 2019, 4:39 p.m. OK FPC TESTS 8 31 0 1000
68016614 AidaSadat A Dec. 31, 2019, 7:01 p.m. OK GNU C11 TESTS 8 15 0 1000
68151767 mth1908 A Jan. 4, 2020, 7:12 a.m. OK GNU C11 TESTS 8 15 0 1000
64273808 Hiddenboy99 A Nov. 4, 2019, 8:15 p.m. OK GNU C11 TESTS 8 15 0 1000
64629808 LaZy_BaD_bOy A Nov. 10, 2019, 9:45 a.m. OK GNU C11 TESTS 8 15 0 1000
64655861 akash19jain A Nov. 10, 2019, 7:15 p.m. OK GNU C11 TESTS 8 15 0 1000
65560078 Yulina A Nov. 23, 2019, 2:17 a.m. OK GNU C11 TESTS 8 15 0 1000
66674863 shubh101220001 A Dec. 12, 2019, 10:54 a.m. OK GNU C11 TESTS 8 15 0 1000
67285693 ishank1010 A Dec. 20, 2019, 2:14 p.m. OK GNU C11 TESTS 8 15 0 1000
67349372 Prem1802065p A Dec. 21, 2019, 11:58 a.m. OK GNU C11 TESTS 8 15 0 1000
67939879 IPRIT A Dec. 29, 2019, 11:22 p.m. OK GNU C11 TESTS 8 15 0 1000
68987902 Famvics A Jan. 17, 2020, 1:10 p.m. OK GNU C++11 TESTS 8 15 0 1000
68989272 Famvics A Jan. 17, 2020, 1:37 p.m. OK GNU C++11 TESTS 8 15 0 1000
69023578 RKNO A Jan. 18, 2020, 6:48 a.m. OK GNU C++11 TESTS 8 15 0 1000
69457352 vjudge4 A Jan. 24, 2020, 9:11 a.m. OK GNU C++11 TESTS 8 15 0 1000
69548689 luogu_bot5 A Jan. 26, 2020, 5:09 a.m. OK GNU C++11 TESTS 8 15 0 1000
69568222 luogu_bot5 A Jan. 26, 2020, 1:12 p.m. OK GNU C++11 TESTS 8 15 0 1000
69572593 Chirography_11 A Jan. 26, 2020, 2:33 p.m. OK GNU C++11 TESTS 8 15 0 1000
69716686 vjudge2 A Jan. 29, 2020, 9:14 a.m. OK GNU C++11 TESTS 8 15 0 1000
69636086 VictorForbes A Jan. 27, 2020, 6:37 p.m. OK GNU C++11 TESTS 8 15 0 1000
69592853 Apsara A Jan. 27, 2020, 2:02 a.m. OK GNU C++11 TESTS 8 15 0 1000
69457845 vjudge1 A Jan. 24, 2020, 9:24 a.m. OK GNU C++14 TESTS 8 15 0 1000
69903867 mfctanzim_00 A Jan. 31, 2020, 1:40 p.m. OK GNU C++14 TESTS 8 15 0 1000
69893922 vjazz A Jan. 31, 2020, 11:05 a.m. OK GNU C++14 TESTS 8 15 0 1000
69855219 ayush_g977 A Jan. 30, 2020, 4:46 p.m. OK GNU C++14 TESTS 8 15 0 1000
69854183 adhirajbist A Jan. 30, 2020, 4:29 p.m. OK GNU C++14 TESTS 8 15 0 1000
69718071 Saurav_Pandey A Jan. 29, 2020, 9:40 a.m. OK GNU C++14 TESTS 8 15 0 1000
69668136 kiliet A Jan. 28, 2020, 12:06 p.m. OK GNU C++14 TESTS 8 15 0 1000
69637026 singhsaab_056 A Jan. 27, 2020, 7:05 p.m. OK GNU C++14 TESTS 8 15 0 1000
69473082 amit_kumar112 A Jan. 24, 2020, 3:13 p.m. OK GNU C++14 TESTS 8 15 0 1000
69459058 vjudge5 A Jan. 24, 2020, 9:53 a.m. OK GNU C++14 TESTS 8 15 0 1000
69251760 johnathan_wick A Jan. 21, 2020, 2:29 p.m. OK GNU C++17 TESTS 8 15 0 1000
69252890 DQYZ_HWK A Jan. 21, 2020, 2:48 p.m. OK GNU C++17 TESTS 8 15 0 1000
69267980 Khayrulmithu A Jan. 21, 2020, 7:24 p.m. OK GNU C++17 TESTS 8 15 0 1000
69479109 redwanalirafi A Jan. 24, 2020, 5:08 p.m. OK GNU C++17 TESTS 8 15 0 1000
69533167 vjudge4 A Jan. 25, 2020, 5:50 p.m. OK GNU C++17 TESTS 8 15 0 1000
69547761 i_m_arin A Jan. 26, 2020, 4:27 a.m. OK GNU C++17 TESTS 8 15 0 1000
69648871 abhj A Jan. 28, 2020, 3:46 a.m. OK GNU C++17 TESTS 8 15 0 1000
69674464 vjudge1 A Jan. 28, 2020, 1:54 p.m. OK GNU C++17 TESTS 8 15 0 1000
69681360 Abhayp001 A Jan. 28, 2020, 3:43 p.m. OK GNU C++17 TESTS 8 15 0 1000
69932567 Zapdos A Feb. 1, 2020, 1:19 a.m. OK GNU C++17 TESTS 8 15 0 1000
69216746 pr0_iHack A Jan. 21, 2020, 1:34 a.m. OK Go TESTS 8 31 0 1000
69216633 amarjeetanand A Jan. 21, 2020, 1:27 a.m. OK Go TESTS 8 31 0 1000
65749430 xwind A Nov. 26, 2019, 1:29 p.m. OK Go TESTS 8 31 0 1000
64027666 korniltsev.anatoly A Nov. 1, 2019, 4 p.m. OK Go TESTS 8 31 0 1000
64268103 jegfault A Nov. 4, 2019, 6:01 p.m. OK Haskell TESTS 8 31 102400 1000
64039762 thetest A Nov. 1, 2019, 5:39 p.m. OK Haskell TESTS 8 31 102400 1000
67650091 machhra A Dec. 26, 2019, 11:47 a.m. OK Java 11 TESTS 8 171 0 1000
65241208 su_deepak A Nov. 17, 2019, 8:49 a.m. OK Java 11 TESTS 8 171 0 1000
64715447 Captain_7 A Nov. 11, 2019, 9:33 p.m. OK Java 11 TESTS 8 171 0 1000
64342949 nimphy A Nov. 6, 2019, 4:14 a.m. OK Java 11 TESTS 8 171 0 1000
64273309 cuzynot A Nov. 4, 2019, 8:02 p.m. OK Java 11 TESTS 8 171 0 1000
64175619 asafiul A Nov. 3, 2019, 8:41 p.m. OK Java 11 TESTS 8 171 0 1000
64166954 TheSawan A Nov. 3, 2019, 4:40 p.m. OK Java 11 TESTS 8 171 0 1000
64146482 Anonymous A Nov. 3, 2019, 10:03 a.m. OK Java 11 TESTS 8 171 0 1000
64143591 adzo261 A Nov. 3, 2019, 9:12 a.m. OK Java 11 TESTS 8 171 0 1000
67208392 jjluczyn A Dec. 19, 2019, 1:13 p.m. OK Java 11 TESTS 8 186 0 1000
64071351 A5SAS51N A Nov. 2, 2019, 7:30 a.m. OK Java 8 TESTS 8 92 0 1000
67413210 igor_kz A Dec. 22, 2019, 9:01 a.m. OK Java 8 TESTS 8 93 0 1000
65878404 less_than_gray A Nov. 27, 2019, 5:55 p.m. OK Java 8 TESTS 8 93 0 1000
65730860 lzhang A Nov. 26, 2019, 4:59 a.m. OK Java 8 TESTS 8 93 0 1000
65471381 Mr.Gzj A Nov. 21, 2019, 8:30 a.m. OK Java 8 TESTS 8 93 0 1000
64357214 xodiac A Nov. 6, 2019, 10:39 a.m. OK Java 8 TESTS 8 93 0 1000
64070428 ay839065 A Nov. 2, 2019, 7:13 a.m. OK Java 8 TESTS 8 93 0 1000
69295366 an09mous A Jan. 22, 2020, 11:59 a.m. OK Java 8 TESTS 8 108 0 1000
68331763 tahasin A Jan. 6, 2020, 7:10 p.m. OK Java 8 TESTS 8 108 0 1000
66890286 lightseba A Dec. 14, 2019, 8:09 p.m. OK Java 8 TESTS 8 108 0 1000
64054122 Spheniscine A Nov. 2, 2019, 12:02 a.m. OK Kotlin TESTS 8 124 0 1000
64636681 satyamcse A Nov. 10, 2019, 11:48 a.m. OK Kotlin TESTS 8 124 0 1000
66287573 wbars A Dec. 4, 2019, 8:04 p.m. OK Kotlin TESTS 8 139 204800 1000
64601002 wcroughan A Nov. 9, 2019, 6:47 p.m. OK Kotlin TESTS 8 140 102400 1000
64176830 thavlek A Nov. 3, 2019, 9:25 p.m. OK Kotlin TESTS 8 140 307200 1000
64111278 koosmarci A Nov. 2, 2019, 6:46 p.m. OK Mono C# TESTS 8 46 0 1000
64027959 Ruban_Denic A Nov. 1, 2019, 4:01 p.m. OK Mono C# TESTS 8 46 0 1000
66818796 GusztavSzmolik A Dec. 14, 2019, 6:45 a.m. OK Mono C# TESTS 8 46 0 1000
64641061 nastya1199 A Nov. 10, 2019, 1:10 p.m. OK Mono C# TESTS 8 46 0 1000
64029790 J_Duck A Nov. 1, 2019, 4:08 p.m. OK Mono C# TESTS 8 46 0 1000
64277588 camypaper A Nov. 4, 2019, 10:45 p.m. OK Mono C# TESTS 8 61 0 1000
64042396 TRR A Nov. 1, 2019, 6:16 p.m. OK Mono C# TESTS 8 61 0 1000
64059874 fastnoise A Nov. 2, 2019, 3:19 a.m. OK Mono C# TESTS 8 61 3584000 1000
66394439 vjudge5 A Dec. 6, 2019, 10:16 a.m. OK MS C++ TESTS 8 15 0 1000
64641257 vjudge5 A Nov. 10, 2019, 1:14 p.m. OK MS C++ TESTS 8 15 0 1000
64616972 vjudge5 A Nov. 10, 2019, 5:18 a.m. OK MS C++ TESTS 8 15 0 1000
64607178 vjudge2 A Nov. 9, 2019, 9:29 p.m. OK MS C++ TESTS 8 15 0 1000
64359605 vjudge4 A Nov. 6, 2019, 11:21 a.m. OK MS C++ TESTS 8 15 0 1000
64063403 vjudge2 A Nov. 2, 2019, 4:51 a.m. OK MS C++ TESTS 8 15 0 1000
65521131 SCSQ A Nov. 22, 2019, 8:23 a.m. OK MS C++ TESTS 8 15 0 1000
66395315 vjudge4 A Dec. 6, 2019, 10:34 a.m. OK MS C++ TESTS 8 15 0 1000
66395074 vjudge2 A Dec. 6, 2019, 10:29 a.m. OK MS C++ TESTS 8 15 0 1000
66676411 vjudge1 A Dec. 12, 2019, 11:29 a.m. OK MS C++ TESTS 8 30 0 1000
64511174 parisa.mqdm A Nov. 8, 2019, 8:52 a.m. OK MS C++ 2017 TESTS 8 15 0 1000
65024352 HovrovDima A Nov. 15, 2019, 6:54 a.m. OK MS C++ 2017 TESTS 8 15 0 1000
64512271 2018qwer A Nov. 8, 2019, 9:14 a.m. OK MS C++ 2017 TESTS 8 15 0 1000
64296141 cyalue A Nov. 5, 2019, 8:40 a.m. OK MS C++ 2017 TESTS 8 15 0 1000
64208718 F91WoDaGe A Nov. 4, 2019, 1:16 p.m. OK MS C++ 2017 TESTS 8 15 0 1000
64204132 nyqykk11 A Nov. 4, 2019, 12:21 p.m. OK MS C++ 2017 TESTS 8 15 0 1000
64075361 dbelov A Nov. 2, 2019, 8:38 a.m. OK MS C++ 2017 TESTS 8 15 0 1000
64045423 Astronomax A Nov. 1, 2019, 7:15 p.m. OK MS C++ 2017 TESTS 8 15 0 1000
64027112 denshlk A Nov. 1, 2019, 3:58 p.m. OK MS C++ 2017 TESTS 8 15 0 1000
64026310 Mr.John_Wick A Nov. 1, 2019, 3:55 p.m. OK MS C++ 2017 TESTS 8 15 0 1000
64086212 toaonly A Nov. 2, 2019, 11:28 a.m. OK Node.js TESTS 8 170 1024000 1000
64085844 toaonly A Nov. 2, 2019, 11:23 a.m. OK Node.js TESTS 8 217 1024000 1000
66243184 Saroupille A Dec. 3, 2019, 7:05 p.m. OK Ocaml TESTS 8 15 0 1000
65457644 miloske A Nov. 20, 2019, 9:59 p.m. OK Ocaml TESTS 8 15 0 1000
64687364 Kiral55 A Nov. 11, 2019, 12:08 p.m. OK PHP TESTS 8 31 0 1000
64206751 kabeer27 A Nov. 4, 2019, 1:05 p.m. OK PyPy 2 TESTS 8 109 0 1000
66626473 yumtam A Dec. 11, 2019, 9:17 a.m. OK PyPy 2 TESTS 8 139 0 1000
67425772 aaa_bbb_ccc A Dec. 22, 2019, 1:22 p.m. OK PyPy 2 TESTS 8 155 102400 1000
64178905 pie. A Nov. 3, 2019, 10:31 p.m. OK PyPy 2 TESTS 8 202 8089600 1000
64175014 SoSooding A Nov. 3, 2019, 8:21 p.m. OK PyPy 2 TESTS 8 218 8089600 1000
65227624 kevin271 A Nov. 17, 2019, 2:53 a.m. OK PyPy 3 TESTS 8 124 0 1000
64766354 algdgn A Nov. 12, 2019, 8:50 p.m. OK PyPy 3 TESTS 8 124 0 1000
64145288 Aldenys A Nov. 3, 2019, 9:40 a.m. OK PyPy 3 TESTS 8 124 0 1000
64056224 ac_97 A Nov. 2, 2019, 1:31 a.m. OK PyPy 3 TESTS 8 124 0 1000
66448194 spykecb A Dec. 7, 2019, 10:28 a.m. OK PyPy 3 TESTS 8 139 0 1000
66434522 m.ni A Dec. 7, 2019, 5:29 a.m. OK PyPy 3 TESTS 8 139 0 1000
65040333 gauravgupta14376 A Nov. 15, 2019, 1:13 p.m. OK PyPy 3 TESTS 8 139 0 1000
65031701 zgonnikov A Nov. 15, 2019, 10:09 a.m. OK PyPy 3 TESTS 8 139 0 1000
64731206 A_Lazar_A A Nov. 12, 2019, 8:30 a.m. OK PyPy 3 TESTS 8 139 0 1000
64549768 ivansluque A Nov. 8, 2019, 10:05 p.m. OK PyPy 3 TESTS 8 139 0 1000
64070973 manvigoel A Nov. 2, 2019, 7:22 a.m. OK Python 2 TESTS 8 171 0 1000
64509191 franckmy A Nov. 8, 2019, 8:10 a.m. OK Python 3 TESTS 8 93 0 1000
64160297 Aloha A Nov. 3, 2019, 2:16 p.m. OK Python 3 TESTS 8 93 0 1000
64146947 kshitij_sodani A Nov. 3, 2019, 10:12 a.m. OK Python 3 TESTS 8 93 0 1000
64129310 Anu_cool A Nov. 3, 2019, 6:15 a.m. OK Python 3 TESTS 8 93 0 1000
64032462 kierenholt A Nov. 1, 2019, 4:19 p.m. OK Python 3 TESTS 8 93 0 1000
64029567 resita A Nov. 1, 2019, 4:07 p.m. OK Python 3 TESTS 8 93 0 1000
69671681 Dread_Pirate A Jan. 28, 2020, 1:11 p.m. OK Python 3 TESTS 8 108 0 1000
69062192 cs1g A Jan. 18, 2020, 5:01 p.m. OK Python 3 TESTS 8 108 0 1000
68159623 HighLights A Jan. 4, 2020, 10:19 a.m. OK Python 3 TESTS 8 108 0 1000
66869915 sritha A Dec. 14, 2019, 1:13 p.m. OK Python 3 TESTS 8 108 0 1000
64198241 Cpp A Nov. 4, 2019, 10:33 a.m. OK Ruby TESTS 8 46 0 1000
64186175 yuya178 A Nov. 4, 2019, 5:16 a.m. OK Rust TESTS 8 31 204800 1000
64623590 kobae964 A Nov. 10, 2019, 7:48 a.m. OK Rust TESTS 8 31 307200 1000
64026076 Mirovan A Nov. 1, 2019, 3:54 p.m. OK Scala TESTS 8 529 0 1000

remove filters

Back to search problems