Codeforces Round 641 (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
1350 Codeforces Round 641 (Div. 2) FINISHED False 9000 142536299 May 12, 2020, 12:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22520 ) B Orac and Models PROGRAMMING dp math number theory 1400

B'There are n models in the shop numbered from 1 to n , with sizes s_1, s_2, ldots, s_n . Orac will buy some of the models and will arrange them in the order of increasing numbers (i.e. indices, but not sizes). Orac thinks that the obtained arrangement is beatiful, if for any two adjacent models with indices i_j and i_{j+1} (note that i_j < i_{j+1} , because Orac arranged them properly), i_{j+1} is divisible by i_j and s_{i_j} < s_{i_{j+1}} . For example, for 6 models with sizes {3, 6, 7, 7, 7, 7 } , he can buy models with indices 1 , 2 , and 6 , and the obtained arrangement will be beautiful. Also, note that the arrangement with exactly one model is also considered beautiful. Orac wants to know the maximum number of models that he can buy, and he may ask you these queries many times. The first line contains one integer t (1 <= t <= 100) : the number of queries. Each query contains two lines. The first line contains one integer n (1 <= n <= 100 ,000) : the number of models in the shop, and the second line contains n integers s_1, ... ,s_n (1 <= s_i <= 10^9) : the sizes of models. It is guaranteed that the total sum of n is at most 100 ,000 . Print t lines, the i -th of them should contain the maximum number of models that Orac can buy for the i -th query. In the first query, for example, Orac can buy models with indices 2 and 4 , the arrangement will be beautiful because 4 is divisible by 2 and 6 is more than 3 . By enumerating, we can easily find that there are no beautiful arrangements with more than two models. In the second query, Orac can buy models with indices 1 , 3 , and 6 . By enumerating, we can easily find that there are no beautiful arrangements with more than three models. In the third query, there are no beautiful arrangements with more than one model. '...

Tutorials

