Educational Codeforces Round 163 (Rated for 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
1948 Educational Codeforces Round 163 (Rated for Div. 2) FINISHED False 7200 21309899 March 15, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3009 ) E Clique Partition PROGRAMMING constructive algorithms graphs greedy

B'You are given two integers, n and k . There is a graph on n vertices, numbered from 1 to n , which initially has no edges. You have to assign each vertex an integer; let a_i be the integer on the vertex i . All a_i should be distinct integers from 1 to n . After assigning integers, for every pair of vertices (i, j) , you add an edge between them if |i - j| + |a_i - a_j| <= k . Your goal is to create a graph which can be partitioned into the minimum possible (for the given values of n and k ) number of cliques. Each vertex of the graph should belong to exactly one clique. Recall that a clique is a set of vertices such that every pair of vertices in it are connected with an edge. Since BledDest hasn 't really brushed his programming skills up, he can 't solve the problem "given a graph, partition it into the minimum number of cliques". So we also ask you to print the partition itself. The first line contains one integer t ( 1 <= t <= 1600 ) -- the number of test cases. Each test case consists of one line containing two integers n and k ( 2 <= n <= 40 ; 1 <= k <= 2n ). For each test case, print three lines: If there are multiple answers, print any of them. '...

Tutorials

Educational Codeforces Round 163 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
251604306 Xier E March 16, 2024, 3:34 a.m. OK C++14 (GCC 6-32) TESTS 5 15 0
251571833 smokebellew E March 15, 2024, 8:12 p.m. OK C++14 (GCC 6-32) TESTS 5 15 0
251557141 TAKSIST E March 15, 2024, 6:13 p.m. OK C++14 (GCC 6-32) TESTS 5 15 0
251546159 SATSKY_2024target_IGM E March 15, 2024, 5:03 p.m. OK C++14 (GCC 6-32) TESTS 5 15 0
251598753 Ether13 E March 16, 2024, 2:19 a.m. OK C++14 (GCC 6-32) TESTS 5 15 102400
251592304 MrPython E March 16, 2024, 12:30 a.m. OK C++14 (GCC 6-32) TESTS 5 15 102400
251558684 ullputao_817 E March 15, 2024, 6:24 p.m. OK C++14 (GCC 6-32) TESTS 5 15 102400
251599561 code_mzycwyc E March 16, 2024, 2:31 a.m. OK C++14 (GCC 6-32) TESTS 5 15 7987200
251605615 Mogullzr E March 16, 2024, 3:51 a.m. OK C++14 (GCC 6-32) TESTS 5 30 0
251599445 6T_T6 E March 16, 2024, 2:29 a.m. OK C++14 (GCC 6-32) TESTS 5 30 0
251619020 uewbv E March 16, 2024, 5:49 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251618968 xiojoy E March 16, 2024, 5:49 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251614096 yiniweiyin.cn E March 16, 2024, 5:18 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251609725 Tyu0.0 E March 16, 2024, 4:41 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251606587 hotavn.com E March 16, 2024, 4:02 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251606258 TypeYippie E March 16, 2024, 3:58 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251605811 serenipity E March 16, 2024, 3:53 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251605696 nicheng E March 16, 2024, 3:52 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251602826 CoffeeFish E March 16, 2024, 3:15 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251601700 rockqte E March 16, 2024, 3 a.m. OK C++17 (GCC 7-32) TESTS 5 15 0
251609982 nguyenquocthao00 E March 16, 2024, 4:44 a.m. OK Go TESTS 5 46 4915200
251579874 karamkontar E March 15, 2024, 9:19 p.m. OK Java 21 TESTS 5 234 204800
251550606 dzhi E March 15, 2024, 5:28 p.m. OK Java 21 TESTS 5 248 819200
251612483 Atri_My_Dear_Moments E March 16, 2024, 5:07 a.m. OK Java 21 TESTS 5 779 1228800
251562182 invincible777 E March 15, 2024, 6:54 p.m. OK Java 8 TESTS 5 93 0
251574776 MagentaCobra E March 15, 2024, 8:35 p.m. OK Java 8 TESTS 5 139 0
251574177 MagentaCobra E March 15, 2024, 8:30 p.m. OK Java 8 TESTS 5 155 0
251613874 gardengnome E March 16, 2024, 5:16 a.m. OK PyPy 3-64 TESTS 5 108 6656000
251602390 voicon E March 16, 2024, 3:09 a.m. OK PyPy 3-64 TESTS 5 124 9830400
251605312 dirac_e E March 16, 2024, 3:47 a.m. OK PyPy 3-64 TESTS 5 155 9830400
251602428 mikeac E March 16, 2024, 3:10 a.m. OK PyPy 3-64 TESTS 5 155 9830400
251619575 pennymagic156 E March 16, 2024, 5:53 a.m. OK PyPy 3-64 TESTS 5 171 10342400
251607567 InfinityInsight E March 16, 2024, 4:15 a.m. OK PyPy 3-64 TESTS 5 186 10035200
251561621 Remineva E March 15, 2024, 6:49 p.m. OK PyPy 3-64 TESTS 5 186 10547200
251584383 cybsbbb E March 15, 2024, 10:08 p.m. OK PyPy 3-64 TESTS 5 186 11366400
251545329 shade34 E March 15, 2024, 4:59 p.m. OK PyPy 3-64 TESTS 5 187 10035200
251615468 Little_Sheep_Yawn E March 16, 2024, 5:27 a.m. OK PyPy 3-64 TESTS 5 187 11059200
251552226 OLOGY E March 15, 2024, 5:39 p.m. OK Python 2 TESTS 5 61 102400
251600188 lucnguyen030608 E March 16, 2024, 2:40 a.m. OK Python 3 TESTS 5 93 0
251573589 sahil.joshi E March 15, 2024, 8:25 p.m. OK Python 3 TESTS 5 109 0
251552018 sky E March 15, 2024, 5:38 p.m. OK Rust 2021 TESTS 5 15 0
251593032 kost E March 16, 2024, 12:44 a.m. OK Rust 2021 TESTS 5 15 204800
251588999 amit_dwivedi E March 15, 2024, 11:24 p.m. OK Rust 2021 TESTS 5 46 102400

remove filters

Back to search problems