2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
1267 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 156639599 Dec. 1, 2019, 7 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3296 ) E Elections PROGRAMMING greedy 1700

B'Byteburg Senate elections are coming. Usually "United Byteland", the ruling Byteland party, takes all the seats in the Senate to ensure stability and sustainable development. But this year there is one opposition candidate in one of the constituencies. Even one opposition member can disturb the stability in the Senate, so the head of the Party asks you to ensure that the opposition candidate will not be elected. There are n candidates, numbered from 1 to n . Candidate n is the opposition candidate. There are m polling stations in the constituency, numbered from 1 to m . You know the number of votes cast for each candidate at each polling station. The only thing you can do to prevent the election of the opposition candidate is to cancel the election results at some polling stations. The opposition candidate will be elected if the sum of the votes cast in their favor at all non-canceled stations will be strictly greater than the analogous sum for every other candidate. Your task is to prevent the election of the opposition candidate by canceling the election results at the minimal possible number of polling stations. Notice that solution always exists, because if you cancel the elections at all polling stations, the number of votes for each candidate will be 0, and the opposition candidate will not be elected. The first line of the input contains two integers n and m ( 2 <= n <= 100 ; 1 <= m <= 100 ) -- the number of candidates and the number of polling stations. The next m lines contain the election results at each polling station with n numbers on each line. In the i -th line the j -th number is a_{i,j} -- the number of votes cast for the candidate j at the station i ( 0 <= a_{i,j} <= 1 ,000 ). In the first line output integer k -- the minimal number of the polling stations in which you need to cancel the election results. In the second line output '...

Tutorials

