Codeforces Round 604 (Div. 1)

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
1264 Codeforces Round 604 (Div. 1) FINISHED False 7200 156266699 Dec. 5, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 816 ) E Beautiful League PROGRAMMING constructive algorithms flows graph matchings 2700

B"A football league has recently begun in Beautiful land. There are n teams participating in the league. Let's enumerate them with integers from 1 to n . There will be played exactly frac{n(n-1)}{2} matches: each team will play against all other teams exactly once. In each match, there is always a winner and loser and there is no draw. After all matches are played, the organizers will count the number of beautiful triples. Let's call a triple of three teams (A, B, C) beautiful if a team A win against a team B , a team B win against a team C and a team C win against a team A . We look only to a triples of different teams and the order of teams in the triple is important. The beauty of the league is the number of beautiful triples. At the moment, m matches were played and their results are known. What is the maximum beauty of the league that can be, after playing all remaining matches? Also find a possible results for all remaining frac{n(n-1)}{2} - m matches, so that the league has this maximum beauty. The first line contains two integers n, m ( 3 <= q n <= q 50, 0 <= q m <= q frac{n(n-1)}{2} ) -- the number of teams in the football league and the number of matches that were played. Each of m following lines contains two integers u and v ( 1 <= q u, v <= q n , u neq v ) denoting that the u -th team won against the v -th team. It is guaranteed that each unordered pair of teams appears at most once. Print n lines, each line having a string of exactly n characters. Each character must be either 0 or 1 . Let a_{ij} be the j -th number in the i -th line. For all 1 <= q i <= q n it should be true, that a_{ii} = 0 . For all pairs of teams i neq j the number a_{ij} indicates the result of the match between the i -th team and the j -th team: Also note that the results of"...

Tutorials

