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 115831499 March 17, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20203 ) B M-arrays PROGRAMMING constructive algorithms greedy math 1200

B"You are given an array a_1, a_2, ldots, a_n consisting of n positive integers and a positive integer m . You should divide elements of this array into some arrays. You can order the elements in the new arrays as you want. Let's call an array m -divisible if for each two adjacent numbers in the array (two numbers on the positions i and i+1 are called adjacent for each i ) their sum is divisible by m . An array of one element is m -divisible. Find the smallest number of m -divisible arrays that a_1, a_2, ldots, a_n is possible to divide into. 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 , m (1 <= n <= 10^5, 1 <= m <= 10^5) . The second line of each test case contains n integers a_1, a_2, ldots, a_n (1 <= a_i <= 10^9) . It is guaranteed that the sum of n and the sum of m over all test cases do not exceed 10^5 . For each test case print the answer to the problem. In the first test case we can divide the elements 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
110277227 pratyushgupta102 B March 18, 2021, 4:50 a.m. OK GNU C11 TESTS 9 46 409600 1200
110272834 pragati_2604 B March 18, 2021, 3:23 a.m. OK GNU C11 TESTS 9 46 1536000 1200
110280389 Aditya_871 B March 18, 2021, 5:36 a.m. OK GNU C11 TESTS 9 46 1638400 1200
110266167 limpid B March 17, 2021, 11:53 p.m. OK GNU C++11 TESTS 9 31 409600 1200
110269860 fengzhengwei B March 18, 2021, 2:16 a.m. OK GNU C++11 TESTS 9 31 512000 1200
110280878 afkk B March 18, 2021, 5:42 a.m. OK GNU C++11 TESTS 9 31 819200 1200
110268356 future17 B March 18, 2021, 1:24 a.m. OK GNU C++11 TESTS 9 31 1228800 1200
110275493 sairyo B March 18, 2021, 4:18 a.m. OK GNU C++11 TESTS 9 46 204800 1200
110270283 lcyxds B March 18, 2021, 2:28 a.m. OK GNU C++11 TESTS 9 46 409600 1200
110268482 panzuguonb B March 18, 2021, 1:29 a.m. OK GNU C++11 TESTS 9 46 409600 1200
110243885 Yu_kino B March 17, 2021, 4:35 p.m. OK GNU C++11 TESTS 9 46 409600 1200
110280934 jameszhou13 B March 18, 2021, 5:43 a.m. OK GNU C++11 TESTS 9 46 409600 1200
110270639 MCAdam B March 18, 2021, 2:38 a.m. OK GNU C++11 TESTS 9 46 409600 1200
110260532 nishantk5 B March 17, 2021, 8:33 p.m. OK GNU C++14 TESTS 9 31 409600 1200
110266932 amrfahmy_ B March 18, 2021, 12:28 a.m. OK GNU C++14 TESTS 9 31 409600 1200
110255132 Kartik_Bhanderi B March 17, 2021, 7:01 p.m. OK GNU C++14 TESTS 9 31 819200 1200
110278256 kforspoj B March 18, 2021, 5:06 a.m. OK GNU C++14 TESTS 9 31 1638400 1200
110276946 thaizhenleng B March 18, 2021, 4:45 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110275043 Shivank2000 B March 18, 2021, 4:09 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110279610 akshat87001 B March 18, 2021, 5:25 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110270142 Murtaza1112 B March 18, 2021, 2:24 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110281246 RedAnt B March 18, 2021, 5:48 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110272714 vikas_1414 B March 18, 2021, 3:21 a.m. OK GNU C++14 TESTS 9 46 409600 1200
110267147 hitterrocker B March 18, 2021, 12:36 a.m. OK GNU C++17 TESTS 9 31 409600 1200
110269433 Hex1234567 B March 18, 2021, 2:02 a.m. OK GNU C++17 TESTS 9 31 409600 1200
110268697 frostbyte2103 B March 18, 2021, 1:38 a.m. OK GNU C++17 TESTS 9 31 409600 1200
110267227 feveTernAl B March 18, 2021, 12:39 a.m. OK GNU C++17 TESTS 9 31 409600 1200
110263435 1-gon B March 17, 2021, 9:57 p.m. OK GNU C++17 TESTS 9 31 819200 1200
110280372 QuantumBolt B March 18, 2021, 5:36 a.m. OK GNU C++17 TESTS 9 46 409600 1200
110277651 keshav23garg B March 18, 2021, 4:57 a.m. OK GNU C++17 TESTS 9 46 409600 1200
110279414 wanglezz B March 18, 2021, 5:23 a.m. OK GNU C++17 TESTS 9 46 409600 1200
110279483 i_m_riaz B March 18, 2021, 5:24 a.m. OK GNU C++17 TESTS 9 46 409600 1200
110281779 hasan_tawsif B March 18, 2021, 5:55 a.m. OK GNU C++17 TESTS 9 46 409600 1200
110262247 Nika_Tamliani B March 17, 2021, 9:18 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110260593 Bullet B March 17, 2021, 8:34 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110256322 NM_Mehedy B March 17, 2021, 7:18 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110248639 Meul B March 17, 2021, 6:01 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110256539 ljuba B March 17, 2021, 7:21 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110282112 SorryNaCN B March 18, 2021, 5:59 a.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110280768 alyanser B March 18, 2021, 5:41 a.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110272466 CodigoL B March 18, 2021, 3:15 a.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110268653 youtsuha B March 18, 2021, 1:36 a.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110265351 InojosaCS B March 17, 2021, 11:17 p.m. OK GNU C++17 (64) TESTS 9 31 409600 1200
110277026 Nick B March 18, 2021, 4:47 a.m. OK Java 11 TESTS 9 202 0 1200
110268138 Is2ac B March 18, 2021, 1:16 a.m. OK Java 11 TESTS 9 202 0 1200
110265960 BlackpinkLisa B March 17, 2021, 11:45 p.m. OK Java 11 TESTS 9 202 0 1200
110250532 _Body B March 17, 2021, 6:11 p.m. OK Java 11 TESTS 9 202 0 1200
110274047 gssakash B March 18, 2021, 3:49 a.m. OK Java 11 TESTS 9 217 0 1200
110254150 npwolverine B March 17, 2021, 6:48 p.m. OK Java 11 TESTS 9 218 0 1200
110260583 dmw B March 17, 2021, 8:34 p.m. OK Java 11 TESTS 9 218 0 1200
110277157 BiggEr. B March 18, 2021, 4:49 a.m. OK Java 11 TESTS 9 218 921600 1200
110274084 gssakash B March 18, 2021, 3:49 a.m. OK Java 11 TESTS 9 233 0 1200
110259410 narayan.xrd B March 17, 2021, 8:11 p.m. OK Java 11 TESTS 9 233 0 1200
110270649 JunBinLiang B March 18, 2021, 2:38 a.m. OK Java 8 TESTS 9 124 0 1200
110252411 pramodhosahalli B March 17, 2021, 6:29 p.m. OK Java 8 TESTS 9 124 0 1200
110258422 yash49 B March 17, 2021, 7:53 p.m. OK Java 8 TESTS 9 124 0 1200
110278172 derrick20 B March 18, 2021, 5:05 a.m. OK Java 8 TESTS 9 124 0 1200
110276178 ygonepiece B March 18, 2021, 4:32 a.m. OK Java 8 TESTS 9 124 0 1200
110254430 nandit B March 17, 2021, 6:52 p.m. OK Java 8 TESTS 9 140 0 1200
110279387 Aeratian B March 18, 2021, 5:22 a.m. OK Java 8 TESTS 9 140 0 1200
110269753 ShigureYUi B March 18, 2021, 2:13 a.m. OK Java 8 TESTS 9 140 0 1200
110265087 ramuked B March 17, 2021, 11:08 p.m. OK Java 8 TESTS 9 140 0 1200
110255853 Ibrahimovic_The_Lion B March 17, 2021, 7:11 p.m. OK Java 8 TESTS 9 140 0 1200
110282041 twoBit B March 18, 2021, 5:58 a.m. OK Kotlin TESTS 9 155 0 1200
110282442 twoBit B March 18, 2021, 6:04 a.m. OK Kotlin TESTS 9 202 4710400 1200
110270373 yudedako B March 18, 2021, 2:31 a.m. OK Kotlin TESTS 9 280 14950400 1200
110265257 xianman007 B March 17, 2021, 11:14 p.m. OK MS C++ 2017 TESTS 9 46 409600 1200
110277135 say_hi B March 18, 2021, 4:49 a.m. OK MS C++ 2017 TESTS 9 108 409600 1200
110277048 202003012001 B March 18, 2021, 4:47 a.m. OK MS C++ 2017 TESTS 9 109 409600 1200
110253430 mnrmustafa B March 17, 2021, 6:40 p.m. OK MS C++ 2017 TESTS 9 109 1638400 1200
110259923 Amosh_ B March 17, 2021, 8:20 p.m. OK MS C++ 2017 TESTS 9 109 4812800 1200
110244336 gleb32 B March 17, 2021, 4:37 p.m. OK MS C++ 2017 TESTS 9 124 409600 1200
110260802 Friska B March 17, 2021, 8:38 p.m. OK MS C++ 2017 TESTS 9 124 614400 1200
110253051 ustaritz B March 17, 2021, 6:35 p.m. OK MS C++ 2017 TESTS 9 124 819200 1200
110269400 Albertplus007 B March 18, 2021, 2:01 a.m. OK MS C++ 2017 TESTS 9 124 6144000 1200
110268894 _Rimjhim_36 B March 18, 2021, 1:44 a.m. OK MS C++ 2017 TESTS 9 140 3584000 1200
110280678 oossiiris B March 18, 2021, 5:39 a.m. OK PyPy 3 TESTS 9 171 9420800 1200
110254227 rajbit B March 17, 2021, 6:49 p.m. OK PyPy 3 TESTS 9 186 9420800 1200
110260922 Mahipalkeizer B March 17, 2021, 8:41 p.m. OK PyPy 3 TESTS 9 217 11980800 1200
110268429 YMSeah B March 18, 2021, 1:27 a.m. OK PyPy 3 TESTS 9 218 11878400 1200
110263071 deepanshu_pali B March 17, 2021, 9:43 p.m. OK PyPy 3 TESTS 9 248 13926400 1200
110276360 adi112100 B March 18, 2021, 4:35 a.m. OK PyPy 3 TESTS 9 249 12595200 1200
110251186 oadey89 B March 17, 2021, 6:17 p.m. OK PyPy 3 TESTS 9 249 13312000 1200
110261201 anubhav0816 B March 17, 2021, 8:48 p.m. OK PyPy 3 TESTS 9 265 11776000 1200
110261404 ms.elhosan B March 17, 2021, 8:53 p.m. OK PyPy 3 TESTS 9 265 11878400 1200
110255915 Aestroix B March 17, 2021, 7:12 p.m. OK PyPy 3 TESTS 9 265 209510400 1200
110273902 hogrider B March 18, 2021, 3:46 a.m. OK Python 3 TESTS 9 124 8192000 1200
110266332 ChristerNilsson B March 18, 2021, midnight OK Python 3 TESTS 9 139 8192000 1200
110279465 weakguy B March 18, 2021, 5:23 a.m. OK Python 3 TESTS 9 155 8192000 1200
110261917 SKA1812 B March 17, 2021, 9:08 p.m. OK Python 3 TESTS 9 155 8192000 1200
110243886 hanadamoh B March 17, 2021, 4:35 p.m. OK Python 3 TESTS 9 155 8192000 1200
110253584 navidmdn74 B March 17, 2021, 6:42 p.m. OK Python 3 TESTS 9 155 8499200 1200
110261168 random_int B March 17, 2021, 8:47 p.m. OK Python 3 TESTS 9 155 8601600 1200
110256985 shubham_409 B March 17, 2021, 7:28 p.m. OK Python 3 TESTS 9 155 8704000 1200
110250039 NS3081992 B March 17, 2021, 6:08 p.m. OK Python 3 TESTS 9 155 8704000 1200
110243477 viraldoshi B March 17, 2021, 4:33 p.m. OK Python 3 TESTS 9 156 10137600 1200
110243753 netoctone B March 17, 2021, 4:34 p.m. OK Ruby 3 TESTS 9 374 12800000 1200
110244577 QuaJ B March 17, 2021, 4:38 p.m. OK Ruby 3 TESTS 9 389 8806400 1200
110281845 sansen B March 18, 2021, 5:56 a.m. OK Rust TESTS 9 31 1536000 1200
110280157 tanyifan B March 18, 2021, 5:33 a.m. OK Rust TESTS 9 46 5939200 1200

remove filters

Back to search problems