2016-2017 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-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
730 2016-2017 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) FINISHED False 18000 299196023 Oct. 23, 2016, 8 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 770 ) E Award Ceremony PROGRAMMING greedy implementation 2400

All-Berland programming contest comes to an end. In total, n teams participated in it. Like in ACM-ICPC, current results stopped refreshing one hour before the contest ends. So at the Award Ceremony, results are partially known. For each team the value a i is given — the number of points the i -th team has earned before the last hour of the contest. Besides that, the Jury has evaluated all submissions sent during the last hour and knows values d i — the number of points earned by the i -th team during the last hour (these values can be negative, which means that a team can lose points). Before the contest, each team got unique id from 1 to n . According to the contest rules, a team with more points takes a higher place. If two or more teams have equal number of points, the team with lower id will take the higher place. So no two teams can share the same place. The Award Ceremony proceeds in the following way. At the beginning of the ceremony, a large screen shows the results for the time moment "one hour before the end", which means that the i -th team has a i points. Then the Jury unfreezes results of the teams one by one in some order. When result of the j -th team is unfrozen, its score changes from a j to a j + d j . At this time the table of results is modified and the place of the team can change. The unfreezing of the j -th team is followed by the applause from the audience with duration of | x j - y j | seconds, where x j is the place of the j -th team before unfreezing and y j is the place right after the unfreezing. For example, if the team does not change the place, there is no applause from the audience. As you can see, during the Award Ceremony, each team will be unfrozen exactly once. Your task is to find such an order to unfreeze all the teams that the total duration of applause is maximum possible. The first line of the input file contains a single integer n ( 1 ≤ n ≤ 100 ) — the number of teams. Each of the next n lines contains two intege

Tutorials