71995

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66374207 hos.lyric E Dec. 6, 2019, 1:27 a.m. OK D TESTS 212 46 4198400 2700
66374184 hos.lyric E Dec. 6, 2019, 1:25 a.m. OK D TESTS 212 46 4198400 2700
66371853 yosupo E Dec. 5, 2019, 10:56 p.m. OK D TESTS 212 124 4198400 2700
66364509 hos.lyric E Dec. 5, 2019, 6:54 p.m. OK D TESTS 212 296 4198400 2700
66364456 hos.lyric E Dec. 5, 2019, 6:53 p.m. OK D TESTS 212 296 4198400 2700
66365509 hos.lyric E Dec. 5, 2019, 7:14 p.m. OK D TESTS 212 327 11980800 2700
66363436 hos.lyric E Dec. 5, 2019, 6:35 p.m. OK D TESTS 212 795 4300800 2700
66365596 hos.lyric E Dec. 5, 2019, 7:17 p.m. OK D TESTS 212 811 4300800 2700
66374906 luogu_bot1 E Dec. 6, 2019, 2:02 a.m. OK GNU C++11 TESTS 212 31 204800 2700
66373701 memset0c E Dec. 6, 2019, 12:52 a.m. OK GNU C++11 TESTS 212 31 204800 2700
66341791 Apollochen E Dec. 5, 2019, 3:33 p.m. OK GNU C++11 TESTS 212 31 1843200 2700
69818193 cuizhuyefei E Jan. 30, 2020, 6:51 a.m. OK GNU C++11 TESTS 219 31 3788800 2700
68072895 Verly E Jan. 2, 2020, 11:11 a.m. OK GNU C++11 TESTS 219 31 12185600 2700
68306255 __trrbivial_innocence E Jan. 6, 2020, 9:06 a.m. OK GNU C++11 TESTS 219 31 21401600 2700
66361724 memset0c E Dec. 5, 2019, 6:11 p.m. OK GNU C++11 TESTS 212 46 204800 2700
66643669 BigBag E Dec. 11, 2019, 3:46 p.m. OK GNU C++11 TESTS 219 46 512000 2700
66372885 cjy2003 E Dec. 5, 2019, 11:58 p.m. OK GNU C++11 TESTS 212 46 1638400 2700
66358017 Gromah E Dec. 5, 2019, 4:34 p.m. OK GNU C++11 TESTS 212 46 1638400 2700
66641786 yutaka1999 E Dec. 11, 2019, 3:01 p.m. OK GNU C++14 TESTS 219 31 204800 2700
66348551 melancholic_fat_otaku E Dec. 5, 2019, 3:59 p.m. OK GNU C++14 TESTS 212 31 409600 2700
66355750 wifiiiiii E Dec. 5, 2019, 4:27 p.m. OK GNU C++14 TESTS 212 31 1843200 2700
66427359 icecuber E Dec. 6, 2019, 10:52 p.m. OK GNU C++14 TESTS 212 46 0 2700
66351642 nick452 E Dec. 5, 2019, 4:11 p.m. OK GNU C++14 TESTS 212 46 204800 2700
66507467 Deng1X E Dec. 8, 2019, 3 p.m. OK GNU C++14 TESTS 219 46 614400 2700
66352840 uuzlovetree E Dec. 5, 2019, 4:16 p.m. OK GNU C++14 TESTS 212 46 921600 2700
66625858 sher_wu E Dec. 11, 2019, 9 a.m. OK GNU C++14 TESTS 219 62 819200 2700
66383081 AuqaKyz E Dec. 6, 2019, 6:26 a.m. OK GNU C++14 TESTS 212 62 3584000 2700
66331679 ainta E Dec. 5, 2019, 3:02 p.m. OK GNU C++14 TESTS 212 62 23040000 2700
66445131 ryo_issy E Dec. 7, 2019, 9:21 a.m. OK GNU C++17 TESTS 212 31 0 2700
66389805 Elegia E Dec. 6, 2019, 8:45 a.m. OK GNU C++17 TESTS 212 31 0 2700
66389690 Elegia E Dec. 6, 2019, 8:42 a.m. OK GNU C++17 TESTS 212 31 0 2700
66371836 LordVoIdebug E Dec. 5, 2019, 10:55 p.m. OK GNU C++17 TESTS 212 31 0 2700
69445129 CN_zwang2002 E Jan. 24, 2020, 2:07 a.m. OK GNU C++17 TESTS 219 31 204800 2700
68753144 vjudge2 E Jan. 14, 2020, 7:24 a.m. OK GNU C++17 TESTS 219 31 204800 2700
67445278 saketh E Dec. 22, 2019, 9:44 p.m. OK GNU C++17 TESTS 219 31 204800 2700
66797700 JHSN E Dec. 13, 2019, 5:38 p.m. OK GNU C++17 TESTS 219 31 204800 2700
66498793 Xellos E Dec. 8, 2019, 11:39 a.m. OK GNU C++17 TESTS 219 31 204800 2700
66482843 BetterThanNobita E Dec. 8, 2019, 4:11 a.m. OK GNU C++17 TESTS 219 31 204800 2700
66510262 fetetriste E Dec. 8, 2019, 4:12 p.m. OK Java 8 TESTS 219 202 0 2700
66510036 fetetriste E Dec. 8, 2019, 4:05 p.m. OK Java 8 TESTS 219 295 0 2700
66510098 fetetriste E Dec. 8, 2019, 4:07 p.m. OK Java 8 TESTS 219 296 0 2700
66508649 fetetriste E Dec. 8, 2019, 3:29 p.m. OK Java 8 TESTS 219 296 0 2700
66376765 dalt E Dec. 6, 2019, 3:18 a.m. OK Java 8 TESTS 212 530 23552000 2700
67465125 Taiber009 E Dec. 23, 2019, 10:46 a.m. OK MS C++ 2017 TESTS 219 46 307200 2700
67277661 gearjack E Dec. 20, 2019, 10:49 a.m. OK Rust TESTS 219 93 1228800 2700

remove filters

Back to search problems