Educational Codeforces Round 72 (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
1217 Educational Codeforces Round 72 (Rated for Div. 2) FINISHED False 7200 169485863 Sept. 5, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5456 ) D Coloring Edges PROGRAMMING constructive algorithms dfs and similar graphs 2000

B"You are given a directed graph with n vertices and m directed edges without self-loops or multiple edges. Let's denote the k -coloring of a digraph as following: you color each edge in one of k colors. The k -coloring is good if and only if there no cycle formed by edges of same color. Find a good k -coloring of given digraph with minimum possible k . The first line contains two integers n and m ( 2 <= n <= 5000 , 1 <= m <= 5000 ) -- the number of vertices and edges in the digraph, respectively. Next m lines contain description of edges -- one per line. Each edge is a pair of integers u and v ( 1 <= u, v <= n , u ne v ) -- there is directed edge from u to v in the graph. It is guaranteed that each ordered pair (u, v) appears in the list of edges at most once. In the first line print single integer k -- the number of used colors in a good k -coloring of given graph. In the second line print m integers c_1, c_2, ... , c_m ( 1 <= c_i <= k ), where c_i is a color of the i -th edge (in order as they are given in the input). If there are multiple answers print any of them (you still have to minimize k ). "...

Tutorials

Educational Codeforces Round 72 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
60877205 Avitella D Sept. 19, 2019, 3:45 p.m. OK Clang++17 Diagnostics TESTS 41 109 15769600 2000
60176732 llbra9z D Sept. 6, 2019, 2:40 p.m. OK Delphi TESTS 41 31 102400 2000
60270878 nguyenhoangminh31082003 D Sept. 8, 2019, 3:26 p.m. OK FPC TESTS 41 46 204800 2000
60305587 linly8713 D Sept. 9, 2019, 1:44 p.m. OK GNU C++11 TESTS 41 30 102400 2000
60200680 Barry_wang D Sept. 7, 2019, 5:28 a.m. OK GNU C++11 TESTS 41 30 204800 2000
60243496 tmyklebu D Sept. 7, 2019, 11:37 p.m. OK GNU C++11 TESTS 41 30 307200 2000
60333376 QAQAutoMaton D Sept. 10, 2019, 7:15 a.m. OK GNU C++11 TESTS 41 30 4403200 2000
64730964 __Salty__ D Nov. 12, 2019, 8:25 a.m. OK GNU C++11 TESTS 41 31 0 2000
64348675 DennyQi D Nov. 6, 2019, 7:27 a.m. OK GNU C++11 TESTS 41 31 0 2000
63222661 HansLimon D Oct. 23, 2019, 8:22 a.m. OK GNU C++11 TESTS 41 31 0 2000
62848852 C20193515_LYX D Oct. 18, 2019, 6:30 a.m. OK GNU C++11 TESTS 41 31 0 2000
62848843 vjudge5 D Oct. 18, 2019, 6:29 a.m. OK GNU C++11 TESTS 41 31 0 2000
61188975 luogu_bot2 D Sept. 24, 2019, 1:24 a.m. OK GNU C++11 TESTS 41 31 0 2000
60487167 mayiyang D Sept. 13, 2019, 1:04 p.m. OK GNU C++14 TESTS 41 15 307200 2000
60920452 house-cat D Sept. 20, 2019, 10:23 a.m. OK GNU C++14 TESTS 41 15 409600 2000
60193656 Zoli9 D Sept. 6, 2019, 11:40 p.m. OK GNU C++14 TESTS 41 15 409600 2000
60163390 gamer37 D Sept. 6, 2019, 9:53 a.m. OK GNU C++14 TESTS 41 15 512000 2000
60935860 Amireza D Sept. 20, 2019, 3:18 p.m. OK GNU C++14 TESTS 41 15 614400 2000
60158750 _NightFury_ D Sept. 6, 2019, 8:04 a.m. OK GNU C++14 TESTS 41 15 614400 2000
60156178 riz_1_ D Sept. 6, 2019, 6:54 a.m. OK GNU C++14 TESTS 41 15 614400 2000
60166549 never_settle D Sept. 6, 2019, 11:12 a.m. OK GNU C++14 TESTS 41 15 2252800 2000
60174552 F-Mu D Sept. 6, 2019, 1:56 p.m. OK GNU C++14 TESTS 41 15 4403200 2000
60185017 jiraya_ D Sept. 6, 2019, 6:03 p.m. OK GNU C++14 TESTS 41 15 4608000 2000
60376842 Euphonium D Sept. 11, 2019, 7:02 a.m. OK GNU C++17 TESTS 41 15 307200 2000
60176276 1727405069 D Sept. 6, 2019, 2:32 p.m. OK GNU C++17 TESTS 41 15 307200 2000
60164219 gaoqiong D Sept. 6, 2019, 10:14 a.m. OK GNU C++17 TESTS 41 15 307200 2000
60447448 crathva D Sept. 12, 2019, 2:38 p.m. OK GNU C++17 TESTS 41 15 409600 2000
60172709 Xiuchen D Sept. 6, 2019, 1:29 p.m. OK GNU C++17 TESTS 41 15 409600 2000
60138760 igoroogle D Sept. 5, 2019, 7:14 p.m. OK GNU C++17 TESTS 41 15 409600 2000
61268639 KevinMathew D Sept. 25, 2019, 1:27 p.m. OK GNU C++17 TESTS 41 15 512000 2000
60927438 kgp_168 D Sept. 20, 2019, 12:41 p.m. OK GNU C++17 TESTS 41 15 614400 2000
60140909 keshu6598 D Sept. 5, 2019, 8:11 p.m. OK GNU C++17 TESTS 41 15 614400 2000
60139181 RishabhKejariwal D Sept. 5, 2019, 7:24 p.m. OK GNU C++17 TESTS 41 15 3276800 2000
64075722 congbao D Nov. 2, 2019, 8:44 a.m. OK Go TESTS 41 61 0 2000
60149967 Quiver D Sept. 6, 2019, 3:16 a.m. OK Go TESTS 41 171 0 2000
69278546 bleh0.5 D Jan. 22, 2020, 4:23 a.m. OK Java 11 TESTS 41 202 0 2000
66400892 KulikAlex D Dec. 6, 2019, 12:16 p.m. OK Java 11 TESTS 41 202 0 2000
67476235 machhra D Dec. 23, 2019, 2:27 p.m. OK Java 11 TESTS 41 233 0 2000
64906713 phantom11 D Nov. 14, 2019, 10:38 p.m. OK Java 8 TESTS 41 124 0 2000
63933300 kocko D Oct. 31, 2019, 2:55 p.m. OK Java 8 TESTS 41 124 0 2000
62350868 himanshubhardwaj169 D Oct. 11, 2019, 9:15 a.m. OK Java 8 TESTS 41 124 0 2000
62350666 himanshubhardwaj169 D Oct. 11, 2019, 9:11 a.m. OK Java 8 TESTS 41 124 0 2000
62350622 himanshubhardwaj169 D Oct. 11, 2019, 9:10 a.m. OK Java 8 TESTS 41 124 0 2000
61737237 icpc_loser D Oct. 2, 2019, 6:40 p.m. OK Java 8 TESTS 41 124 0 2000
61236572 aakashjaiswal D Sept. 24, 2019, 6:20 p.m. OK Java 8 TESTS 41 124 0 2000
60828314 serafimkoo D Sept. 19, 2019, 5:34 a.m. OK Java 8 TESTS 41 124 0 2000
60403510 vikram.jee2012 D Sept. 11, 2019, 5:37 p.m. OK Java 8 TESTS 41 124 0 2000
60397401 r_sutaria D Sept. 11, 2019, 3:26 p.m. OK Java 8 TESTS 41 124 0 2000
60371802 Spheniscine D Sept. 11, 2019, 2:46 a.m. OK Kotlin TESTS 41 171 614400 2000
60285128 Black_Fregat D Sept. 9, 2019, 1:29 a.m. OK Kotlin TESTS 41 202 1536000 2000
60550224 Kazim Quaternion D Sept. 14, 2019, 1:58 p.m. OK Kotlin TESTS 41 233 1331200 2000
60208900 eki D Sept. 7, 2019, 9:17 a.m. OK Mono C# TESTS 41 108 5427200 2000
69299397 vjudge1 D Jan. 22, 2020, 1:21 p.m. OK MS C++ TESTS 41 31 102400 2000
69226881 vjudge4 D Jan. 21, 2020, 7:39 a.m. OK MS C++ TESTS 41 31 102400 2000
61455951 vjudge3 D Sept. 29, 2019, 6:15 a.m. OK MS C++ TESTS 41 31 204800 2000
60601459 vjudge3 D Sept. 15, 2019, 8:01 a.m. OK MS C++ TESTS 41 31 307200 2000
61820031 vjudge4 D Oct. 4, 2019, 1:47 a.m. OK MS C++ TESTS 41 31 80281600 2000
63130688 vjudge3 D Oct. 22, 2019, 2:06 p.m. OK MS C++ TESTS 41 46 204800 2000
60174656 vjudge5 D Sept. 6, 2019, 1:58 p.m. OK MS C++ TESTS 41 46 204800 2000
61532990 vjudge3 D Sept. 30, 2019, 4:37 a.m. OK MS C++ 2017 TESTS 41 31 204800 2000
66303124 suun D Dec. 5, 2019, 8:10 a.m. OK MS C++ 2017 TESTS 41 31 204800 2000
60234551 CrashMaster D Sept. 7, 2019, 5:46 p.m. OK MS C++ 2017 TESTS 41 31 204800 2000
60382275 pmitkov D Sept. 11, 2019, 9:46 a.m. OK MS C++ 2017 TESTS 41 31 307200 2000
60219095 Ancient_mage D Sept. 7, 2019, 12:55 p.m. OK MS C++ 2017 TESTS 41 31 409600 2000
60191324 j2v D Sept. 6, 2019, 9:38 p.m. OK MS C++ 2017 TESTS 41 31 409600 2000
60209984 F91WoDaGe D Sept. 7, 2019, 9:42 a.m. OK MS C++ 2017 TESTS 41 31 5632000 2000
61534283 vjudge1 D Sept. 30, 2019, 5:28 a.m. OK MS C++ 2017 TESTS 41 46 204800 2000
60174515 zhangwen123 D Sept. 6, 2019, 1:55 p.m. OK MS C++ 2017 TESTS 41 46 204800 2000
60222821 Ivan_Dunko D Sept. 7, 2019, 2:17 p.m. OK MS C++ 2017 TESTS 41 46 307200 2000
60289194 MVP D Sept. 9, 2019, 5:51 a.m. OK PyPy 2 TESTS 41 202 2867200 2000
61233374 sanvi_kiit D Sept. 24, 2019, 5:17 p.m. OK PyPy 3 TESTS 41 155 3891200 2000
60737683 LionCheetah D Sept. 17, 2019, 6:18 p.m. OK PyPy 3 TESTS 41 233 4608000 2000
60261605 titia D Sept. 8, 2019, 11:44 a.m. OK PyPy 3 TESTS 41 249 5836800 2000
60499772 kshitij_sodani D Sept. 13, 2019, 6:05 p.m. OK PyPy 3 TESTS 41 249 6451200 2000
60313980 Sevlll D Sept. 9, 2019, 5:02 p.m. OK PyPy 3 TESTS 41 249 7577600 2000
61296341 erickjohnross D Sept. 26, 2019, 1:27 a.m. OK PyPy 3 TESTS 41 249 9113600 2000
60183159 rmyak D Sept. 6, 2019, 5:13 p.m. OK PyPy 3 TESTS 41 280 6144000 2000
60182967 rmyak D Sept. 6, 2019, 5:08 p.m. OK PyPy 3 TESTS 41 280 6553600 2000
60289396 xodeChemist D Sept. 9, 2019, 6:02 a.m. OK PyPy 3 TESTS 41 280 7987200 2000
60165908 deadguy D Sept. 6, 2019, 10:55 a.m. OK PyPy 3 TESTS 41 296 7987200 2000
63198055 vishnutheerthep D Oct. 22, 2019, 7:18 p.m. OK Python 3 TESTS 41 139 2355200 2000
60918574 Code_Bear D Sept. 20, 2019, 9:29 a.m. OK Python 3 TESTS 41 140 1126400 2000
60202832 the_oathbreaker D Sept. 7, 2019, 6:39 a.m. OK Python 3 TESTS 41 140 1433600 2000
60138229 smart_hard D Sept. 5, 2019, 7:02 p.m. OK Python 3 TESTS 41 140 1638400 2000
60366129 bhanu015 D Sept. 10, 2019, 9 p.m. OK Python 3 TESTS 41 140 1740800 2000
60175685 beemax D Sept. 6, 2019, 2:21 p.m. OK Python 3 TESTS 41 140 1843200 2000
60415856 YoupingFan D Sept. 12, 2019, 2:06 a.m. OK Python 3 TESTS 41 140 2150400 2000
60261624 titia D Sept. 8, 2019, 11:44 a.m. OK Python 3 TESTS 41 140 2150400 2000
61296355 erickjohnross D Sept. 26, 2019, 1:28 a.m. OK Python 3 TESTS 41 186 2150400 2000
60752875 artworks D Sept. 18, 2019, 7:20 a.m. OK Python 3 TESTS 41 311 4608000 2000
60194785 A.K.Goharshady D Sept. 7, 2019, 12:41 a.m. OK Rust TESTS 41 30 512000 2000
60234845 vanda D Sept. 7, 2019, 5:55 p.m. OK Rust TESTS 41 31 204800 2000
60198247 Lancern D Sept. 7, 2019, 3:26 a.m. OK Rust TESTS 41 31 204800 2000
61044688 sansen D Sept. 22, 2019, 3:33 a.m. OK Rust TESTS 41 46 307200 2000
60766242 mjf D Sept. 18, 2019, 11:05 a.m. OK Rust TESTS 41 46 409600 2000
60155535 limed D Sept. 6, 2019, 6:36 a.m. OK Scala TESTS 41 530 0 2000
60155253 limed D Sept. 6, 2019, 6:29 a.m. OK Scala TESTS 41 530 0 2000
60155603 limed D Sept. 6, 2019, 6:38 a.m. OK Scala TESTS 41 561 0 2000
60154937 limed D Sept. 6, 2019, 6:22 a.m. OK Scala TESTS 41 576 0 2000

remove filters

Back to search problems