Codeforces Round 632 (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
1333 Codeforces Round 632 (Div. 2) FINISHED False 7200 145466699 April 8, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4282 ) F Kate and imperfection PROGRAMMING greedy implementation math number theory sortings two pointers

B"Kate has a set S of n integers {1, ... , n } . She thinks that imperfection of a subset M subseteq S is equal to the maximum of gcd(a, b) over all pairs (a, b) such that both a and b are in M and a neq b . Kate is a very neat girl and for each k in {2, ... , n } she wants to find a subset that has the smallest imperfection among all subsets in S of size k . There can be more than one subset with the smallest imperfection and the same size, but you don't need to worry about it. Kate wants to find all the subsets herself, but she needs your help to find the smallest possible imperfection for each size k , will name it I_k . Please, help Kate to find I_2 , I_3 , ..., I_n . The first and only line in the input consists of only one integer n ( 2 <= n <= 5 cdot 10^5 ) -- the size of the given set S . Output contains only one line that includes n - 1 integers: I_2 , I_3 , ..., I_n . First sample: answer is 1, because gcd(1, 2) = 1 . Second sample: there are subsets of S with sizes 2, 3 with imperfection equal to 1. For example, {2,3 } and {1, 2, 3 } . "...

Tutorials

Codeforces Round #632 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
75912514 iica F April 8, 2020, 4:34 p.m. OK D TESTS 116 233 56934400
76283335 ruban F April 12, 2020, 4:05 a.m. OK Delphi TESTS 116 202 76800000
76094326 liqing F April 10, 2020, 1:29 p.m. OK GNU C++11 TESTS 116 46 6348800
75952422 BF666 F April 9, 2020, 5:18 a.m. OK GNU C++11 TESTS 116 61 6041600
75968133 tim1103 F April 9, 2020, 8:25 a.m. OK GNU C++11 TESTS 116 62 6041600
76007508 luogu_bot2 F April 9, 2020, 3:26 p.m. OK GNU C++11 TESTS 116 78 3993600
75944324 _DAG_ F April 9, 2020, 2:40 a.m. OK GNU C++11 TESTS 116 78 3993600
75947398 2018liuzhiyuan F April 9, 2020, 3:44 a.m. OK GNU C++11 TESTS 116 93 3993600
75962464 2018liuzhiyuan F April 9, 2020, 7:21 a.m. OK GNU C++11 TESTS 116 93 4300800
75939401 lornd F April 9, 2020, 12:34 a.m. OK GNU C++11 TESTS 116 109 2560000
75917165 smarthehe F April 8, 2020, 6:14 p.m. OK GNU C++11 TESTS 116 109 2560000
75916221 Alpaca00 F April 8, 2020, 6:08 p.m. OK GNU C++11 TESTS 116 109 3072000
76280425 MackereI_Pike F April 12, 2020, 3:03 a.m. OK GNU C++14 TESTS 116 62 3891200
75934891 H4XX F April 8, 2020, 10:21 p.m. OK GNU C++14 TESTS 116 93 2457600
75943434 ruogu F April 9, 2020, 2:21 a.m. OK GNU C++14 TESTS 116 93 2560000
75934295 OTTFF F April 8, 2020, 10:05 p.m. OK GNU C++14 TESTS 116 93 3993600
75916425 Yuki726 F April 8, 2020, 6:09 p.m. OK GNU C++14 TESTS 116 93 3993600
75905079 yijan F April 8, 2020, 4:22 p.m. OK GNU C++14 TESTS 116 93 3993600
76092687 SuperJ6 F April 10, 2020, 1:12 p.m. OK GNU C++14 TESTS 116 93 4608000
76078902 goatzyq F April 10, 2020, 10:31 a.m. OK GNU C++14 TESTS 116 93 6041600
75937416 sustechdateri F April 8, 2020, 11:34 p.m. OK GNU C++14 TESTS 116 93 6041600
75905118 kaffuchino F April 8, 2020, 4:22 p.m. OK GNU C++14 TESTS 116 93 6041600
75956008 _andyli F April 9, 2020, 6:08 a.m. OK GNU C++17 TESTS 116 77 6246400
75941921 _andyli F April 9, 2020, 1:42 a.m. OK GNU C++17 TESTS 116 78 6246400
76312337 OKAS F April 12, 2020, 9:45 a.m. OK GNU C++17 TESTS 116 93 2560000
76071462 atodo F April 10, 2020, 8:54 a.m. OK GNU C++17 TESTS 116 93 2560000
75939768 changruinian2020 F April 9, 2020, 12:44 a.m. OK GNU C++17 TESTS 116 93 2560000
75937335 lucasxia01 F April 8, 2020, 11:31 p.m. OK GNU C++17 TESTS 116 93 3072000
76010947 Rubesty F April 9, 2020, 3:59 p.m. OK GNU C++17 TESTS 116 93 3584000
76004701 NRCover F April 9, 2020, 3 p.m. OK GNU C++17 TESTS 116 93 3584000
76092990 Ex1st F April 10, 2020, 1:15 p.m. OK GNU C++17 TESTS 116 93 3993600
76075792 yuguotianqing F April 10, 2020, 9:51 a.m. OK GNU C++17 TESTS 116 93 3993600
75916839 achvanov F April 8, 2020, 6:11 p.m. OK GNU C++17 (64) TESTS 116 77 6041600
76008380 Hasnaine_ F April 9, 2020, 3:35 p.m. OK GNU C++17 (64) TESTS 116 78 4505600
76233973 vjudge5 F April 11, 2020, 5:20 a.m. OK GNU C++17 (64) TESTS 116 78 6144000
75915678 pseuda F April 8, 2020, 6:06 p.m. OK GNU C++17 (64) TESTS 116 92 3993600
75928629 taulant F April 8, 2020, 8:21 p.m. OK GNU C++17 (64) TESTS 116 92 7987200
76220971 860579 F April 10, 2020, 11:52 p.m. OK GNU C++17 (64) TESTS 116 93 2048000
75970390 ivan100sic F April 9, 2020, 8:50 a.m. OK GNU C++17 (64) TESTS 116 93 2560000
75925439 timf1089 F April 8, 2020, 7:36 p.m. OK GNU C++17 (64) TESTS 116 93 2560000
76227515 nico123 F April 11, 2020, 3:09 a.m. OK GNU C++17 (64) TESTS 116 93 3993600
75993001 MADKIRUS F April 9, 2020, 1:06 p.m. OK GNU C++17 (64) TESTS 116 93 3993600
75940125 avijit_agarwal F April 9, 2020, 12:54 a.m. OK Java 11 TESTS 116 249 5836800
75928423 alankritanand001 F April 8, 2020, 8:18 p.m. OK Java 11 TESTS 116 296 0
75903281 daar_lagta_hai F April 8, 2020, 4:18 p.m. OK Java 11 TESTS 116 296 0
75996233 foumani F April 9, 2020, 1:40 p.m. OK Java 11 TESTS 116 311 0
75921438 noahlewis.ca F April 8, 2020, 6:51 p.m. OK Java 11 TESTS 116 311 0
76046636 hakr_2104 F April 10, 2020, 12:43 a.m. OK Java 11 TESTS 116 311 7577600
75996309 foumani F April 9, 2020, 1:40 p.m. OK Java 11 TESTS 116 342 0
75923987 sarthakmanna F April 8, 2020, 7:19 p.m. OK Java 11 TESTS 116 373 19353600
76250143 jakejase2 F April 11, 2020, 12:57 p.m. OK Java 11 TESTS 116 436 10342400
76003528 Anonymous F April 9, 2020, 2:49 p.m. OK Java 11 TESTS 116 545 16793600
76093519 eng_hardik F April 10, 2020, 1:21 p.m. OK Java 8 TESTS 116 202 0
75933102 procrastinate7 F April 8, 2020, 9:37 p.m. OK Java 8 TESTS 116 202 0
76081266 gagan_6730 F April 10, 2020, 11:02 a.m. OK Java 8 TESTS 116 202 17203200
75988990 Whiplash99 F April 9, 2020, 12:22 p.m. OK Java 8 TESTS 116 202 18944000
75976180 cwise F April 9, 2020, 9:58 a.m. OK Java 8 TESTS 116 202 45363200
76132940 ankurkumar23612 F April 10, 2020, 3:06 p.m. OK Java 8 TESTS 116 217 18944000
75937533 NatInTheHat F April 8, 2020, 11:37 p.m. OK Java 8 TESTS 116 218 0
75947487 mufaddalnaya F April 9, 2020, 3:46 a.m. OK Java 8 TESTS 116 233 0
75965758 KharYusuf F April 9, 2020, 7:58 a.m. OK Java 8 TESTS 116 233 0
75954215 godxpunk F April 9, 2020, 5:44 a.m. OK Java 8 TESTS 116 233 0
75974234 Spheniscine F April 9, 2020, 9:35 a.m. OK Kotlin TESTS 116 249 19456000
75975906 Spheniscine F April 9, 2020, 9:55 a.m. OK Kotlin TESTS 116 249 19558400
75930393 jonas.havelka.42 F April 8, 2020, 8:48 p.m. OK Kotlin TESTS 116 404 31334400
75939516 camypaper F April 9, 2020, 12:37 a.m. OK Mono C# TESTS 116 140 29593600
76234666 vjudge1 F April 11, 2020, 5:30 a.m. OK MS C++ TESTS 116 156 4403200
75915616 pichulia F April 8, 2020, 6:06 p.m. OK MS C++ 2017 TESTS 116 140 6041600
76094890 hwqconceptnick F April 10, 2020, 1:35 p.m. OK MS C++ 2017 TESTS 116 171 2048000
76000972 LeeLdler F April 9, 2020, 2:25 p.m. OK MS C++ 2017 TESTS 116 171 2048000
75969030 vjudge3 F April 9, 2020, 8:35 a.m. OK MS C++ 2017 TESTS 116 218 11366400
75908603 tarattata1 F April 8, 2020, 4:29 p.m. OK MS C++ 2017 TESTS 116 296 48332800
75933393 extremum F April 8, 2020, 9:44 p.m. OK MS C++ 2017 TESTS 116 312 6041600
75936229 BpeMeHHa91_TryDHocTb F April 8, 2020, 10:55 p.m. OK MS C++ 2017 TESTS 116 327 7065600
75975824 SendThemToHell F April 9, 2020, 9:54 a.m. OK MS C++ 2017 TESTS 116 327 9011200
76306027 jackcaptain F April 12, 2020, 8:38 a.m. OK MS C++ 2017 TESTS 116 342 2048000
75936257 BpeMeHHa91_TryDHocTb F April 8, 2020, 10:56 p.m. OK MS C++ 2017 TESTS 116 342 3993600
76014215 lethehaiau F April 9, 2020, 4:28 p.m. OK Node.js TESTS 116 530 29696000
75969342 anshuman16423 F April 9, 2020, 8:38 a.m. OK PyPy 2 TESTS 116 265 22118400
75937461 pajenegod F April 8, 2020, 11:35 p.m. OK PyPy 2 TESTS 116 358 61952000
75937560 pajenegod F April 8, 2020, 11:38 p.m. OK PyPy 2 TESTS 116 358 62361600
75937429 pajenegod F April 8, 2020, 11:34 p.m. OK PyPy 2 TESTS 116 483 91136000
76048937 yh157612 F April 10, 2020, 2:06 a.m. OK PyPy 3 TESTS 116 327 52838400
75987154 MAO1112 F April 9, 2020, 12:02 p.m. OK PyPy 3 TESTS 116 358 23244800
75997062 NocturneBflat F April 9, 2020, 1:47 p.m. OK PyPy 3 TESTS 116 451 30515200
76035091 roaris F April 9, 2020, 8:05 p.m. OK PyPy 3 TESTS 116 482 25088000
76033345 roaris F April 9, 2020, 7:40 p.m. OK PyPy 3 TESTS 116 483 25088000
76034599 walborn F April 9, 2020, 7:57 p.m. OK PyPy 3 TESTS 116 483 25497600
76034058 walborn F April 9, 2020, 7:49 p.m. OK PyPy 3 TESTS 116 483 25600000
75932692 denny_sem F April 8, 2020, 9:30 p.m. OK PyPy 3 TESTS 116 483 35635200
75938246 conqueror_of_tourist F April 9, 2020, 12:01 a.m. OK PyPy 3 TESTS 116 483 47104000
75931361 alexeydmitriev F April 8, 2020, 9:05 p.m. OK PyPy 3 TESTS 116 483 47411200
75931669 maximpetrov F April 8, 2020, 9:10 p.m. OK Python 3 TESTS 116 639 25600000
75952041 RaDaDiYaMoHiT F April 9, 2020, 5:12 a.m. OK Python 3 TESTS 116 654 25600000
76035979 chgliu F April 9, 2020, 8:19 p.m. OK Python 3 TESTS 116 811 29593600
75916064 cotton100pc F April 8, 2020, 6:07 p.m. OK Rust TESTS 116 93 2560000
75950922 sansen F April 9, 2020, 4:55 a.m. OK Rust TESTS 116 124 9420800
75946047 rustafarian F April 9, 2020, 3:17 a.m. OK Rust TESTS 116 358 7270400
75946033 rustafarian F April 9, 2020, 3:17 a.m. OK Rust TESTS 116 374 7270400
75945948 rustafarian F April 9, 2020, 3:15 a.m. OK Rust TESTS 116 483 13414400
75905665 sansen F April 8, 2020, 4:23 p.m. OK Rust TESTS 116 826 107417600

remove filters

Back to search problems