2018-2019 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
1070 2018-2019 ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) FINISHED False 18000 197502923 Oct. 20, 2018, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 707 ) J Streets and Avenues in Berhattan PROGRAMMING dp 2600

B"Berhattan is the capital of Berland. There are n streets running parallel in the east-west direction (horizontally), and there are m avenues running parallel in the south-north direction (vertically). Each street intersects with each avenue, forming a crossroad. So in total there are n cdot m crossroads in Berhattan. Recently, the government has changed in Berland. The new government wants to name all avenues and all streets after heroes of revolution. The special committee prepared the list of k names. Only these names can be used as new names for streets and avenues. Each name can be used at most once. The members of committee want to name streets and avenues in the way that minimizes inconvenience for residents. They believe that if street and avenue names start with the same letter, then their crossroad will be inconvenient. Hence only the first letter of each name matters. Given first letters of k names, find C -- minimal possible number of inconvenient crossroads in Berhattan after the naming process. Input contains one or several test cases to process. The first line contains t ( 1 <= t <= 30000 ) -- the number of test cases. Solve test cases separately, test cases are completely independent and do not affect each other. The description of t test cases follows. Each test case starts with line with space-separated numbers n, m, k ( 1 <= n,m <= 30000 ; n+m <= k <= 2 cdot10^5 ) -- the number of streets, number of avenues and the number of names in the committee's list, respectively. The the second line of each test case contains a string of k uppercase English letters. i -th letter of the string is the first letter of i -th name from the committee's list. It's guaranteed that the sum of numbers n from all test cases is not greater than 30000 . Similarly, the sum of numbers m from all test cases is not greater than 30000 . The sum of numbe"...

Tutorials

