Codeforces Round 519 by Botan Investments

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
1043 Codeforces Round 519 by Botan Investments FINISHED False 7200 196784723 Oct. 28, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2798 ) E Train Hard, Win Easy PROGRAMMING constructive algorithms greedy math sortings 1900

B"Zibi is a competitive programming coach. There are n competitors who want to be prepared well. The training contests are quite unusual xe2 x80 x93 there are two people in a team, two problems, and each competitor will code exactly one of them. Of course, people in one team will code different problems. Rules of scoring also aren't typical. The first problem is always an implementation problem: you have to implement some well-known algorithm very fast and the time of your typing is rated. The second one is an awful geometry task and you just have to get it accepted in reasonable time. Here the length and difficulty of your code are important. After that, Zibi will give some penalty points (possibly negative) for each solution and the final score of the team is the sum of them (the less the score is, the better). We know that the i -th competitor will always have score x_i when he codes the first task and y_i when he codes the second task. We can assume, that all competitors know each other's skills and during the contest distribute the problems in the way that minimizes their final score. Remember that each person codes exactly one problem in a contest. Zibi wants all competitors to write a contest with each other. However, there are m pairs of people who really don't like to cooperate and they definitely won't write a contest together. Still, the coach is going to conduct trainings for all possible pairs of people, such that the people in pair don't hate each other. The coach is interested for each participant, what will be his or her sum of scores of all teams he trained in? The first line contains two integers n and m ( 2 <= n <= 300 ,000 , 0 <= m <= 300 ,000 ) -- the number of participants and the number of pairs of people who will not write a contest together. Each of the next n lines contains two integers x_i and y_i ( -10^9 <= x_i, y_i <= 10^9 ) -- the scores which will the $$"...

Tutorials

