Технокубок 2021 - Финал

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
1482 Технокубок 2021 - Финал FINISHED False 10800 121030811 March 21, 2021, 10:20 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9534 ) C Basic Diplomacy PROGRAMMING greedy

B'Aleksey has n friends. He is also on a vacation right now, so he has m days to play this new viral cooperative game! But since it 's cooperative, Aleksey will need one teammate in each of these m days. On each of these days some friends will be available for playing, and all others will not. On each day Aleksey must choose one of his available friends to offer him playing the game (and they, of course, always agree). However, if any of them happens to be chosen strictly more than <= ft lceil dfrac{m}{2} right rceil times, then all other friends are offended. Of course, Aleksey doesn 't want to offend anyone. Help him to choose teammates so that nobody is chosen strictly more than <= ft lceil dfrac{m}{2} right rceil times. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ,000 ). Description of the test cases follows. The first line of each test case contains two integers n and m ( 1 <= q n, m <= q 100 ,000 ) standing for the number of friends and the number of days to play, respectively. The i -th of the following m lines contains an integer k_i ( 1 <= q k_i <= q n ), followed by k_i distinct integers f_{i1} , ..., f_{ik_i} ( 1 <= q f_{ij} <= q n ), separated by spaces -- indices of available friends on the day i . It is guaranteed that the sums of n and m over all test cases do not exceed 100 ,000 . It 's guaranteed that the sum of all k_i over all days of all test cases doesn 't exceed 200 ,000 . Print an answer for each test case. If there is no way to achieve the goal, print "NO". Otherwise, in the first line print "YES", and in the second line print m space separated integers c_1 , ..., c_m . Each c_i must denote the chosen friend on day i (and therefore must be one of f_{ij} ). No value must occur more than <= ft lceil dfrac{m}{2} right '...

Tutorials