Solution to problem M. Algoland and Berland of 2018-2019 ICPC, NEERC

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
44651659 liziy J Oct. 21, 2018, 11:38 a.m. OK GNU C++11 TESTS 155 31 307200 2600
46255276 _aether J Nov. 26, 2018, 4:19 p.m. OK GNU C++11 TESTS 155 31 409600 2600
44588730 RNS_CUS J Oct. 20, 2018, 10:24 a.m. OK GNU C++11 TESTS 155 31 409600 2600
53723710 vjudge2 J May 4, 2019, 2:24 a.m. OK GNU C++11 TESTS 155 31 1024000 2600
44993983 function348 J Oct. 28, 2018, 2:25 p.m. OK GNU C++11 TESTS 155 31 1024000 2600
44860413 jasonyik hohomu nhho J Oct. 25, 2018, 3:23 p.m. OK GNU C++11 TESTS 155 31 6246400 2600
44756277 ale J Oct. 24, 2018, 1:51 a.m. OK GNU C++11 TESTS 155 46 204800 2600
44733688 zhtzht J Oct. 23, 2018, 11:53 a.m. OK GNU C++11 TESTS 155 46 307200 2600
44602968 207M J Oct. 20, 2018, 3:22 p.m. OK GNU C++11 TESTS 155 46 409600 2600
45698790 forest J Nov. 14, 2018, 6:29 a.m. OK GNU C++11 TESTS 155 46 614400 2600
45318371 alechuang98 J Nov. 5, 2018, 9:15 a.m. OK GNU C++14 TESTS 155 31 409600 2600
44757572 Chuzyh jhdjames37 applese J Oct. 24, 2018, 4:24 a.m. OK GNU C++14 TESTS 155 31 409600 2600
45075832 mjhun J Oct. 30, 2018, 12:13 a.m. OK GNU C++14 TESTS 155 31 1843200 2600
45127182 liu_runda J Oct. 31, 2018, 8:37 a.m. OK GNU C++14 TESTS 155 46 204800 2600
44662234 Anadi J Oct. 21, 2018, 3:49 p.m. OK GNU C++14 TESTS 155 46 204800 2600
44602661 Nero J Oct. 20, 2018, 3:13 p.m. OK GNU C++14 TESTS 155 46 307200 2600
45217234 Motarack J Nov. 2, 2018, 6:39 p.m. OK GNU C++14 TESTS 155 46 409600 2600
54261968 vjudge1 J May 17, 2019, 2:44 a.m. OK GNU C++14 TESTS 155 46 819200 2600
44769386 vjudge4 J Oct. 24, 2018, 11:38 a.m. OK GNU C++14 TESTS 155 46 819200 2600
54262081 vjudge2 J May 17, 2019, 2:50 a.m. OK GNU C++14 TESTS 155 46 1024000 2600
44698624 ss1h2a3tw harryoooooooooo cthbst J Oct. 22, 2018, 1:56 p.m. OK GNU C++17 TESTS 155 31 1024000 2600
44751208 ReaLNero1 J Oct. 23, 2018, 8:02 p.m. OK GNU C++17 TESTS 155 31 1228800 2600
44601507 smartnj J Oct. 20, 2018, 2:40 p.m. OK GNU C++17 TESTS 155 31 1228800 2600
46320642 Jatana voidmax Aleksandr2754 J Nov. 28, 2018, 3:05 p.m. OK GNU C++17 TESTS 155 46 512000 2600
44616828 chengjian J Oct. 21, 2018, 2:37 a.m. OK GNU C++17 TESTS 155 46 512000 2600
44944220 Is_it_unrated J Oct. 27, 2018, 9:19 a.m. OK GNU C++17 TESTS 155 46 614400 2600
44761078 ultmaster kblack zerolin J Oct. 24, 2018, 7:11 a.m. OK GNU C++17 TESTS 155 46 819200 2600
69596836 Mitsuhaw J Jan. 27, 2020, 5:20 a.m. OK GNU C++17 TESTS 155 46 1024000 2600
46052947 filippos J Nov. 22, 2018, 9 a.m. OK GNU C++17 TESTS 155 46 1536000 2600
45918831 wa007 J Nov. 18, 2018, 3:20 p.m. OK GNU C++17 TESTS 155 46 2867200 2600
45762144 CrazyFlower J Nov. 15, 2018, 9:46 a.m. OK Java 8 TESTS 155 482 0 2600
54389529 Quan2202 J May 19, 2019, 3:21 p.m. OK Java 8 TESTS 155 514 0 2600
44618635 BaZ_ J Oct. 21, 2018, 4:31 a.m. OK Java 8 TESTS 155 545 0 2600
44679964 hulk_man J Oct. 22, 2018, 5:34 a.m. OK Java 8 TESTS 155 654 0 2600
44983255 wp32pw J Oct. 28, 2018, 9:33 a.m. OK MS C++ TESTS 155 78 1536000 2600
44592250 lucyanna2018 ShadowSong J Oct. 20, 2018, 11:27 a.m. OK MS C++ TESTS 155 171 409600 2600
44983552 nik1998 J Oct. 28, 2018, 9:42 a.m. OK MS C++ TESTS 155 171 3891200 2600
44595820 test616.cpp J Oct. 20, 2018, 12:29 p.m. OK PyPy 2 TESTS 155 1372 8192000 2600
44595153 test616.cpp J Oct. 20, 2018, 12:18 p.m. OK PyPy 2 TESTS 155 1903 8089600 2600
44577717 J Oct. 20, 2018, 7:34 a.m. OK Unknown TESTS 0 0 0 2600
44577640 J Oct. 20, 2018, 7:33 a.m. OK Unknown TESTS 0 0 0 2600
44577565 J Oct. 20, 2018, 7:33 a.m. OK Unknown TESTS 0 0 0 2600
44577461 J Oct. 20, 2018, 7:33 a.m. OK Unknown TESTS 0 0 0 2600
44577329 J Oct. 20, 2018, 7:33 a.m. OK Unknown TESTS 0 0 0 2600

remove filters

Back to search problems