CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!)

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
1656 CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 7200 83690699 March 24, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6906 ) D K-good PROGRAMMING constructive algorithms games math number theory

B'We say that a positive integer n is k -good for some positive integer k if n can be expressed as a sum of k positive integers which give k distinct remainders when divided by k . Given a positive integer n , find some k geq 2 so that n is k -good or tell that such a k does not exist. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^5 ) -- the number of test cases. Each test case consists of one line with an integer n ( 2 <= q n <= q 10^{18} ). For each test case, print a line with a value of k such that n is k -good ( k geq 2 ), or -1 if n is not k -good for any k . If there are multiple valid values of k , you can print any of them. 6 is a 3 -good number since it can be expressed as a sum of 3 numbers which give different remainders when divided by 3 : 6 = 1 + 2 + 3 . 15 is also a 3 -good number since 15 = 1 + 5 + 9 and 1, 5, 9 give different remainders when divided by 3 . 20 is a 5 -good number since 20 = 2 + 3 + 4 + 5 + 6 and 2,3,4,5,6 give different remainders when divided by 5 . '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
150819367 eastnman D March 24, 2022, 6:40 p.m. OK Delphi TESTS 13 1481 102400
150812089 AstralLing D March 24, 2022, 5:39 p.m. OK GNU C++14 TESTS 10 31 2150400
150807764 DeaL57 D March 24, 2022, 5:14 p.m. OK GNU C++14 TESTS 8 61 0
150809289 superstarch D March 24, 2022, 5:22 p.m. OK GNU C++14 TESTS 9 62 0
150800390 backup_noob D March 24, 2022, 4:29 p.m. OK GNU C++14 TESTS 8 62 0
150808445 SlayerJ D March 24, 2022, 5:18 p.m. OK GNU C++14 TESTS 9 62 0
150845245 MMSM D March 25, 2022, 3:38 a.m. OK GNU C++14 TESTS 14 62 0
150840783 superguymj D March 25, 2022, 2:01 a.m. OK GNU C++14 TESTS 14 62 0
150811795 MoHitman D March 24, 2022, 5:37 p.m. OK GNU C++14 TESTS 9 62 0
150811060 barun511 D March 24, 2022, 5:33 p.m. OK GNU C++14 TESTS 9 62 0
150853176 akatsuki19 D March 25, 2022, 5:49 a.m. OK GNU C++14 TESTS 15 77 0
150811797 apgpsoop D March 24, 2022, 5:37 p.m. OK GNU C++17 TESTS 9 62 0
150801802 powergee101 D March 24, 2022, 4:31 p.m. OK GNU C++17 TESTS 8 62 0
150807390 saturnbored D March 24, 2022, 5:13 p.m. OK GNU C++17 TESTS 8 62 0
150853527 rbl_p D March 25, 2022, 5:53 a.m. OK GNU C++17 TESTS 15 62 0
150844732 ShatteredEther D March 25, 2022, 3:28 a.m. OK GNU C++17 TESTS 14 62 0
150828038 Perry_Prasad_Platypus D March 24, 2022, 8:28 p.m. OK GNU C++17 TESTS 13 62 0
150821391 ashuKS29 D March 24, 2022, 7 p.m. OK GNU C++17 TESTS 13 62 0
150816295 SuchDog D March 24, 2022, 6:12 p.m. OK GNU C++17 TESTS 12 62 0
150809048 insere D March 24, 2022, 5:21 p.m. OK GNU C++17 TESTS 9 62 0
150811351 absolutely_gutted D March 24, 2022, 5:35 p.m. OK GNU C++17 TESTS 9 62 102400
150843439 blank_monster D March 25, 2022, 3:02 a.m. OK GNU C++17 (64) TESTS 14 46 0
150843108 dhru008 D March 25, 2022, 2:55 a.m. OK GNU C++17 (64) TESTS 14 46 0
150842285 IzumiTomori D March 25, 2022, 2:36 a.m. OK GNU C++17 (64) TESTS 14 46 0
150853677 Faux123455 D March 25, 2022, 5:55 a.m. OK GNU C++17 (64) TESTS 15 46 0
150852805 epsilon_573 D March 25, 2022, 5:44 a.m. OK GNU C++17 (64) TESTS 15 46 0
150848998 ultimate_pal D March 25, 2022, 4:48 a.m. OK GNU C++17 (64) TESTS 15 46 0
150847795 dochenaj D March 25, 2022, 4:28 a.m. OK GNU C++17 (64) TESTS 14 46 0
150847733 Time_JYF D March 25, 2022, 4:27 a.m. OK GNU C++17 (64) TESTS 14 46 0
150844818 Merlininice D March 25, 2022, 3:29 a.m. OK GNU C++17 (64) TESTS 14 46 0
150844812 mashed_aloo D March 25, 2022, 3:29 a.m. OK GNU C++17 (64) TESTS 14 46 0
150844871 inszva D March 25, 2022, 3:31 a.m. OK GNU C++20 (64) TESTS 14 31 0
150841583 P11011 D March 25, 2022, 2:19 a.m. OK GNU C++20 (64) TESTS 14 31 0
150842491 NanoMonardes D March 25, 2022, 2:41 a.m. OK GNU C++20 (64) TESTS 14 31 0
150854007 luogu_bot3 D March 25, 2022, 5:59 a.m. OK GNU C++20 (64) TESTS 15 31 0
150853898 fahimcp495 D March 25, 2022, 5:58 a.m. OK GNU C++20 (64) TESTS 15 31 0
150853168 XLS_A D March 25, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 15 31 0
150852682 yuexia D March 25, 2022, 5:42 a.m. OK GNU C++20 (64) TESTS 15 31 0
150849928 shjohw12 D March 25, 2022, 5:03 a.m. OK GNU C++20 (64) TESTS 15 31 0
150846898 yukito8069 D March 25, 2022, 4:11 a.m. OK GNU C++20 (64) TESTS 14 31 0
150846876 shiraki-yu D March 25, 2022, 4:11 a.m. OK GNU C++20 (64) TESTS 14 31 0
150833694 Relief D March 24, 2022, 10:37 p.m. OK Java 11 TESTS 13 233 0
150824785 bhatt.eshan1736 D March 24, 2022, 7:39 p.m. OK Java 11 TESTS 13 265 0
150824810 eshan18.09 D March 24, 2022, 7:40 p.m. OK Java 11 TESTS 13 265 0
150807980 nebula6611 D March 24, 2022, 5:15 p.m. OK Java 11 TESTS 8 280 0
150825843 cocatishay D March 24, 2022, 7:54 p.m. OK Java 11 TESTS 13 280 0
150848341 __Serendipity D March 25, 2022, 4:36 a.m. OK Java 11 TESTS 14 280 0
150825405 bhatt.eshan1736 D March 24, 2022, 7:48 p.m. OK Java 11 TESTS 13 296 0
150843911 Akash151101 D March 25, 2022, 3:11 a.m. OK Java 11 TESTS 14 296 0
150825444 eshan18.09 D March 24, 2022, 7:48 p.m. OK Java 11 TESTS 13 296 0
150824257 pras7946 D March 24, 2022, 7:33 p.m. OK Java 11 TESTS 13 904 0
150828475 adi_7861 D March 24, 2022, 8:36 p.m. OK Java 8 TESTS 13 139 0
150816067 SecondThread D March 24, 2022, 6:10 p.m. OK Java 8 TESTS 12 171 38195200
150807031 gagan_6730 D March 24, 2022, 5:11 p.m. OK Java 8 TESTS 8 202 0
150835061 Abdallah_Ragab00 D March 24, 2022, 11:21 p.m. OK Java 8 TESTS 13 202 0
150800346 NOT_KHATER D March 24, 2022, 4:29 p.m. OK Java 8 TESTS 8 218 0
150807914 YahiaSherif D March 24, 2022, 5:15 p.m. OK Java 8 TESTS 8 233 0
150808639 fetetriste D March 24, 2022, 5:18 p.m. OK Java 8 TESTS 9 795 0
150808219 harshsingla06 D March 24, 2022, 5:16 p.m. OK Java 8 TESTS 9 841 0
150850475 tanishq044 D March 25, 2022, 5:10 a.m. OK Java 8 TESTS 15 857 0
150838505 cc4414 D March 25, 2022, 1:06 a.m. OK Java 8 TESTS 14 1013 0
150843116 linxiaotian D March 25, 2022, 2:55 a.m. OK Kotlin 1.4 TESTS 14 249 1331200
150850247 vmffotltka D March 25, 2022, 5:07 a.m. OK MS C++ 2017 TESTS 15 234 0
150850816 suis D March 25, 2022, 5:16 a.m. OK MS C++ 2017 TESTS 15 296 1638400
150815058 Alexey D March 24, 2022, 6:01 p.m. OK MS C++ 2017 TESTS 12 514 0
150814127 fatant D March 24, 2022, 5:54 p.m. OK MS C++ 2017 TESTS 12 530 0
150852782 EmiteInna D March 25, 2022, 5:44 a.m. OK MS C++ 2017 TESTS 15 546 3174400
150808656 ycy0731 D March 24, 2022, 5:19 p.m. OK MS C++ 2017 TESTS 9 576 4812800
150808683 TheGoodest D March 24, 2022, 5:19 p.m. OK MS C++ 2017 TESTS 9 842 0
150799877 mban259 D March 24, 2022, 4:28 p.m. OK .NET Core C# TESTS 8 108 3072000
150821315 Shayan.To D March 24, 2022, 6:59 p.m. OK .NET Core C# TESTS 13 654 4505600
150821821 Shayan.To D March 24, 2022, 7:05 p.m. OK .NET Core C# TESTS 13 670 4505600
150817188 acorn11 D March 24, 2022, 6:19 p.m. OK PyPy 2 TESTS 13 1325 6144000
150839309 1390632669 D March 25, 2022, 1:25 a.m. OK PyPy 3 TESTS 14 311 9420800
150838109 yjgwak.cs D March 25, 2022, 12:53 a.m. OK PyPy 3 TESTS 14 373 9011200
150813001 abc_2002 D March 24, 2022, 5:46 p.m. OK PyPy 3 TESTS 11 545 10752000
150801525 akshitm16 D March 24, 2022, 4:30 p.m. OK PyPy 3 TESTS 8 545 10752000
150822799 akshitm16 D March 24, 2022, 7:16 p.m. OK PyPy 3 TESTS 13 546 10444800
150822974 akshitm16 D March 24, 2022, 7:18 p.m. OK PyPy 3 TESTS 13 576 11161600
150802055 Vermeil D March 24, 2022, 4:31 p.m. OK PyPy 3 TESTS 8 576 11161600
150807704 sangram03 D March 24, 2022, 5:14 p.m. OK PyPy 3 TESTS 8 624 11264000
150807527 r_j_sangram D March 24, 2022, 5:13 p.m. OK PyPy 3 TESTS 8 624 11264000
150803340 Mansurbek D March 24, 2022, 4:33 p.m. OK PyPy 3 TESTS 8 1591 9625600
150839251 NKUCristiano D March 25, 2022, 1:24 a.m. OK PyPy 3-64 TESTS 14 140 10547200
150839159 NKUCristiano D March 25, 2022, 1:22 a.m. OK PyPy 3-64 TESTS 14 140 11161600
150850282 sakshatmali D March 25, 2022, 5:08 a.m. OK PyPy 3-64 TESTS 15 155 10137600
150807072 Mashin_larner D March 24, 2022, 5:11 p.m. OK PyPy 3-64 TESTS 8 171 10649600
150848994 coder_sounak D March 25, 2022, 4:48 a.m. OK PyPy 3-64 TESTS 15 311 18227200
150800272 Het_Fadia D March 24, 2022, 4:28 p.m. OK PyPy 3-64 TESTS 8 342 12083200
150801348 _bunk_ D March 24, 2022, 4:30 p.m. OK PyPy 3-64 TESTS 8 342 28262400
150815267 Het_Fadia D March 24, 2022, 6:03 p.m. OK PyPy 3-64 TESTS 12 343 12492800
150835179 infopluszaratmareth D March 24, 2022, 11:25 p.m. OK PyPy 3-64 TESTS 13 358 11776000
150814857 Himanshu_Kaithal D March 24, 2022, 5:59 p.m. OK PyPy 3-64 TESTS 12 374 11366400
150849439 StayGold D March 25, 2022, 4:54 a.m. OK Python 3 TESTS 15 374 204800
150800080 h00p3r2 D March 24, 2022, 4:28 p.m. OK Python 3 TESTS 8 857 0
150839252 LispWizard D March 25, 2022, 1:24 a.m. OK Python 3 TESTS 14 1029 5120000
150811416 kid-116 D March 24, 2022, 5:35 p.m. OK Python 3 TESTS 9 1419 0
150822125 onkarhanchate14 D March 24, 2022, 7:08 p.m. OK Python 3 TESTS 13 1652 0
150819390 akshaywairagade2 D March 24, 2022, 6:40 p.m. OK Python 3 TESTS 13 2012 0
150852407 abineth D March 25, 2022, 5:39 a.m. OK Python 3 TESTS 15 2152 0
150816464 genomic D March 24, 2022, 6:13 p.m. OK Python 3 TESTS 12 2386 0
150813514 Spheniscine D March 24, 2022, 5:49 p.m. OK Rust 2021 TESTS 11 31 102400
150813735 Spheniscine D March 24, 2022, 5:51 p.m. OK Rust 2021 TESTS 11 46 102400
150815150 46hinat D March 24, 2022, 6:02 p.m. OK Rust 2021 TESTS 12 62 0

remove filters

Back to search problems