Technocup 2021: Final Round and Codeforces Round #709 — tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
110737877 cjlworld C March 22, 2021, 1:13 p.m. OK GNU C++11 TESTS 14 62 36864000
110717505 Badwin C March 22, 2021, 9:23 a.m. OK GNU C++11 TESTS 14 124 3993600
110609852 stanislau C March 21, 2021, 10:54 a.m. OK GNU C++11 TESTS 14 171 3584000
110609473 MForest C March 21, 2021, 10:51 a.m. OK GNU C++11 TESTS 14 171 4812800
110726875 ndliver C March 22, 2021, 11:17 a.m. OK GNU C++11 TESTS 14 171 6553600
110617654 arina.sm C March 21, 2021, 12:05 p.m. OK GNU C++11 TESTS 14 186 3584000
110611061 DimaTomsk C March 21, 2021, 11:04 a.m. OK GNU C++11 TESTS 14 202 4812800
110612791 inbarin C March 21, 2021, 11:19 a.m. OK GNU C++11 TESTS 14 202 6553600
110612701 dorph C March 21, 2021, 11:19 a.m. OK GNU C++11 TESTS 14 202 6963200
110610150 Enkognit C March 21, 2021, 10:56 a.m. OK GNU C++11 TESTS 14 202 8806400
110610071 uhiaoku C March 21, 2021, 10:55 a.m. OK GNU C++14 TESTS 14 77 3788800
110691326 CWHer C March 22, 2021, 1:09 a.m. OK GNU C++14 TESTS 14 77 4198400
110610000 eeestrelok C March 21, 2021, 10:55 a.m. OK GNU C++14 TESTS 14 77 5017600
110607829 usachevd0 C March 21, 2021, 10:36 a.m. OK GNU C++14 TESTS 14 77 5017600
110610963 Teasgen C March 21, 2021, 11:03 a.m. OK GNU C++14 TESTS 14 77 5120000
110609605 KblP_COCN4KA C March 21, 2021, 10:52 a.m. OK GNU C++14 TESTS 14 78 3788800
110610357 abdullinsaid C March 21, 2021, 10:58 a.m. OK GNU C++14 TESTS 14 78 4300800
110691516 MatheusLealV C March 22, 2021, 1:17 a.m. OK GNU C++14 TESTS 14 78 9011200
110612853 YanikusGG C March 21, 2021, 11:20 a.m. OK GNU C++14 TESTS 14 93 3379200
110610595 Rwarazor C March 21, 2021, 10:59 a.m. OK GNU C++14 TESTS 14 93 5836800
110607864 fedoseev.timofey C March 21, 2021, 10:36 a.m. OK GNU C++17 TESTS 14 62 3788800
110610142 Vimmer C March 21, 2021, 10:56 a.m. OK GNU C++17 TESTS 14 77 3379200
110609628 TimKo C March 21, 2021, 10:52 a.m. OK GNU C++17 TESTS 14 77 3379200
110618076 MikhailKapitov C March 21, 2021, 12:10 p.m. OK GNU C++17 TESTS 14 77 3788800
110616373 N1NT3NDO_6666 C March 21, 2021, 11:53 a.m. OK GNU C++17 TESTS 14 77 3788800
110615009 mrfoxygmfr C March 21, 2021, 11:41 a.m. OK GNU C++17 TESTS 14 77 3788800
110614378 plombeer228 C March 21, 2021, 11:35 a.m. OK GNU C++17 TESTS 14 77 3788800
110613613 ZZZGen C March 21, 2021, 11:27 a.m. OK GNU C++17 TESTS 14 77 3788800
110612554 Ujcgjlm C March 21, 2021, 11:17 a.m. OK GNU C++17 TESTS 14 77 3788800
110612414 profi C March 21, 2021, 11:16 a.m. OK GNU C++17 TESTS 14 77 3788800
110608059 Nybik C March 21, 2021, 10:38 a.m. OK GNU C++17 (64) TESTS 14 61 4812800
110609638 nikitagolu8ev C March 21, 2021, 10:52 a.m. OK GNU C++17 (64) TESTS 14 61 5222400
110611997 tzar_of_the_volleyball C March 21, 2021, 11:12 a.m. OK GNU C++17 (64) TESTS 14 61 5529600
110612676 Galebickosikasa C March 21, 2021, 11:18 a.m. OK GNU C++17 (64) TESTS 14 61 6656000
110610704 bulat_gayazov C March 21, 2021, 11:01 a.m. OK GNU C++17 (64) TESTS 14 61 6656000
110610649 Vladikus004 C March 21, 2021, 11 a.m. OK GNU C++17 (64) TESTS 14 61 6656000
110611235 almost_nutella C March 21, 2021, 11:05 a.m. OK GNU C++17 (64) TESTS 14 61 7270400
110608458 antony191 C March 21, 2021, 10:41 a.m. OK GNU C++17 (64) TESTS 14 61 7270400
110611688 aafonin C March 21, 2021, 11:09 a.m. OK GNU C++17 (64) TESTS 14 61 7475200
110609292 Artyom123 C March 21, 2021, 10:49 a.m. OK GNU C++17 (64) TESTS 14 61 7475200
110704522 0x3F C March 22, 2021, 6:30 a.m. OK Go TESTS 14 156 4915200
110704484 0x3F C March 22, 2021, 6:29 a.m. OK Go TESTS 14 171 4915200
110705110 0x3F C March 22, 2021, 6:38 a.m. OK Go TESTS 14 186 4915200
110622591 Tardimgg C March 21, 2021, 12:55 p.m. OK Java 11 TESTS 14 311 5120000
110689071 4mda4mda C March 21, 2021, 11:24 p.m. OK Java 8 TESTS 14 170 0
110615147 Shokersss C March 21, 2021, 11:42 a.m. OK Java 8 TESTS 14 187 0
110733657 dingzhao777 C March 22, 2021, 12:27 p.m. OK MS C++ 2017 TESTS 14 109 3174400
110614541 Sorqen C March 21, 2021, 11:36 a.m. OK MS C++ 2017 TESTS 14 139 3993600
110610881 _TheLostDesu_ C March 21, 2021, 11:02 a.m. OK MS C++ 2017 TESTS 14 234 3174400
110611502 egordunaev C March 21, 2021, 11:08 a.m. OK MS C++ 2017 TESTS 14 234 5939200
110613870 127.0.0.1. C March 21, 2021, 11:30 a.m. OK MS C++ 2017 TESTS 14 249 7372800
110614410 o-sky C March 21, 2021, 11:35 a.m. OK MS C++ 2017 TESTS 14 265 3993600
110625242 Danny_boy C March 21, 2021, 1:17 p.m. OK MS C++ 2017 TESTS 14 265 5120000
110618524 Zhuravlev_Vyacheslav C March 21, 2021, 12:14 p.m. OK MS C++ 2017 TESTS 14 280 4710400
110613829 teoretik C March 21, 2021, 11:30 a.m. OK MS C++ 2017 TESTS 14 280 8908800
110613311 NewLul C March 21, 2021, 11:24 a.m. OK MS C++ 2017 TESTS 14 311 12492800
110754149 watarimaycry2 C March 22, 2021, 4:25 p.m. OK Node.js TESTS 14 342 34201600
110614897 EzikBro C March 21, 2021, 11:39 a.m. OK PyPy 3 TESTS 14 342 17920000
110619875 Arsen4ikVar C March 21, 2021, 12:28 p.m. OK PyPy 3 TESTS 14 343 24473600
110742018 jimm89 C March 22, 2021, 2 p.m. OK PyPy 3 TESTS 14 420 26521600
110609374 Lol2004 C March 21, 2021, 10:50 a.m. OK PyPy 3 TESTS 14 1153 19558400
110613590 ulyabelyaeva C March 21, 2021, 11:27 a.m. OK PyPy 3 TESTS 14 1153 28467200
110621787 IrinaKarpova7G C March 21, 2021, 12:47 p.m. OK PyPy 3 TESTS 14 1169 22528000
110612264 legion C March 21, 2021, 11:15 a.m. OK PyPy 3 TESTS 14 1184 22323200
110614487 Zvyagintsev.A C March 21, 2021, 11:36 a.m. OK PyPy 3 TESTS 14 1216 16076800
110721881 Ravivek080 C March 22, 2021, 10:17 a.m. OK Python 3 TESTS 14 623 13107200
110611162 klkvr C March 21, 2021, 11:05 a.m. OK Python 3 TESTS 14 685 17408000

remove filters

Back to search problems