Codeforces Round 443 (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
878 Codeforces Round 443 (Div. 1) FINISHED False 7200 267376523 Oct. 26, 2017, 2:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1024 ) C Tournament PROGRAMMING data structures graphs 2800

Recently a tournament in k kinds of sports has begun in Berland. Vasya wants to make money on the bets. The scheme of the tournament is very mysterious and not fully disclosed. Competitions are held back to back, each of them involves two sportsmen who have not left the tournament yet. Each match can be held in any of the k kinds of sport. Loser leaves the tournament. The last remaining sportsman becomes the winner. Apart of this, the scheme can be arbitrary, it is not disclosed in advance. Vasya knows powers of sportsmen in each kind of sport. He believes that the sportsmen with higher power always wins. The tournament is held every year, and each year one new participant joins it. In the first tournament, only one sportsman has participated, in the second there were two sportsmen, and so on. Vasya has been watching the tournament for the last n years. Help him to find the number of possible winners for each of the n tournaments. The first line contains two integers n and k ( 1 ≤ n ≤ 5·10 4 , 1 ≤ k ≤ 10 ) — the number of tournaments and the number of kinds of sport, respectively. Each of the next n lines contains k integers s i 1 , s i 2 , ..., s ik ( 1 ≤ s ij ≤ 10 9 ), where s ij is the power of the i -th sportsman in the j -th kind of sport. The sportsman with higher powers always wins. It's guaranteed that for any kind of sport all of these powers are distinct. For each of the n tournaments output the number of contenders who can win. In the first sample: In the first tournament there is only one sportsman, and he is the winner. In the second tournament, there are two sportsmen, and everyone can defeat another, depending on kind of sports. In the third tournament, the third sportsman in the strongest in both kinds of sports, so he is the winner regardless of the scheme.

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42302250 Scut82 C Aug. 31, 2018, 8:37 a.m. OK GNU C++ TESTS 56 46 5632000 2800
34430175 vjudge3 C Jan. 22, 2018, 2:53 a.m. OK GNU C++ TESTS 56 46 8192000 2800
42300497 Scut82 C Aug. 31, 2018, 7:18 a.m. OK GNU C++ TESTS 56 61 5734400 2800
35730301 Scut82 C Feb. 26, 2018, 11:50 a.m. OK GNU C++ TESTS 56 61 7884800 2800
34430188 yukuai26 C Jan. 22, 2018, 2:54 a.m. OK GNU C++ TESTS 56 61 8192000 2800
33236744 vjudge4 C Dec. 14, 2017, 10:48 a.m. OK GNU C++ TESTS 56 61 9318400 2800
42261254 Scut82 C Aug. 30, 2018, 3:24 a.m. OK GNU C++ TESTS 56 62 6451200 2800
42264174 Scut82 C Aug. 30, 2018, 6:05 a.m. OK GNU C++ TESTS 56 62 6553600 2800
36299530 Heaplax C March 15, 2018, 12:34 p.m. OK GNU C++ TESTS 56 62 8192000 2800
36299697 Heaplax C March 15, 2018, 12:40 p.m. OK GNU C++ TESTS 56 77 8192000 2800
45124997 zhoudong C Oct. 31, 2018, 7:28 a.m. OK GNU C++11 TESTS 56 61 6041600 2800
31777334 laofudasuan C Oct. 27, 2017, 2:20 a.m. OK GNU C++11 TESTS 56 61 10854400 2800
45122111 yugao C Oct. 31, 2018, 5:28 a.m. OK GNU C++11 TESTS 56 62 5632000 2800
31880332 Xi_Jinping C Oct. 30, 2017, 3 a.m. OK GNU C++11 TESTS 56 62 5734400 2800
31880327 Xi_Jinping C Oct. 30, 2017, 2:59 a.m. OK GNU C++11 TESTS 56 62 5734400 2800
45154708 gaojunonly1 C Oct. 31, 2018, 11:34 p.m. OK GNU C++11 TESTS 56 62 6144000 2800
41274594 dengyixuan C Aug. 6, 2018, 12:28 p.m. OK GNU C++11 TESTS 56 62 6144000 2800
38598103 yukuai26 C May 24, 2018, 11:52 p.m. OK GNU C++11 TESTS 56 62 6144000 2800
31840686 choutii C Oct. 28, 2017, 2:17 p.m. OK GNU C++11 TESTS 56 62 6144000 2800
31840702 choutii C Oct. 28, 2017, 2:17 p.m. OK GNU C++11 TESTS 56 62 6246400 2800
31812809 Egor.Lifar C Oct. 27, 2017, 4:46 p.m. OK GNU C++14 TESTS 56 61 11980800 2800
40979402 ReaLNero1 C July 30, 2018, 5:03 p.m. OK GNU C++14 TESTS 56 62 10342400 2800
34409197 q234rty C Jan. 21, 2018, 10:16 a.m. OK GNU C++14 TESTS 56 62 18636800 2800
43987911 lunch C Oct. 8, 2018, 8:26 a.m. OK GNU C++14 TESTS 56 77 15462400 2800
32130102 Meowl C Nov. 7, 2017, 8:25 p.m. OK GNU C++14 TESTS 56 124 5836800 2800
31756909 MrDindows C Oct. 26, 2017, 3:48 p.m. OK GNU C++14 TESTS 56 139 11980800 2800
31884295 nkang4 C Oct. 30, 2017, 7:58 a.m. OK GNU C++14 TESTS 56 140 5836800 2800
31752735 dotorya C Oct. 26, 2017, 3:26 p.m. OK GNU C++14 TESTS 56 140 5836800 2800
32652902 madn C Nov. 25, 2017, 4:56 p.m. OK GNU C++14 TESTS 56 155 8192000 2800
31761336 zeliboba C Oct. 26, 2017, 4:18 p.m. OK GNU C++14 TESTS 56 155 10854400 2800
45281391 Trisolaris C Nov. 4, 2018, 2 p.m. OK GNU C++17 TESTS 56 62 6144000 2800
45378651 Playnext C Nov. 6, 2018, 1:36 p.m. OK GNU C++17 TESTS 56 62 12288000 2800
65459712 A_Fan_of_the_AK_King--lk C Nov. 21, 2019, 12:36 a.m. OK GNU C++17 TESTS 56 140 10752000 2800
45201682 sys. C Nov. 2, 2018, 10:23 a.m. OK GNU C++17 TESTS 56 155 13414400 2800
53287444 vjudge4 C April 25, 2019, 2:24 p.m. OK GNU C++17 TESTS 56 156 5836800 2800
52497593 vjudge4 C April 8, 2019, 2:26 p.m. OK GNU C++17 TESTS 56 156 5836800 2800
52497562 Amano_Sei C April 8, 2019, 2:25 p.m. OK GNU C++17 TESTS 56 156 5836800 2800
52492485 vjudge1 C April 8, 2019, 12:16 p.m. OK GNU C++17 TESTS 56 156 5836800 2800
47230685 arock C Dec. 18, 2018, 5:58 p.m. OK GNU C++17 TESTS 56 170 7884800 2800
56031282 hjk1030 C June 25, 2019, 9:40 a.m. OK GNU C++17 TESTS 56 171 5836800 2800
38875277 Golmol C June 2, 2018, 6:02 a.m. OK Java 8 TESTS 56 234 27033600 2800
31768684 uwi C Oct. 26, 2017, 6:10 p.m. OK Java 8 TESTS 56 280 4812800 2800
32847170 GrahamFlora C Dec. 2, 2017, 5 a.m. OK Java 8 TESTS 56 280 27033600 2800
31838054 Raynger C Oct. 28, 2017, 1:02 p.m. OK Java 8 TESTS 56 296 4300800 2800
34533314 tri C Jan. 25, 2018, 1:59 a.m. OK Java 8 TESTS 56 311 27033600 2800
32155423 hiukim C Nov. 9, 2017, 10:48 a.m. OK Java 8 TESTS 56 436 4096000 2800
31761461 Lewin C Oct. 26, 2017, 4:19 p.m. OK Java 8 TESTS 56 452 5632000 2800
36438347 Nelearin C March 20, 2018, 4:49 p.m. OK Java 8 TESTS 56 468 26726400 2800
32942915 Genrie C Dec. 5, 2017, 8:30 a.m. OK Java 8 TESTS 56 483 26726400 2800
36558719 Odin1337 C March 24, 2018, 12:29 a.m. OK Java 8 TESTS 56 530 46592000 2800
31771002 Taube C Oct. 26, 2017, 7:26 p.m. OK MS C++ TESTS 56 420 59904000 2800
31877714 AleksanderBalobanov C Oct. 29, 2017, 9:41 p.m. OK MS C++ TESTS 56 717 22118400 2800
31850885 AleksanderBalobanov C Oct. 28, 2017, 9:01 p.m. OK MS C++ TESTS 56 1248 24166400 2800
31870009 AleksanderBalobanov C Oct. 29, 2017, 2:49 p.m. OK MS C++ TESTS 56 1278 24268800 2800

remove filters

Back to search problems