Codeforces Round #519 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69644255 rr_ E Jan. 27, 2020, 11:23 p.m. OK D TESTS 56 764 53452800 1900
60070668 1910903 E Sept. 5, 2019, 11:01 a.m. OK GNU C++11 TESTS 56 202 14438400 1900
45249297 Cothrax E Nov. 3, 2018, 3:36 p.m. OK GNU C++11 TESTS 56 202 17920000 1900
45247692 __Darkmoon E Nov. 3, 2018, 2:47 p.m. OK GNU C++11 TESTS 56 217 7270400 1900
45011367 Riqirez E Oct. 28, 2018, 4:40 p.m. OK GNU C++11 TESTS 56 217 16793600 1900
45085867 lujiaju E Oct. 30, 2018, 7:20 a.m. OK GNU C++11 TESTS 56 218 13209600 1900
45016948 qkoqhh E Oct. 28, 2018, 5:19 p.m. OK GNU C++11 TESTS 56 218 14438400 1900
69937081 luogu_bot1 E Feb. 1, 2020, 4:25 a.m. OK GNU C++11 TESTS 56 218 19046400 1900
69934676 CQBZ_PPL E Feb. 1, 2020, 2:57 a.m. OK GNU C++11 TESTS 56 233 10649600 1900
45007283 ChiliuDog E Oct. 28, 2018, 4:17 p.m. OK GNU C++11 TESTS 56 233 10854400 1900
51933500 cuizhuyefei E March 28, 2019, 11:31 a.m. OK GNU C++11 TESTS 56 233 10956800 1900
45778319 wleung_bvg E Nov. 15, 2018, 6:33 p.m. OK GNU C++14 TESTS 56 234 14438400 1900
45777895 wleung_bvg E Nov. 15, 2018, 6:18 p.m. OK GNU C++14 TESTS 56 249 14438400 1900
45021465 Bunny_Six_Foolish E Oct. 28, 2018, 7:25 p.m. OK GNU C++14 TESTS 56 249 16384000 1900
47723976 IgorSmirnov E Dec. 30, 2018, 1:09 p.m. OK GNU C++14 TESTS 56 280 12083200 1900
45778282 wleung_bvg E Nov. 15, 2018, 6:32 p.m. OK GNU C++14 TESTS 56 280 14438400 1900
45127056 haut_zy E Oct. 31, 2018, 8:34 a.m. OK GNU C++14 TESTS 56 327 8396800 1900
45093747 SsSsoOoOoOo E Oct. 30, 2018, 10:53 a.m. OK GNU C++14 TESTS 56 327 8396800 1900
45083092 SsSsoOoOoOo E Oct. 30, 2018, 5:07 a.m. OK GNU C++14 TESTS 56 358 6041600 1900
45019772 vpike E Oct. 28, 2018, 5:34 p.m. OK GNU C++14 TESTS 56 373 7168000 1900
45033563 ytriayggg E Oct. 29, 2018, 6:15 a.m. OK GNU C++14 TESTS 56 389 10854400 1900
45024584 Maxim E Oct. 28, 2018, 8:46 p.m. OK GNU C++17 TESTS 56 186 6246400 1900
45024451 Maxim E Oct. 28, 2018, 8:40 p.m. OK GNU C++17 TESTS 56 202 12288000 1900
45024352 Maxim E Oct. 28, 2018, 8:36 p.m. OK GNU C++17 TESTS 56 218 6246400 1900
45024430 wladw E Oct. 28, 2018, 8:40 p.m. OK GNU C++17 TESTS 56 218 6246400 1900
45024605 wladw E Oct. 28, 2018, 8:47 p.m. OK GNU C++17 TESTS 56 233 6246400 1900
45024479 wladw E Oct. 28, 2018, 8:42 p.m. OK GNU C++17 TESTS 56 233 6246400 1900
45777773 wleung_bvg E Nov. 15, 2018, 6:13 p.m. OK GNU C++17 TESTS 56 233 14438400 1900
45024495 wladw E Oct. 28, 2018, 8:42 p.m. OK GNU C++17 TESTS 56 264 6246400 1900
45012743 zoomswk E Oct. 28, 2018, 4:49 p.m. OK GNU C++17 TESTS 56 327 10649600 1900
45010073 natsugiri E Oct. 28, 2018, 4:32 p.m. OK GNU C++17 TESTS 56 343 7475200 1900
45014980 Martynas E Oct. 28, 2018, 5:04 p.m. OK Go TESTS 56 358 9830400 1900
45032916 vector9x E Oct. 29, 2018, 5:42 a.m. OK Go TESTS 56 467 37068800 1900
45032951 vector9x E Oct. 29, 2018, 5:44 a.m. OK Go TESTS 56 1231 46080000 1900
45032689 vector9x E Oct. 29, 2018, 5:32 a.m. OK Go TESTS 56 1247 45977600 1900
45021661 Musin E Oct. 28, 2018, 7:27 p.m. OK Java 8 TESTS 56 374 7475200 1900
45018739 guptautkarsh028 E Oct. 28, 2018, 5:30 p.m. OK Java 8 TESTS 56 405 5222400 1900
45009161 Lewin E Oct. 28, 2018, 4:27 p.m. OK Java 8 TESTS 56 436 6553600 1900
45085010 coderbond007 E Oct. 30, 2018, 6:44 a.m. OK Java 8 TESTS 56 436 14950400 1900
45107246 usagi38 E Oct. 30, 2018, 4:46 p.m. OK Java 8 TESTS 56 452 17408000 1900
45014726 AQT E Oct. 28, 2018, 5:02 p.m. OK Java 8 TESTS 56 467 17612800 1900
45350292 tusharjape007 E Nov. 6, 2018, 7:06 a.m. OK Java 8 TESTS 56 467 18124800 1900
45052875 Srinivasa_Ramanujan E Oct. 29, 2018, 11:31 a.m. OK Java 8 TESTS 56 483 16588800 1900
45030874 hulk_man E Oct. 29, 2018, 3:47 a.m. OK Java 8 TESTS 56 499 17100800 1900
62668329 Anonymous E Oct. 16, 2019, 8:43 a.m. OK Java 8 TESTS 56 529 38604800 1900
45025204 dimoff66 E Oct. 28, 2018, 9:13 p.m. OK JavaScript TESTS 56 904 71577600 1900
45222287 Livace E Nov. 2, 2018, 10:30 p.m. OK JavaScript TESTS 56 1123 71168000 1900
45130490 tattosha_aptan E Oct. 31, 2018, 10:06 a.m. OK Mono C# TESTS 56 608 57651200 1900
45129055 tattosha_aptan E Oct. 31, 2018, 9:25 a.m. OK Mono C# TESTS 56 794 57651200 1900
45012372 azukun E Oct. 28, 2018, 4:47 p.m. OK Mono C# TESTS 56 811 20480000 1900
48284984 eki E Jan. 12, 2019, 9:55 a.m. OK Mono C# TESTS 56 1372 88883200 1900
45127816 tattosha_aptan E Oct. 31, 2018, 8:53 a.m. OK Mono C# TESTS 56 1590 35532800 1900
45073560 Coder_D E Oct. 29, 2018, 9:29 p.m. OK Mono C# TESTS 56 1699 28979200 1900
45008173 wa1tz719 E Oct. 28, 2018, 4:21 p.m. OK MS C++ TESTS 56 327 9625600 1900
45051048 abtest100 E Oct. 29, 2018, 10:43 a.m. OK MS C++ TESTS 56 327 16691200 1900
45023324 Volpe E Oct. 28, 2018, 8:03 p.m. OK MS C++ TESTS 56 343 21811200 1900
45023342 Volpe E Oct. 28, 2018, 8:04 p.m. OK MS C++ TESTS 56 358 21811200 1900
47285767 vjudge5 E Dec. 20, 2018, 6:04 a.m. OK MS C++ TESTS 56 358 24064000 1900
47285500 vjudge5 E Dec. 20, 2018, 5:52 a.m. OK MS C++ TESTS 56 389 14438400 1900
47317581 vjudge3 E Dec. 21, 2018, 5:25 a.m. OK MS C++ TESTS 56 436 15667200 1900
47318690 vjudge1 E Dec. 21, 2018, 6:15 a.m. OK MS C++ TESTS 56 436 15667200 1900
45013490 math957963 E Oct. 28, 2018, 4:54 p.m. OK MS C++ TESTS 56 436 24985600 1900
45232387 vjudge4 E Nov. 3, 2018, 7:42 a.m. OK MS C++ TESTS 56 530 26419200 1900
56044542 CtrlAlt E June 25, 2019, 3:56 p.m. OK MS C++ 2017 TESTS 56 468 6041600 1900
63697262 vjudge3 E Oct. 29, 2019, 5:58 a.m. OK MS C++ 2017 TESTS 56 546 15667200 1900
52590685 c1729 E April 11, 2019, 5:21 a.m. OK PyPy 2 TESTS 56 826 54681600 1900
50893220 pajenegod E March 6, 2019, 1:58 p.m. OK PyPy 2 TESTS 56 826 57548800 1900
52587117 pajenegod E April 11, 2019, 1:26 a.m. OK PyPy 2 TESTS 56 841 54579200 1900
52590639 c1729 E April 11, 2019, 5:19 a.m. OK PyPy 2 TESTS 56 873 54681600 1900
52590718 c1729 E April 11, 2019, 5:23 a.m. OK PyPy 2 TESTS 56 873 57958400 1900
51147431 c1729 E March 11, 2019, 5:03 a.m. OK PyPy 2 TESTS 56 873 63897600 1900
51147400 c1729 E March 11, 2019, 5 a.m. OK PyPy 2 TESTS 56 888 63897600 1900
52590617 c1729 E April 11, 2019, 5:18 a.m. OK PyPy 2 TESTS 56 889 54681600 1900
51305588 pajenegod E March 14, 2019, 4:36 p.m. OK PyPy 2 TESTS 56 889 61337600 1900
51304904 pajenegod E March 14, 2019, 4:18 p.m. OK PyPy 2 TESTS 56 889 61337600 1900
50894738 pajenegod E March 6, 2019, 2:35 p.m. OK PyPy 3 TESTS 56 857 59596800 1900
50893121 pajenegod E March 6, 2019, 1:55 p.m. OK PyPy 3 TESTS 56 888 59494400 1900
50894700 pajenegod E March 6, 2019, 2:34 p.m. OK PyPy 3 TESTS 56 904 60416000 1900
51324236 c1729 E March 15, 2019, 8:53 a.m. OK PyPy 3 TESTS 56 904 64921600 1900
50701573 pajenegod E March 2, 2019, 10:08 p.m. OK PyPy 3 TESTS 56 920 48947200 1900
50894443 pajenegod E March 6, 2019, 2:27 p.m. OK PyPy 3 TESTS 56 920 49049600 1900
51952611 c1729 E March 28, 2019, 9:45 p.m. OK PyPy 3 TESTS 56 951 64921600 1900
52586623 c1729 E April 11, 2019, 12:51 a.m. OK PyPy 3 TESTS 56 966 64614400 1900
51325301 c1729 E March 15, 2019, 9:24 a.m. OK PyPy 3 TESTS 56 966 64921600 1900
51952655 c1729 E March 28, 2019, 9:48 p.m. OK PyPy 3 TESTS 56 982 67686400 1900
45009915 nwi E Oct. 28, 2018, 4:31 p.m. OK Python 2 TESTS 56 1716 70246400 1900
45026046 al_bus E Oct. 28, 2018, 9:57 p.m. OK Python 3 TESTS 56 1840 80076800 1900
45069048 xaep E Oct. 29, 2018, 6:40 p.m. OK Rust TESTS 56 420 20582400 1900
45069585 yakamoto E Oct. 29, 2018, 6:57 p.m. OK Scala TESTS 56 1372 82636800 1900
46467896 gazaan E Dec. 2, 2018, 5:12 a.m. OK Scala TESTS 56 1793 139468800 1900
46469769 gazaan E Dec. 2, 2018, 6:51 a.m. OK Scala TESTS 56 1808 139673600 1900
46516320 gazaan E Dec. 2, 2018, 4:32 p.m. OK Scala TESTS 56 1808 141824000 1900
46516184 gazaan E Dec. 2, 2018, 4:26 p.m. OK Scala TESTS 56 1809 141926400 1900
46467785 gazaan E Dec. 2, 2018, 5:04 a.m. OK Scala TESTS 56 1840 139059200 1900
46468067 gazaan E Dec. 2, 2018, 5:23 a.m. OK Scala TESTS 56 1856 139571200 1900
46516293 gazaan E Dec. 2, 2018, 4:31 p.m. OK Scala TESTS 56 1918 141824000 1900

remove filters

Back to search problems