Разбор задач (видео, по-русски)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
22158969 massimodong E Nov. 11, 2016, 7:19 a.m. OK GNU C++ TESTS 84 15 0 2400
22093937 liutun_ouc E Nov. 7, 2016, 12:20 p.m. OK GNU C++ TESTS 84 15 0 2400
22088685 vjudge5 E Nov. 7, 2016, 5:47 a.m. OK GNU C++ TESTS 84 15 0 2400
22640991 YOULLNEVERWA cabinfever ConnorZhong E Dec. 1, 2016, 1:53 p.m. OK GNU C++ TESTS 84 15 0 2400
22008056 vokeal mhy12345 zhonghaoxi E Nov. 3, 2016, 7:34 a.m. OK GNU C++ TESTS 84 15 0 2400
21969010 vjudge5 E Nov. 1, 2016, 1:40 p.m. OK GNU C++ TESTS 84 15 0 2400
21907932 SoiMae E Oct. 31, 2016, 9:30 a.m. OK GNU C++ TESTS 84 15 0 2400
21907019 SoiMae E Oct. 31, 2016, 8:51 a.m. OK GNU C++ TESTS 84 15 0 2400
21901341 Hailo Rxcso Robert_Alonso_29 E Oct. 30, 2016, 11:46 p.m. OK GNU C++ TESTS 84 15 0 2400
22205937 aufeas E Nov. 14, 2016, 10:57 a.m. OK GNU C++ TESTS 84 15 0 2400
21729679 bertho_coder E Oct. 23, 2016, 9:07 p.m. OK GNU C11 TESTS 84 30 0 2400
27012706 petil777 E May 11, 2017, 12:32 p.m. OK GNU C++11 TESTS 84 15 0 2400
22844845 rajat1603 E Dec. 9, 2016, 9:46 p.m. OK GNU C++11 TESTS 84 15 0 2400
22399518 davidlee1999WTK shlw E Nov. 22, 2016, 9:03 a.m. OK GNU C++11 TESTS 84 15 0 2400
22208418 xiqiao E Nov. 14, 2016, 1:54 p.m. OK GNU C++11 TESTS 84 15 0 2400
27186654 MedoN11 Badry E May 17, 2017, 8:35 p.m. OK GNU C++11 TESTS 84 15 0 2400
22195427 krijgertje E Nov. 13, 2016, 3:25 p.m. OK GNU C++11 TESTS 84 15 0 2400
22184374 FatalEagle zxqfl y0105w49 E Nov. 12, 2016, 8:29 p.m. OK GNU C++11 TESTS 84 15 0 2400
22143143 NiroBC E Nov. 10, 2016, 6:49 a.m. OK GNU C++11 TESTS 84 15 0 2400
22136849 jimola E Nov. 9, 2016, 6:18 p.m. OK GNU C++11 TESTS 84 15 0 2400
22202984 saketh E Nov. 14, 2016, 6:04 a.m. OK GNU C++11 TESTS 84 15 0 2400
30971416 bearf E Oct. 3, 2017, 3:21 p.m. OK GNU C++14 TESTS 84 15 0 2400
32207061 Motarack E Nov. 10, 2017, 10:22 p.m. OK GNU C++14 TESTS 84 15 0 2400
31984140 aashrayagarwal E Nov. 2, 2017, 3:05 p.m. OK GNU C++14 TESTS 84 15 0 2400
31962512 FundamentalEq virus_1010 born2rule E Nov. 1, 2017, 8:27 p.m. OK GNU C++14 TESTS 84 15 0 2400
31928478 md5_84 E Oct. 31, 2017, 5:10 p.m. OK GNU C++14 TESTS 84 15 0 2400
30971364 bearf E Oct. 3, 2017, 3:19 p.m. OK GNU C++14 TESTS 84 15 0 2400
30781041 Lylist E Sept. 27, 2017, 3:20 p.m. OK GNU C++14 TESTS 84 15 0 2400
29856720 vjudge1 E Aug. 29, 2017, 2:02 a.m. OK GNU C++14 TESTS 84 15 0 2400
27011065 ckw1140 E May 11, 2017, 11:33 a.m. OK GNU C++14 TESTS 84 15 0 2400
22094606 sbnssy E Nov. 7, 2016, 12:57 p.m. OK GNU C++14 TESTS 84 15 0 2400
39086290 tossy E June 10, 2018, 7:48 a.m. OK GNU C++17 TESTS 84 15 0 2400
54589912 vjudge5 E May 25, 2019, 8:17 a.m. OK GNU C++17 TESTS 84 31 0 2400
65720162 nitesh_gupta vivace_jr gaurav172 E Nov. 25, 2019, 6:38 p.m. OK GNU C++17 TESTS 84 31 0 2400
42614946 fblogy E Sept. 7, 2018, 1:13 p.m. OK GNU C++17 TESTS 84 31 0 2400
42343186 yujinwunz E Sept. 1, 2018, 6:46 p.m. OK GNU C++17 TESTS 84 31 0 2400
66136375 codelegend devanshg27 Superty E Dec. 1, 2019, 12:24 p.m. OK GNU C++17 TESTS 84 31 0 2400
54589879 StarkHolmes E May 25, 2019, 8:17 a.m. OK GNU C++17 TESTS 84 31 0 2400
54588900 vjudge4 E May 25, 2019, 7:56 a.m. OK GNU C++17 TESTS 84 31 102400 2400
54608912 jkchen E May 25, 2019, 10:27 a.m. OK GNU C++17 TESTS 84 31 102400 2400
49088903 ko_osaga .o. alex9801 E Jan. 28, 2019, 8:10 a.m. OK GNU C++17 TESTS 84 31 102400 2400
27221314 Kharouba E May 19, 2017, 7:37 p.m. OK Java 8 TESTS 84 109 0 2400
27221254 Kharouba E May 19, 2017, 7:34 p.m. OK Java 8 TESTS 84 109 0 2400
27204323 OmarRadwan Kammola E May 18, 2017, 8:30 p.m. OK Java 8 TESTS 84 109 0 2400
32290191 Bitway E Nov. 13, 2017, 5:01 p.m. OK Java 8 TESTS 84 124 0 2400
21703746 Enybady E Oct. 23, 2016, 9 a.m. OK Java 8 TESTS 84 124 0 2400
21710419 RestlessAnchoret Jovfer Jace_Beleren E Oct. 23, 2016, 11:44 a.m. OK Java 8 TESTS 84 155 0 2400
21872302 mikcorer E Oct. 29, 2016, 1:08 p.m. OK Java 8 TESTS 84 155 0 2400
22210845 alexrcoleman E Nov. 14, 2016, 4:38 p.m. OK Java 8 TESTS 84 171 0 2400
21842135 mmaxio I_love_Tanya_Romanova KuchumovIlya E Oct. 28, 2016, 8:40 a.m. OK Java 8 TESTS 84 202 0 2400
21759537 stevie1024 E Oct. 24, 2016, 9:03 p.m. OK Java 8 TESTS 84 233 0 2400
21856857 KocherginDaniil E Oct. 28, 2016, 7:15 p.m. OK MS C++ TESTS 84 15 0 2400
21828570 Vladimir22 E Oct. 27, 2016, 4:09 p.m. OK MS C++ TESTS 84 15 0 2400
21810158 VPigeonKing E Oct. 27, 2016, 12:44 a.m. OK MS C++ TESTS 84 15 0 2400
21781577 Krainov_Dmitry E Oct. 25, 2016, 8:21 p.m. OK MS C++ TESTS 84 15 0 2400
21738227 AleksanderBalobanov E Oct. 24, 2016, 10:21 a.m. OK MS C++ TESTS 84 15 102400 2400
21970811 LightRay E Nov. 1, 2016, 2:45 p.m. OK MS C++ TESTS 84 15 6451200 2400
22083843 SGulyaev E Nov. 6, 2016, 7:20 p.m. OK MS C++ TESTS 84 30 0 2400
56777057 vjudge3 E July 10, 2019, 3:22 a.m. OK MS C++ TESTS 84 31 0 2400
56843977 vjudge1 E July 11, 2019, 12:49 p.m. OK MS C++ TESTS 84 46 0 2400
21700676 E Oct. 23, 2016, 7:19 a.m. OK Unknown TESTS 0 0 0 2400
21700631 E Oct. 23, 2016, 7:19 a.m. OK Unknown TESTS 0 0 0 2400
21700541 E Oct. 23, 2016, 7:19 a.m. OK Unknown TESTS 0 0 0 2400
21700400 E Oct. 23, 2016, 7:19 a.m. OK Unknown TESTS 0 0 0 2400

remove filters

Back to search problems