nerc-2019-tutorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66115613 YOK E Dec. 1, 2019, 9:40 a.m. OK GNU C11 TESTS 27 31 102400 1700
66102694 yang12138 E Dec. 1, 2019, 8:37 a.m. OK GNU C++11 TESTS 27 31 0 1700
66101056 shangxiaomi E Dec. 1, 2019, 8:26 a.m. OK GNU C++11 TESTS 27 31 0 1700
66097415 Starlit dahcloc E Dec. 1, 2019, 8:07 a.m. OK GNU C++11 TESTS 27 31 0 1700
66096074 CHENRUIJIE wanghaoze nanatoday E Dec. 1, 2019, 7:56 a.m. OK GNU C++11 TESTS 27 31 0 1700
66094130 wbs501 lyh uniea E Dec. 1, 2019, 7:43 a.m. OK GNU C++11 TESTS 27 31 0 1700
66093436 Makaveli Hazyknight E Dec. 1, 2019, 7:38 a.m. OK GNU C++11 TESTS 27 31 0 1700
66093243 DepthFirstSearch E Dec. 1, 2019, 7:34 a.m. OK GNU C++11 TESTS 27 31 0 1700
66092717 hkyiitd smartnj kal013 E Dec. 1, 2019, 7:31 a.m. OK GNU C++11 TESTS 27 31 0 1700
66132759 sakib_muhit E Dec. 1, 2019, 11:07 a.m. OK GNU C++11 TESTS 27 31 0 1700
66126330 colazcy E Dec. 1, 2019, 10:31 a.m. OK GNU C++11 TESTS 27 31 0 1700
66109856 Shady712 __cucumber__ MForest E Dec. 1, 2019, 9:24 a.m. OK GNU C++14 TESTS 27 15 0 1700
66095268 adarsh7777 E Dec. 1, 2019, 7:53 a.m. OK GNU C++14 TESTS 27 15 102400 1700
66094907 noimi fuppy noshi91 E Dec. 1, 2019, 7:47 a.m. OK GNU C++14 TESTS 27 15 204800 1700
66094059 BlueDiamond E Dec. 1, 2019, 7:41 a.m. OK GNU C++14 TESTS 27 15 204800 1700
66092621 latte0119 ei133333 E Dec. 1, 2019, 7:30 a.m. OK GNU C++14 TESTS 27 15 204800 1700
66092024 square1001 kort0n risujiroh E Dec. 1, 2019, 7:25 a.m. OK GNU C++14 TESTS 27 15 204800 1700
66109365 ankusht aman_9875 E Dec. 1, 2019, 9:12 a.m. OK GNU C++14 TESTS 27 15 204800 1700
66109859 V--o_o--V E Dec. 1, 2019, 9:24 a.m. OK GNU C++14 TESTS 27 15 409600 1700
66107211 shdut E Dec. 1, 2019, 8:56 a.m. OK GNU C++14 TESTS 27 30 102400 1700
66095937 foreverlasting Minamoto E Dec. 1, 2019, 7:54 a.m. OK GNU C++14 TESTS 27 30 102400 1700
66091634 bjn pazabol KhanhHoa_NNTan E Dec. 1, 2019, 7:22 a.m. OK GNU C++17 TESTS 27 15 102400 1700
66094271 pogson Scissors_Ss LoNgLoNgDoUblE E Dec. 1, 2019, 7:45 a.m. OK GNU C++17 TESTS 27 15 204800 1700
66120997 ParaSpawn iamssk spellstaker E Dec. 1, 2019, 10:09 a.m. OK GNU C++17 TESTS 27 15 204800 1700
66092303 Mahir83 Ajax Ashishgup E Dec. 1, 2019, 7:29 a.m. OK GNU C++17 TESTS 27 15 204800 1700
66092157 little_waxberry yht_boyfriend ppc_qjd E Dec. 1, 2019, 7:27 a.m. OK GNU C++17 TESTS 27 15 204800 1700
66092729 Mohan_abhyas shubham__36 rahulb E Dec. 1, 2019, 7:32 a.m. OK GNU C++17 TESTS 27 15 307200 1700
66095218 almosh Makarov MadMax E Dec. 1, 2019, 7:52 a.m. OK GNU C++17 TESTS 27 15 307200 1700
66092311 MasterTr Avny nghethuat102 E Dec. 1, 2019, 7:29 a.m. OK GNU C++17 TESTS 27 15 307200 1700
66097368 Mahdi_Shokoufi N.N_2004 This0is0the0end E Dec. 1, 2019, 8:07 a.m. OK GNU C++17 TESTS 27 15 307200 1700
66135120 _SD E Dec. 1, 2019, 11:54 a.m. OK GNU C++17 TESTS 27 15 409600 1700
66132563 kicoklaiber E Dec. 1, 2019, 11:02 a.m. OK Java 11 TESTS 27 233 307200 1700
66094098 KharYusuf E Dec. 1, 2019, 7:42 a.m. OK Java 8 TESTS 27 109 0 1700
66102477 Nutella3000 E Dec. 1, 2019, 8:33 a.m. OK Java 8 TESTS 27 124 0 1700
66094253 fetetriste E Dec. 1, 2019, 7:45 a.m. OK Java 8 TESTS 27 156 0 1700
66101118 jjluczyn E Dec. 1, 2019, 8:27 a.m. OK Java 8 TESTS 27 156 0 1700
66116366 Spheniscine E Dec. 1, 2019, 9:56 a.m. OK Kotlin TESTS 27 155 1433600 1700
66100895 knightL E Dec. 1, 2019, 8:23 a.m. OK Kotlin TESTS 27 171 1843200 1700
66103920 peregrinus BrainFreeze E Dec. 1, 2019, 8:39 a.m. OK Mono C# TESTS 27 62 72294400 1700
66105615 m1trand1r NoiseLess Dmitrenko E Dec. 1, 2019, 8:50 a.m. OK MS C++ 2017 TESTS 27 31 409600 1700
66094343 qbao_asdasd AslanX_X MinhNguye E Dec. 1, 2019, 7:46 a.m. OK MS C++ 2017 TESTS 27 46 409600 1700
66118864 SinKing E Dec. 1, 2019, 10:07 a.m. OK PyPy 3 TESTS 27 156 1945600 1700
66101281 ninadc rsd511 mithil467 E Dec. 1, 2019, 8:30 a.m. OK PyPy 3 TESTS 27 171 2150400 1700
66107673 Waiting E Dec. 1, 2019, 9:05 a.m. OK Python 3 TESTS 27 109 512000 1700
66116344 luismriq E Dec. 1, 2019, 9:55 a.m. OK Python 3 TESTS 27 124 1024000 1700

remove filters

Back to search problems