Educational Codeforces Round 113 (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
1569 Educational Codeforces Round 113 (Rated for Div. 2) FINISHED False 7200 100711499 Sept. 8, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18925 ) B Chess Tournament PROGRAMMING constructive algorithms #python

B"A chess tournament will be held soon, where n chess players will take part. Every participant will play one game against every other participant. Each game ends in either a win for one player and a loss for another player, or a draw for both players. Each of the players has their own expectations about the tournament, they can be one of two types: You have to determine if there exists an outcome for all the matches such that all the players meet their expectations. If there are several possible outcomes, print any of them. If there are none, report that it's impossible. The first line contains a single integer t ( 1 <= t <= 200 ) -- the number of test cases. The first line of each test case contains one integer n ( 2 <= n <= 50 ) -- the number of chess players. The second line contains the string s ( |s| = n ; s_i in {1, 2 } ). If s_i = 1 , then the i -th player has expectations of the first type, otherwise of the second type. For each test case, print the answer in the following format: In the first line, print NO if it is impossible to meet the expectations of all players. Otherwise, print YES, and the matrix of size n x n in the next n lines. The matrix element in the i -th row and j -th column should be equal to: "...

Tutorials

94721

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
128290414 cyrus_msk B Sept. 8, 2021, 6:34 p.m. OK D TESTS 4 46 6656000
128281587 KongJohnny B Sept. 8, 2021, 4:49 p.m. OK GNU C++14 TESTS 4 15 0
128272608 soumya21 B Sept. 8, 2021, 4:19 p.m. OK GNU C++14 TESTS 4 15 0
128275535 knows0no0algo B Sept. 8, 2021, 4:27 p.m. OK GNU C++14 TESTS 4 15 102400
128279069 Ashar2301 B Sept. 8, 2021, 4:34 p.m. OK GNU C++14 TESTS 4 15 921600
128279257 sidtri2000 B Sept. 8, 2021, 4:36 p.m. OK GNU C++14 TESTS 4 15 3686400
128284581 PrinceRajor B Sept. 8, 2021, 5:15 p.m. OK GNU C++14 TESTS 4 15 3686400
128281251 6064shreya B Sept. 8, 2021, 4:47 p.m. OK GNU C++14 TESTS 4 15 3686400
128313741 siddharth_997 B Sept. 9, 2021, 5:23 a.m. OK GNU C++14 TESTS 4 15 3686400
128301406 juruo_c B Sept. 8, 2021, 11:54 p.m. OK GNU C++14 TESTS 4 15 3686400
128296485 psun256 B Sept. 8, 2021, 8:38 p.m. OK GNU C++14 TESTS 4 15 3686400
128273117 JlKmn B Sept. 8, 2021, 4:21 p.m. OK .NET Core C# TESTS 4 93 17510400
128281300 e.ramos B Sept. 8, 2021, 4:47 p.m. OK .NET Core C# TESTS 4 1512 11366400

remove filters

Back to search problems