Codeforces Round 708 (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
1497 Codeforces Round 708 (Div. 2) FINISHED False 8100 121274663 March 17, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8483 ) E1 Square-free division (easy version) PROGRAMMING data structures dp greedy math number theory 1700

B"This is the easy version of the problem. The only difference is that in this version k = 0 . There is an array a_1, a_2, ldots, a_n of n positive integers. You should divide it into a minimal number of continuous segments, such that in each segment there are no two numbers (on different positions), whose product is a perfect square. Moreover, it is allowed to do at most k such operations before the division: choose a number in the array and change its value to any positive integer. But in this version k = 0 , so it is not important. What is the minimum number of continuous segments you should use if you will make changes optimally? The first line contains a single integer t (1 <= t <= 1000) -- the number of test cases. The first line of each test case contains two integers n , k ( 1 <= n <= 2 cdot 10^5 , k = 0 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^7 ). It's guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case print a single integer -- the answer to the problem. In the first test case the division may be as follows: "...

Tutorials

Codeforces Round #708 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110250127 rainboy E1 March 17, 2021, 6:08 p.m. OK GNU C11 TESTS 102 202 80998400 1700
110270158 lcyxds E1 March 18, 2021, 2:24 a.m. OK GNU C++11 TESTS 107 171 113049600 1700
110279124 Griezmann17 E1 March 18, 2021, 5:19 a.m. OK GNU C++11 TESTS 107 171 156364800 1700
110249172 fishcathu. E1 March 17, 2021, 6:03 p.m. OK GNU C++11 TESTS 101 187 44032000 1700
110267062 Hau E1 March 18, 2021, 12:33 a.m. OK GNU C++11 TESTS 106 217 42496000 1700
110266805 dlx_c E1 March 18, 2021, 12:23 a.m. OK GNU C++11 TESTS 106 234 56934400 1700
110280775 hnust_guanxin E1 March 18, 2021, 5:41 a.m. OK GNU C++11 TESTS 107 249 54579200 1700
110269671 kmyiu E1 March 18, 2021, 2:10 a.m. OK GNU C++11 TESTS 107 264 56524800 1700
110265758 explorerxx E1 March 17, 2021, 11:36 p.m. OK GNU C++11 TESTS 106 264 114176000 1700
110246798 fishcathu. E1 March 17, 2021, 4:47 p.m. OK GNU C++11 TESTS 101 265 2048000 1700
110266831 limpid E1 March 18, 2021, 12:24 a.m. OK GNU C++11 TESTS 106 265 166809600 1700
110273058 acm E1 March 18, 2021, 3:27 a.m. OK GNU C++14 TESTS 107 233 32870400 1700
110282440 JoneySun E1 March 18, 2021, 6:04 a.m. OK GNU C++14 TESTS 107 264 12083200 1700
110254318 KNightMaReee E1 March 17, 2021, 6:50 p.m. OK GNU C++14 TESTS 104 265 52531200 1700
110280120 Winnerdevil E1 March 18, 2021, 5:32 a.m. OK GNU C++14 TESTS 107 265 94720000 1700
110266159 carre E1 March 17, 2021, 11:52 p.m. OK GNU C++14 TESTS 106 280 7168000 1700
110279077 tsaraf E1 March 18, 2021, 5:18 a.m. OK GNU C++14 TESTS 107 280 47513600 1700
110270791 BY_KUTBILIM E1 March 18, 2021, 2:42 a.m. OK GNU C++14 TESTS 107 280 51712000 1700
110258081 codemortal E1 March 17, 2021, 7:46 p.m. OK GNU C++14 TESTS 105 296 47001600 1700
110251641 symplicity E1 March 17, 2021, 6:21 p.m. OK GNU C++14 TESTS 103 296 88371200 1700
110260094 psychicX E1 March 17, 2021, 8:24 p.m. OK GNU C++14 TESTS 105 296 92979200 1700
110252816 eyakm1 E1 March 17, 2021, 6:33 p.m. OK GNU C++17 TESTS 103 202 86528000 1700
110252886 eyakm1 E1 March 17, 2021, 6:34 p.m. OK GNU C++17 TESTS 103 233 86528000 1700
110246388 XuZihan E1 March 17, 2021, 4:45 p.m. OK GNU C++17 TESTS 101 234 166297600 1700
110251344 Breaker-iwnL- E1 March 17, 2021, 6:18 p.m. OK GNU C++17 TESTS 103 248 51712000 1700
110268110 VKLioon E1 March 18, 2021, 1:14 a.m. OK GNU C++17 TESTS 106 248 154726400 1700
110281972 L1ngYu233 E1 March 18, 2021, 5:57 a.m. OK GNU C++17 TESTS 107 249 12492800 1700
110260121 EM17 E1 March 17, 2021, 8:24 p.m. OK GNU C++17 TESTS 105 249 46694400 1700
110280862 natyam E1 March 18, 2021, 5:42 a.m. OK GNU C++17 TESTS 107 249 46796800 1700
110277906 lolipop E1 March 18, 2021, 5:01 a.m. OK GNU C++17 TESTS 107 249 51712000 1700
110282298 amirmohammad-nezami E1 March 18, 2021, 6:02 a.m. OK GNU C++17 TESTS 107 249 53657600 1700
110264789 little_misfortune E1 March 17, 2021, 10:54 p.m. OK GNU C++17 (64) TESTS 106 155 50892800 1700
110246593 TYpeWriting E1 March 17, 2021, 4:46 p.m. OK GNU C++17 (64) TESTS 101 156 36761600 1700
110269478 _Isaunoya_ E1 March 18, 2021, 2:04 a.m. OK GNU C++17 (64) TESTS 107 233 50790400 1700
110251611 viniciusth E1 March 17, 2021, 6:20 p.m. OK GNU C++17 (64) TESTS 103 234 123699200 1700
110275378 CodigoL E1 March 18, 2021, 4:16 a.m. OK GNU C++17 (64) TESTS 107 249 49766400 1700
110249500 dsu123 E1 March 17, 2021, 6:04 p.m. OK GNU C++17 (64) TESTS 101 249 54784000 1700
110244994 Soumya1 E1 March 17, 2021, 4:40 p.m. OK GNU C++17 (64) TESTS 101 265 10444800 1700
110273929 Continued_Story E1 March 18, 2021, 3:46 a.m. OK GNU C++17 (64) TESTS 107 265 50585600 1700
110256960 iamnifer E1 March 17, 2021, 7:28 p.m. OK GNU C++17 (64) TESTS 104 265 95948800 1700
110257973 ljuba E1 March 17, 2021, 7:43 p.m. OK GNU C++17 (64) TESTS 105 280 54067200 1700
110257393 Dukkha E1 March 17, 2021, 7:34 p.m. OK Java 11 TESTS 105 389 112742400 1700
110256552 BlueBirdie E1 March 17, 2021, 7:21 p.m. OK Java 11 TESTS 104 529 85196800 1700
110243428 decoder_1671 E1 March 17, 2021, 4:33 p.m. OK Java 11 TESTS 101 592 74547200 1700
110246311 atishay127 E1 March 17, 2021, 4:45 p.m. OK Java 11 TESTS 101 685 86630400 1700
110245355 pikachu_pika_pika E1 March 17, 2021, 4:41 p.m. OK Java 11 TESTS 101 685 91033600 1700
110262131 blackBird E1 March 17, 2021, 9:15 p.m. OK Java 11 TESTS 105 873 22016000 1700
110245893 greedy_for_love E1 March 17, 2021, 4:43 p.m. OK Java 11 TESTS 101 1262 68505600 1700
110269823 prasoonjain006 E1 March 18, 2021, 2:15 a.m. OK Java 11 TESTS 107 1279 12083200 1700
110271827 wizwilzo E1 March 18, 2021, 3 a.m. OK Java 11 TESTS 107 1356 20582400 1700
110274131 CaliPota E1 March 18, 2021, 3:50 a.m. OK Java 11 TESTS 107 1388 42291200 1700
110248490 TheSawan E1 March 17, 2021, 6 p.m. OK Java 8 TESTS 101 389 110592000 1700
110244540 phantom11 E1 March 17, 2021, 4:37 p.m. OK Java 8 TESTS 101 452 84275200 1700
110243985 harnoorSta E1 March 17, 2021, 4:35 p.m. OK Java 8 TESTS 101 545 83251200 1700
110274338 Charigardash E1 March 18, 2021, 3:54 a.m. OK Java 8 TESTS 107 842 80281600 1700
110275045 JunBinLiang E1 March 18, 2021, 4:09 a.m. OK Java 8 TESTS 107 1154 27750400 1700
110243708 gagan_6730 E1 March 17, 2021, 4:34 p.m. OK Java 8 TESTS 101 1170 11468800 1700
110248441 Akram-Adel E1 March 17, 2021, 6 p.m. OK Java 8 TESTS 101 1450 148172800 1700
110245293 aggarwalanshul01 E1 March 17, 2021, 4:41 p.m. OK Java 8 TESTS 101 1762 15872000 1700
110250877 maan08 E1 March 17, 2021, 6:14 p.m. OK Java 8 TESTS 103 1871 12697600 1700
110275936 cpslayer E1 March 18, 2021, 4:28 a.m. OK Java 8 TESTS 107 1918 16179200 1700
110243648 pallav12 E1 March 17, 2021, 4:34 p.m. OK Kotlin TESTS 101 1419 87142400 1700
110256093 a-arsenij E1 March 17, 2021, 7:14 p.m. OK Kotlin TESTS 104 1778 29184000 1700
110263215 Friska E1 March 17, 2021, 9:49 p.m. OK MS C++ 2017 TESTS 105 405 6451200 1700
110243474 Cube219 E1 March 17, 2021, 4:33 p.m. OK MS C++ 2017 TESTS 101 514 47308800 1700
110247437 VladislavArt E1 March 17, 2021, 4:49 p.m. OK MS C++ 2017 TESTS 101 639 8089600 1700
110267229 wawahaha E1 March 18, 2021, 12:39 a.m. OK MS C++ 2017 TESTS 106 873 96665600 1700
110247315 -Tarantula E1 March 17, 2021, 4:49 p.m. OK MS C++ 2017 TESTS 101 1076 8089600 1700
110267067 wawahaha E1 March 18, 2021, 12:33 a.m. OK MS C++ 2017 TESTS 106 1123 178380800 1700
110267194 wawahaha E1 March 18, 2021, 12:38 a.m. OK MS C++ 2017 TESTS 106 1154 96665600 1700
110269921 ch_hui E1 March 18, 2021, 2:17 a.m. OK MS C++ 2017 TESTS 107 1497 58163200 1700
110270047 ch_hui E1 March 18, 2021, 2:21 a.m. OK MS C++ 2017 TESTS 107 1684 58163200 1700
110264399 tennisru E1 March 17, 2021, 10:38 p.m. OK Node.js TESTS 106 1403 69939200 1700
110264468 lebron87 E1 March 17, 2021, 10:41 p.m. OK PyPy 2 TESTS 106 733 19763200 1700
110258833 kagu E1 March 17, 2021, 8 p.m. OK PyPy 2 TESTS 105 795 27443200 1700
110264432 lebron87 E1 March 17, 2021, 10:39 p.m. OK PyPy 2 TESTS 106 1388 16486400 1700
110264370 lebron87 E1 March 17, 2021, 10:37 p.m. OK PyPy 2 TESTS 106 1403 16384000 1700
110243316 you1234 E1 March 17, 2021, 4:33 p.m. OK PyPy 3 TESTS 101 608 23244800 1700
110258529 oadey89 E1 March 17, 2021, 7:54 p.m. OK PyPy 3 TESTS 105 655 109977600 1700
110269281 integer15 E1 March 18, 2021, 1:57 a.m. OK PyPy 3 TESTS 107 670 109465600 1700
110273354 srijan.sarkar E1 March 18, 2021, 3:34 a.m. OK PyPy 3 TESTS 107 732 109772800 1700
110254118 rajbit E1 March 17, 2021, 6:48 p.m. OK PyPy 3 TESTS 104 733 109772800 1700
110269820 ZoeCUR E1 March 18, 2021, 2:15 a.m. OK PyPy 3 TESTS 107 748 20377600 1700
110252793 hritik3878 E1 March 17, 2021, 6:33 p.m. OK PyPy 3 TESTS 103 748 103219200 1700
110254011 hxu10 E1 March 17, 2021, 6:47 p.m. OK PyPy 3 TESTS 104 779 24576000 1700
110245606 sagalpreet E1 March 17, 2021, 4:42 p.m. OK PyPy 3 TESTS 101 841 111206400 1700
110269315 integer15 E1 March 18, 2021, 1:58 a.m. OK PyPy 3 TESTS 107 842 109772800 1700
110244166 zheland E1 March 17, 2021, 4:36 p.m. OK Rust TESTS 101 1014 8089600 1700
110244203 GraphTheory E1 March 17, 2021, 4:36 p.m. OK Rust TESTS 101 1481 3481600 1700

remove filters

Back to search problems