Codeforces Round #641 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
79907899 ruban B May 12, 2020, 5:23 p.m. OK Delphi TESTS 37 156 102912000 1400
79962174 noobquan B May 13, 2020, 9:12 a.m. OK FPC TESTS 37 61 4198400 1400
79902398 SUNNY24 B May 12, 2020, 4:32 p.m. OK GNU C11 TESTS 37 46 4505600 1400
79964676 2019eeb1208 B May 13, 2020, 9:43 a.m. OK GNU C11 TESTS 37 46 4505600 1400
80271506 kingpin119 B May 16, 2020, 1:54 a.m. OK GNU C11 TESTS 37 46 4505600 1400
80306593 m2017m B May 16, 2020, 10:55 a.m. OK GNU C11 TESTS 37 46 4505600 1400
79952211 chowdhuryshashwoto B May 13, 2020, 7:09 a.m. OK GNU C11 TESTS 37 46 4710400 1400
79951702 Itsmdshahin B May 13, 2020, 7:03 a.m. OK GNU C11 TESTS 37 46 4710400 1400
79901277 cdtu_py B May 12, 2020, 4:22 p.m. OK GNU C11 TESTS 33 46 4915200 1400
79951332 ritheshvarma B May 13, 2020, 6:58 a.m. OK GNU C11 TESTS 37 46 4915200 1400
80024705 BugLeave B May 14, 2020, 1:41 a.m. OK GNU C11 TESTS 37 61 4505600 1400
79991148 JoseTomas01 B May 13, 2020, 2:43 p.m. OK GNU C11 TESTS 37 62 5324800 1400
81425167 Shiina_Mashiro19 B May 25, 2020, 11:16 p.m. OK GNU C++11 TESTS 37 31 614400 1400
81020841 MOVSES1 B May 23, 2020, 2:13 p.m. OK GNU C++11 TESTS 37 31 1433600 1400
80214212 luogu_bot2 B May 15, 2020, 10:25 a.m. OK GNU C++11 TESTS 37 31 4710400 1400
80046943 CKang B May 14, 2020, 8:14 a.m. OK GNU C++11 TESTS 37 31 4915200 1400
79931841 TakeAway B May 13, 2020, 1:07 a.m. OK GNU C++11 TESTS 37 31 4915200 1400
79929562 yuzhechuan B May 13, 2020, 12:01 a.m. OK GNU C++11 TESTS 37 31 5017600 1400
79976400 LV24twx B May 13, 2020, 11:58 a.m. OK GNU C++11 TESTS 37 31 7884800 1400
81339915 luogu_bot2 B May 25, 2020, 1:43 a.m. OK GNU C++11 TESTS 37 46 614400 1400
80903262 bharath_chandra B May 22, 2020, 5:22 a.m. OK GNU C++11 TESTS 37 46 614400 1400
80905169 wolf.001.618 B May 22, 2020, 5:56 a.m. OK GNU C++11 TESTS 37 46 819200 1400
81022704 haishand B May 23, 2020, 2:36 p.m. OK GNU C++14 TESTS 37 46 819200 1400
80665787 virdy B May 19, 2020, 7:49 a.m. OK GNU C++14 TESTS 37 46 819200 1400
81443988 wangxindbt B May 26, 2020, 6:50 a.m. OK GNU C++14 TESTS 37 46 1024000 1400
79899708 MarcosK B May 12, 2020, 4:11 p.m. OK GNU C++14 TESTS 33 46 4505600 1400
79901684 sj555 B May 12, 2020, 4:25 p.m. OK GNU C++14 TESTS 34 46 4505600 1400
79975624 abutoto B May 13, 2020, 11:49 a.m. OK GNU C++14 TESTS 37 46 4505600 1400
79950858 daydreamer233 B May 13, 2020, 6:52 a.m. OK GNU C++14 TESTS 37 46 4812800 1400
79934439 Huangzzzzz B May 13, 2020, 2:13 a.m. OK GNU C++14 TESTS 37 46 4812800 1400
79937101 Stephen-Curry B May 13, 2020, 3:14 a.m. OK GNU C++14 TESTS 37 46 4812800 1400
80075912 hieulc2012004 B May 14, 2020, 1:54 p.m. OK GNU C++14 TESTS 37 46 4812800 1400
80666997 Duwvux B May 19, 2020, 8:07 a.m. OK GNU C++17 TESTS 37 46 819200 1400
80893799 Cuncle B May 22, 2020, 1:07 a.m. OK GNU C++17 TESTS 37 46 819200 1400
81619610 Hadiayoub7 B May 27, 2020, 12:49 p.m. OK GNU C++17 TESTS 37 46 1024000 1400
80818063 Keven B May 21, 2020, 3:46 a.m. OK GNU C++17 TESTS 37 46 1024000 1400
80649480 AW_Flister B May 19, 2020, 2:41 a.m. OK GNU C++17 TESTS 37 46 1843200 1400
80273772 AngelVzla99 B May 16, 2020, 3:04 a.m. OK GNU C++17 TESTS 37 46 4505600 1400
80255115 sakib_muhit B May 15, 2020, 6:43 p.m. OK GNU C++17 TESTS 37 46 4505600 1400
79972755 praveen2806 B May 13, 2020, 11:17 a.m. OK GNU C++17 TESTS 37 46 4505600 1400
79959904 yin12138 B May 13, 2020, 8:45 a.m. OK GNU C++17 TESTS 37 46 4505600 1400
79953872 LRodion B May 13, 2020, 7:30 a.m. OK GNU C++17 TESTS 37 46 4505600 1400
80772351 sharrad99 B May 20, 2020, 12:32 p.m. OK GNU C++17 (64) TESTS 37 46 819200 1400
81054243 BrunoTissei B May 24, 2020, 1:10 a.m. OK GNU C++17 (64) TESTS 37 46 819200 1400
80644539 Xellos B May 18, 2020, 11:38 p.m. OK GNU C++17 (64) TESTS 37 46 819200 1400
80688211 Phortox B May 19, 2020, 12:44 p.m. OK GNU C++17 (64) TESTS 37 46 819200 1400
81660826 Tyutichkin B May 28, 2020, 12:39 a.m. OK GNU C++17 (64) TESTS 37 46 1638400 1400
81671785 VeggiePaaji B May 28, 2020, 5:26 a.m. OK GNU C++17 (64) TESTS 37 46 1638400 1400
81439220 coder_redefined B May 26, 2020, 5:46 a.m. OK GNU C++17 (64) TESTS 37 46 1638400 1400
80745417 mahdi.hasnat B May 20, 2020, 6:14 a.m. OK GNU C++17 (64) TESTS 37 46 2457600 1400
80560452 emthrm B May 18, 2020, 12:44 a.m. OK GNU C++17 (64) TESTS 37 46 5120000 1400
80588458 aeiou1 B May 18, 2020, 9:43 a.m. OK GNU C++17 (64) TESTS 37 46 5120000 1400
79937045 dblokhin B May 13, 2020, 3:13 a.m. OK Go TESTS 37 109 11264000 1400
79936892 dblokhin B May 13, 2020, 3:10 a.m. OK Go TESTS 37 109 11264000 1400
79931780 synapse B May 13, 2020, 1:05 a.m. OK Go TESTS 37 140 20787200 1400
80024747 amarjeetanand B May 14, 2020, 1:43 a.m. OK Go TESTS 37 1044 11264000 1400
79917524 nsaeki B May 12, 2020, 7:18 p.m. OK Go TESTS 37 2714 15155200 1400
81460353 lamvh2812 B May 26, 2020, 10:32 a.m. OK Go TESTS 37 2839 5222400 1400
79953449 Laurens B May 13, 2020, 7:25 a.m. OK Haskell TESTS 37 467 74854400 1400
80439403 anuragshirolkar B May 17, 2020, 6:29 a.m. OK Haskell TESTS 37 545 81203200 1400
81341286 p_unit B May 25, 2020, 2:27 a.m. OK Java 11 TESTS 37 186 0 1400
80028032 yeshwant97 B May 14, 2020, 3:25 a.m. OK Java 11 TESTS 37 187 24473600 1400
81053571 -Tommy- B May 24, 2020, 12:35 a.m. OK Java 11 TESTS 37 202 0 1400
81050014 Apass.Jack B May 23, 2020, 9:53 p.m. OK Java 11 TESTS 37 202 0 1400
80263373 Piccadilly B May 15, 2020, 9:06 p.m. OK Java 11 TESTS 37 202 23859200 1400
80557848 shiftyblock B May 17, 2020, 10:49 p.m. OK Java 11 TESTS 37 202 23961600 1400
80446942 ClaudeHunt B May 17, 2020, 7:59 a.m. OK Java 11 TESTS 37 202 24064000 1400
79968784 ojhaankesh1975 B May 13, 2020, 10:32 a.m. OK Java 11 TESTS 37 202 24064000 1400
81426171 mphillotry B May 26, 2020, 12:06 a.m. OK Java 11 TESTS 37 217 0 1400
80956149 kushoz B May 22, 2020, 5:09 p.m. OK Java 11 TESTS 37 218 2969600 1400
80971111 nandit B May 22, 2020, 9:28 p.m. OK Java 8 TESTS 37 109 0 1400
80971015 nandit B May 22, 2020, 9:26 p.m. OK Java 8 TESTS 37 124 0 1400
80846675 nikhil_supertramp B May 21, 2020, 11:27 a.m. OK Java 8 TESTS 37 124 0 1400
80821257 aditya314 B May 21, 2020, 5:12 a.m. OK Java 8 TESTS 37 124 0 1400
79937658 mufaddalnaya B May 13, 2020, 3:26 a.m. OK Java 8 TESTS 37 124 20377600 1400
79932366 dewanshnigam B May 13, 2020, 1:21 a.m. OK Java 8 TESTS 37 124 20377600 1400
79939058 cis_pie B May 13, 2020, 3:54 a.m. OK Java 8 TESTS 37 124 20377600 1400
79997285 Faizan B May 13, 2020, 3:42 p.m. OK Java 8 TESTS 37 124 20480000 1400
79914618 dimitrov_jhunjhun B May 12, 2020, 6:40 p.m. OK Java 8 TESTS 37 124 20480000 1400
79945703 aman28rwt B May 13, 2020, 5:47 a.m. OK Java 8 TESTS 37 124 20992000 1400
79932719 Spheniscine B May 13, 2020, 1:30 a.m. OK Kotlin TESTS 37 202 23347200 1400
80938446 Tconan B May 22, 2020, 1:48 p.m. OK Kotlin TESTS 37 218 5120000 1400
79930587 koboshi B May 13, 2020, 12:34 a.m. OK Kotlin TESTS 37 249 22732800 1400
79898018 Spheniscine B May 12, 2020, 3:59 p.m. OK Kotlin TESTS 33 249 23244800 1400
80773260 Manwithavan B May 20, 2020, 12:44 p.m. OK Kotlin TESTS 37 280 5836800 1400
80257977 CepGamer B May 15, 2020, 7:23 p.m. OK Kotlin TESTS 37 296 23654400 1400
79906135 Tlatoani B May 12, 2020, 5:05 p.m. OK Kotlin TESTS 37 327 26624000 1400
81697408 TRR B May 28, 2020, 10:56 a.m. OK Mono C# TESTS 37 108 10854400 1400
79990465 anish.1922 B May 13, 2020, 2:37 p.m. OK Mono C# TESTS 37 108 29286400 1400
80273795 ellip B May 16, 2020, 3:05 a.m. OK Mono C# TESTS 37 109 25395200 1400
81153763 _Trung_Nguyen B May 24, 2020, 9:22 a.m. OK Mono C# TESTS 37 124 16486400 1400
81658062 _piyush B May 27, 2020, 10:29 p.m. OK Mono C# TESTS 37 139 21196800 1400
81154446 _Trung_Nguyen B May 24, 2020, 9:31 a.m. OK Mono C# TESTS 37 171 16486400 1400
79937592 Alanaxixi B May 13, 2020, 3:25 a.m. OK MS C++ TESTS 37 109 4710400 1400
80009619 YTICpoch B May 13, 2020, 6:12 p.m. OK MS C++ TESTS 37 124 4915200 1400
80234177 MrBear B May 15, 2020, 2:20 p.m. OK MS C++ TESTS 37 187 57139200 1400
79941717 WithYou0919 B May 13, 2020, 4:45 a.m. OK MS C++ 2017 TESTS 37 62 4505600 1400
79943970 orange101 B May 13, 2020, 5:23 a.m. OK MS C++ 2017 TESTS 37 62 4505600 1400
80074563 metal4people B May 14, 2020, 1:39 p.m. OK MS C++ 2017 TESTS 37 62 4812800 1400
80293673 batyousef B May 16, 2020, 8:16 a.m. OK MS C++ 2017 TESTS 37 62 5324800 1400
80295772 batyousef B May 16, 2020, 8:42 a.m. OK MS C++ 2017 TESTS 37 62 5324800 1400
79906564 TMHazem B May 12, 2020, 5:10 p.m. OK MS C++ 2017 TESTS 37 62 5324800 1400
79915675 leventa B May 12, 2020, 6:53 p.m. OK MS C++ 2017 TESTS 37 62 5427200 1400
79962143 Itachi24 B May 13, 2020, 9:11 a.m. OK MS C++ 2017 TESTS 37 78 7782400 1400
80293736 aakanksha.sehgal B May 16, 2020, 8:16 a.m. OK MS C++ 2017 TESTS 37 78 7782400 1400
79935406 pjh6792 B May 13, 2020, 2:38 a.m. OK MS C++ 2017 TESTS 37 109 4505600 1400
79994773 arpit2438735 B May 13, 2020, 3:17 p.m. OK Node.js TESTS 37 233 23961600 1400
79926157 starzhinkus B May 12, 2020, 10:07 p.m. OK Node.js TESTS 37 249 23859200 1400
79929904 jooj B May 13, 2020, 12:12 a.m. OK PyPy 2 TESTS 37 218 30310400 1400
79954163 MVP B May 13, 2020, 7:34 a.m. OK PyPy 2 TESTS 37 280 31232000 1400
79912468 yumtam B May 12, 2020, 6:13 p.m. OK PyPy 2 TESTS 37 295 41267200 1400
79914760 beethoven97 B May 12, 2020, 6:42 p.m. OK PyPy 2 TESTS 37 296 30617600 1400
79900407 rkstalker B May 12, 2020, 4:16 p.m. OK PyPy 2 TESTS 33 326 33280000 1400
79907893 chaudhary_19 B May 12, 2020, 5:23 p.m. OK PyPy 2 TESTS 37 326 34099200 1400
79908130 mo-hit B May 12, 2020, 5:25 p.m. OK PyPy 2 TESTS 37 576 38092800 1400
80712405 PracticeAccountICL B May 19, 2020, 5:15 p.m. OK PyPy 3 TESTS 37 187 9728000 1400
79990500 govindsaj B May 13, 2020, 2:38 p.m. OK PyPy 3 TESTS 37 187 29696000 1400
79969768 juppy B May 13, 2020, 10:44 a.m. OK PyPy 3 TESTS 37 187 29696000 1400
79983915 UTMoonlight B May 13, 2020, 1:27 p.m. OK PyPy 3 TESTS 37 187 32665600 1400
79960708 ss7890 B May 13, 2020, 8:54 a.m. OK PyPy 3 TESTS 37 202 30412800 1400
81583619 coder_sounak B May 27, 2020, 5:33 a.m. OK PyPy 3 TESTS 37 217 9830400 1400
79925948 throwawayatcoder B May 12, 2020, 9:59 p.m. OK PyPy 3 TESTS 37 218 32256000 1400
79901654 deepanshu_pali B May 12, 2020, 4:25 p.m. OK PyPy 3 TESTS 34 234 30208000 1400
79898956 NamanTyagi B May 12, 2020, 4:06 p.m. OK PyPy 3 TESTS 33 234 30720000 1400
80910374 sanjeevkumar113f B May 22, 2020, 7:14 a.m. OK PyPy 3 TESTS 37 249 10035200 1400
79959243 rubiks18998 B May 13, 2020, 8:37 a.m. OK Python 2 TESTS 37 670 12083200 1400
80257399 mokshasood06 B May 15, 2020, 7:15 p.m. OK Python 2 TESTS 37 779 12800000 1400
79915505 LintuStorm B May 12, 2020, 6:51 p.m. OK Python 3 TESTS 37 483 15360000 1400
79916531 eugalt B May 12, 2020, 7:04 p.m. OK Python 3 TESTS 37 561 16691200 1400
79942592 eugalt B May 13, 2020, 5:01 a.m. OK Python 3 TESTS 37 577 16691200 1400
79919612 eugalt B May 12, 2020, 7:50 p.m. OK Python 3 TESTS 37 608 16691200 1400
79943093 eugalt B May 13, 2020, 5:09 a.m. OK Python 3 TESTS 37 623 16588800 1400
79898550 master11941140 B May 12, 2020, 4:03 p.m. OK Python 3 TESTS 33 654 15360000 1400
79927513 amrayman B May 12, 2020, 10:48 p.m. OK Python 3 TESTS 37 655 15360000 1400
80065692 judgeme B May 14, 2020, 11:54 a.m. OK Python 3 TESTS 37 655 15564800 1400
79927794 amrayman B May 12, 2020, 10:57 p.m. OK Python 3 TESTS 37 670 15360000 1400
80551645 ram_0007 B May 17, 2020, 7:57 p.m. OK Python 3 TESTS 37 685 15564800 1400
79981821 MarceloUFG B May 13, 2020, 1:03 p.m. OK Ruby TESTS 37 576 24883200 1400
80053671 jkxing B May 14, 2020, 9:33 a.m. OK Rust TESTS 37 46 11059200 1400
80266506 DaveFol B May 15, 2020, 10:36 p.m. OK Rust TESTS 37 155 7475200 1400
80465001 bqn B May 17, 2020, 9:37 a.m. OK Rust TESTS 37 249 6963200 1400
79926998 IvanDyachenko B May 12, 2020, 10:33 p.m. OK Scala TESTS 37 561 45875200 1400

remove filters

Back to search problems