Educational Codeforces Round 80 (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
1288 Educational Codeforces Round 80 (Rated for Div. 2) FINISHED False 7200 158340311 Jan. 14, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 536 ) F Red-Blue Graph PROGRAMMING constructive algorithms flows 2900

B"You are given a bipartite graph: the first part of this graph contains n_1 vertices, the second part contains n_2 vertices, and there are m edges. The graph can contain multiple edges. Initially, each edge is colorless. For each edge, you may either leave it uncolored (it is free), paint it red (it costs r coins) or paint it blue (it costs b coins). No edge can be painted red and blue simultaneously. There are three types of vertices in this graph -- colorless, red and blue. Colored vertices impose additional constraints on edges' colours: Colorless vertices impose no additional constraints. Your goal is to paint some (possibly none) edges so that all constraints are met, and among all ways to do so, you should choose the one with minimum total cost. The first line contains five integers n_1 , n_2 , m , r and b ( 1 <= n_1, n_2, m, r, b <= 200 ) -- the number of vertices in the first part, the number of vertices in the second part, the number of edges, the amount of coins you have to pay to paint an edge red, and the amount of coins you have to pay to paint an edge blue, respectively. The second line contains one string consisting of n_1 characters. Each character is either U, R or B. If the i -th character is U, then the i -th vertex of the first part is uncolored; R corresponds to a red vertex, and B corresponds to a blue vertex. The third line contains one string consisting of n_2 characters. Each character is either U, R or B. This string represents the colors of vertices of the second part in the same way. Then m lines follow, the i -th line contains two integers u_i and v_i ( 1 <= u_i <= n_1 , 1 <= v_i <= n_2 ) denoting an edge connecting the vertex u_i from the first part and the vertex v_i from the second part. The graph may contain multiple edges. If there is no coloring that meets all the constraints, print one in"...

Tutorials

Educational Codeforces Round 80 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
68948381 rainboy F Jan. 16, 2020, 5:02 p.m. OK GNU C11 TESTS 135 31 102400 2900
69058654 rainboy F Jan. 18, 2020, 3:32 p.m. OK GNU C11 TESTS 135 46 102400 2900
68999376 temp06 F Jan. 17, 2020, 6:50 p.m. OK GNU C++11 TESTS 135 31 102400 2900
68850508 cjy2003 F Jan. 15, 2020, 8:49 a.m. OK GNU C++11 TESTS 135 31 204800 2900
68807458 FSTForces F Jan. 14, 2020, 3:50 p.m. OK GNU C++11 TESTS 135 31 409600 2900
69278763 cschenshuo F Jan. 22, 2020, 4:33 a.m. OK GNU C++11 TESTS 136 31 512000 2900
69506345 lyuankai F Jan. 25, 2020, 8:46 a.m. OK GNU C++11 TESTS 136 31 1638400 2900
69455865 cuizhuyefei F Jan. 24, 2020, 8:36 a.m. OK GNU C++11 TESTS 136 31 3788800 2900
69191031 pufanyi F Jan. 20, 2020, 1:31 p.m. OK GNU C++11 TESTS 136 31 6041600 2900
68845485 ddytxdy F Jan. 15, 2020, 7:16 a.m. OK GNU C++11 TESTS 135 31 15052800 2900
69457363 mmmod_lqs F Jan. 24, 2020, 9:12 a.m. OK GNU C++11 TESTS 136 31 16281600 2900
69277991 Binary_Search_Tree F Jan. 22, 2020, 3:59 a.m. OK GNU C++11 TESTS 136 31 38092800 2900
69545395 Jayce132 F Jan. 26, 2020, 2:02 a.m. OK GNU C++14 TESTS 136 30 37068800 2900
68814476 tmwilliamlin168 F Jan. 14, 2020, 4:23 p.m. OK GNU C++14 TESTS 135 31 204800 2900
68947343 stefanp.korn F Jan. 16, 2020, 4:40 p.m. OK GNU C++14 TESTS 135 31 204800 2900
68963079 dr.ken F Jan. 17, 2020, 2:50 a.m. OK GNU C++14 TESTS 135 31 307200 2900
69278694 MagicSpark F Jan. 22, 2020, 4:30 a.m. OK GNU C++14 TESTS 136 31 307200 2900
68812024 Benq F Jan. 14, 2020, 4:11 p.m. OK GNU C++14 TESTS 135 31 307200 2900
68960809 Nson F Jan. 17, 2020, 12:35 a.m. OK GNU C++14 TESTS 135 31 512000 2900
69255698 Nson F Jan. 21, 2020, 3:35 p.m. OK GNU C++14 TESTS 136 31 512000 2900
68962957 MakeSPGreatAgain F Jan. 17, 2020, 2:45 a.m. OK GNU C++14 TESTS 135 31 512000 2900
68908647 860579 F Jan. 16, 2020, 7:14 a.m. OK GNU C++14 TESTS 135 31 512000 2900
68986048 ivan100sic F Jan. 17, 2020, 12:32 p.m. OK GNU C++17 TESTS 135 31 0 2900
69076514 gongsuidashen F Jan. 19, 2020, 3:37 a.m. OK GNU C++17 TESTS 136 31 102400 2900
68939868 ForJoy F Jan. 16, 2020, 2:04 p.m. OK GNU C++17 TESTS 135 31 204800 2900
68939416 ForJoy F Jan. 16, 2020, 1:55 p.m. OK GNU C++17 TESTS 135 31 204800 2900
68875491 SheepRanger F Jan. 15, 2020, 4:46 p.m. OK GNU C++17 TESTS 135 31 204800 2900
69205706 quailty F Jan. 20, 2020, 5:56 p.m. OK GNU C++17 TESTS 136 31 204800 2900
69588244 hjj F Jan. 26, 2020, 8:51 p.m. OK GNU C++17 TESTS 136 31 204800 2900
69041903 rojis85518 F Jan. 18, 2020, 10:14 a.m. OK GNU C++17 TESTS 135 31 204800 2900
69075918 neal F Jan. 19, 2020, 3:05 a.m. OK GNU C++17 TESTS 136 31 307200 2900
69079454 neal F Jan. 19, 2020, 5:39 a.m. OK GNU C++17 TESTS 136 31 307200 2900
69058653 Dukkha F Jan. 18, 2020, 3:32 p.m. OK Java 11 TESTS 135 202 204800 2900
68948447 Dukkha F Jan. 16, 2020, 5:03 p.m. OK Java 11 TESTS 135 233 204800 2900
68829351 about F Jan. 14, 2020, 8:55 p.m. OK Java 8 TESTS 135 124 0 2900
68836687 dalt F Jan. 15, 2020, 3:37 a.m. OK Java 8 TESTS 135 140 20172800 2900
68814904 Apsara F Jan. 14, 2020, 4:25 p.m. OK MS C++ TESTS 135 46 18124800 2900

remove filters

Back to search problems