2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest, qualification stage (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
847 2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest, qualification stage (Online Mirror, ACM-ICPC Rules, Teams Preferred) FINISHED False 14400 270665723 Sept. 18, 2017, 1:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1919 ) K Travel Cards PROGRAMMING sortings 2100

In the evening Polycarp decided to analyze his today's travel expenses on public transport. The bus system in the capital of Berland is arranged in such a way that each bus runs along the route between two stops. Each bus has no intermediate stops. So each of the buses continuously runs along the route from one stop to the other and back. There is at most one bus running between a pair of stops. Polycarp made n trips on buses. About each trip the stop where he started the trip and the the stop where he finished are known. The trips follow in the chronological order in Polycarp's notes. It is known that one trip on any bus costs a burles. In case when passenger makes a transshipment the cost of trip decreases to b burles ( b < a ). A passenger makes a transshipment if the stop on which he boards the bus coincides with the stop where he left the previous bus. Obviously, the first trip can not be made with transshipment. For example, if Polycarp made three consecutive trips: "BerBank" "University", "University" "BerMall", "University" "BerBank", then he payed a + b + a = 2 a + b burles. From the BerBank he arrived to the University, where he made transshipment to the other bus and departed to the BerMall. Then he walked to the University and returned to the BerBank by bus. Also Polycarp can buy no more than k travel cards. Each travel card costs f burles. The travel card for a single bus route makes free of charge any trip by this route (in both directions). Once purchased, a travel card can be used any number of times in any direction. What is the smallest amount of money Polycarp could have spent today if he can buy no more than k travel cards? The first line contains five integers n , a , b , k , f ( 1 ≤ n ≤ 300 , 1 ≤ b < a ≤ 100 , 0 ≤ k ≤ 300 , 1 ≤ f ≤ 1000 ) where: n — the number of Polycarp trips, a — the cost of a regualar single trip, b — the cost of a trip after a transshipment, k — the maximum number of travel cards Polycarp can buy, f — the cost of

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30494881 congmingyige K Sept. 19, 2017, 11:15 a.m. OK GNU C TESTS 55 15 0 2100
30476152 oneshadab sgtlaugh K Sept. 18, 2017, 3:54 p.m. OK GNU C TESTS 55 15 5939200 2100
31183609 yuxudong K Oct. 10, 2017, 7:47 a.m. OK GNU C++ TESTS 55 15 0 2100
31183280 liujianbo K Oct. 10, 2017, 7:26 a.m. OK GNU C++ TESTS 55 15 102400 2100
30962285 ThoseBygones WA_Auto K Oct. 3, 2017, 8:36 a.m. OK GNU C++ TESTS 55 15 102400 2100
30654712 Nyarlathotep K Sept. 23, 2017, 11:43 p.m. OK GNU C++ TESTS 55 15 102400 2100
30567071 vjudge2 K Sept. 21, 2017, 4:49 a.m. OK GNU C++ TESTS 55 15 102400 2100
32545409 BinGoo0o0o Zarxdy34 DeaphetS K Nov. 22, 2017, 9:12 a.m. OK GNU C++ TESTS 55 15 204800 2100
30825614 vjudge1 K Sept. 29, 2017, 10:33 a.m. OK GNU C++ TESTS 55 15 204800 2100
31124756 methela16 K Oct. 7, 2017, 6:03 p.m. OK GNU C++ TESTS 55 15 409600 2100
34507160 RogerRo K Jan. 24, 2018, 7:22 a.m. OK GNU C++ TESTS 55 15 2048000 2100
30484479 _Shakil K Sept. 18, 2017, 8:51 p.m. OK GNU C++ TESTS 55 15 2048000 2100
31828927 ppavic Bartol isego K Oct. 28, 2017, 8:21 a.m. OK GNU C++11 TESTS 55 15 0 2100
31299008 yyqchemic K Oct. 14, 2017, 9:08 a.m. OK GNU C++11 TESTS 55 15 0 2100
31209733 dhuacm11 K Oct. 11, 2017, 7:39 a.m. OK GNU C++11 TESTS 55 15 0 2100
31209699 cw151310210 K Oct. 11, 2017, 7:37 a.m. OK GNU C++11 TESTS 55 15 0 2100
31183644 dhuacm3 K Oct. 10, 2017, 7:49 a.m. OK GNU C++11 TESTS 55 15 0 2100
31183554 dhuacm2 K Oct. 10, 2017, 7:43 a.m. OK GNU C++11 TESTS 55 15 0 2100
31097924 ericxu0 K Oct. 7, 2017, 3:21 a.m. OK GNU C++11 TESTS 55 15 0 2100
31046705 BogolyubskiyAlexey K Oct. 5, 2017, 8:34 p.m. OK GNU C++11 TESTS 55 15 0 2100
30888323 WillMA YuriAO yordanlp K Sept. 30, 2017, 9:38 p.m. OK GNU C++11 TESTS 55 15 0 2100
30729943 Morokei step_by_step K Sept. 25, 2017, 3:01 p.m. OK GNU C++11 TESTS 55 15 0 2100
32550962 UnstoppableChillMachine sanitar1 aokiga K Nov. 22, 2017, 12:59 p.m. OK GNU C++14 TESTS 55 15 204800 2100
32340437 TheMaverick K Nov. 15, 2017, 6:43 p.m. OK GNU C++14 TESTS 55 15 204800 2100
32193994 aadishj02 K Nov. 10, 2017, 11:47 a.m. OK GNU C++14 TESTS 55 15 204800 2100
32010005 Maggu K Nov. 3, 2017, 2:19 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31990144 Superty mprocks RohanRTiwari K Nov. 2, 2017, 6:58 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31897732 Shayan Arpa Batman K Oct. 30, 2017, 3:15 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31325032 andrey.pirov K Oct. 14, 2017, 10:44 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31282702 Equinox I_Love_Equinox K Oct. 13, 2017, 6:46 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31225304 4mda4mda K Oct. 11, 2017, 6:38 p.m. OK GNU C++14 TESTS 55 15 204800 2100
31215376 OFYM K Oct. 11, 2017, 12:02 p.m. OK GNU C++14 TESTS 55 15 204800 2100
64573067 vjudge3 K Nov. 9, 2019, 9:51 a.m. OK GNU C++17 TESTS 55 30 204800 2100
46772003 _Samir K Dec. 8, 2018, 5:30 p.m. OK GNU C++17 TESTS 55 30 614400 2100
46542218 vjudge2 K Dec. 3, 2018, 12:37 p.m. OK GNU C++17 TESTS 55 30 1536000 2100
36177229 Artichoke K March 10, 2018, 7:36 p.m. OK GNU C++17 TESTS 55 30 10752000 2100
68352192 pavement K Jan. 7, 2020, 10:24 a.m. OK GNU C++17 TESTS 55 31 204800 2100
64263034 gamegame K Nov. 4, 2019, 5:10 p.m. OK GNU C++17 TESTS 55 31 204800 2100
61791156 Phortox K Oct. 3, 2019, 3:55 p.m. OK GNU C++17 TESTS 55 31 204800 2100
60525970 Anton_S dimentor Zombie358 K Sept. 14, 2019, 10:24 a.m. OK GNU C++17 TESTS 55 31 204800 2100
60457936 yorky K Sept. 12, 2019, 6:53 p.m. OK GNU C++17 TESTS 55 31 204800 2100
59382577 jyf111 K Aug. 24, 2019, 4:25 a.m. OK GNU C++17 TESTS 55 31 204800 2100
66226183 Shark_Eater K Dec. 3, 2019, 12:41 p.m. OK Java 11 TESTS 55 202 0 2100
66226134 Shark_Eater K Dec. 3, 2019, 12:40 p.m. OK Java 11 TESTS 55 202 0 2100
30988391 4mda4mda K Oct. 4, 2017, 9:32 a.m. OK Java 8 TESTS 55 124 0 2100
30664374 sanketmakani Jeel_Vaishnav spk K Sept. 24, 2017, 11:33 a.m. OK Java 8 TESTS 55 124 0 2100
30630249 FernandaODD K Sept. 23, 2017, 4:55 a.m. OK Java 8 TESTS 55 124 0 2100
30495978 stark29 K Sept. 19, 2017, 11:52 a.m. OK Java 8 TESTS 55 124 0 2100
30492013 svxf K Sept. 19, 2017, 8:59 a.m. OK Java 8 TESTS 55 124 0 2100
30488788 4mda4mda K Sept. 19, 2017, 5:32 a.m. OK Java 8 TESTS 55 124 0 2100
30467770 Minaa aabdelzaher Kharouba K Sept. 18, 2017, 1:43 p.m. OK Java 8 TESTS 55 124 20275200 2100
30481646 aya_cool K Sept. 18, 2017, 6:15 p.m. OK Java 8 TESTS 55 124 20480000 2100
30477846 andreumat gamezovladislav K Sept. 18, 2017, 4:27 p.m. OK Java 8 TESTS 55 124 20582400 2100
30472882 Nesrin EsraaSalah Imaginary K Sept. 18, 2017, 3:01 p.m. OK Java 8 TESTS 55 124 20582400 2100
30494817 batraz K Sept. 19, 2017, 11:13 a.m. OK MS C# TESTS 55 62 2560000 2100
30616022 Ne0n K Sept. 22, 2017, 1:36 p.m. OK MS C++ TESTS 55 15 0 2100
31010000 SSW K Oct. 5, 2017, 6:41 a.m. OK MS C++ TESTS 55 15 204800 2100
33644521 praveen.j K Dec. 26, 2017, 11:01 a.m. OK MS C++ TESTS 55 15 2048000 2100
30474049 lucyanna2018 K Sept. 18, 2017, 3:19 p.m. OK MS C++ TESTS 55 15 5632000 2100
30472785 tae826 rkm0959 GGOSinon K Sept. 18, 2017, 2:59 p.m. OK MS C++ TESTS 55 15 6451200 2100
30871834 Kushslush K Sept. 30, 2017, 4:30 p.m. OK MS C++ TESTS 55 31 204800 2100
30786429 miha715lev K Sept. 27, 2017, 6:27 p.m. OK MS C++ TESTS 55 31 204800 2100
30479662 grol666 K Sept. 18, 2017, 5 p.m. OK MS C++ TESTS 55 31 2150400 2100
30621633 nik1998 K Sept. 22, 2017, 5:24 p.m. OK MS C++ TESTS 55 31 4198400 2100
30477845 AleksanderBalobanov K Sept. 18, 2017, 4:27 p.m. OK MS C++ TESTS 55 31 6144000 2100
56044570 CtrlAlt K June 25, 2019, 3:57 p.m. OK MS C++ 2017 TESTS 55 31 0 2100
33075311 vjudge1 K Dec. 10, 2017, 8:07 a.m. OK PyPy 3 TESTS 55 124 23142400 2100
30621071 madn Artmat Barvikha_coder K Sept. 22, 2017, 4:57 p.m. OK PyPy 3 TESTS 55 140 512000 2100
39860119 Ali_Pi K July 2, 2018, 7:20 a.m. OK Python 2 TESTS 55 186 0 2100
30863008 sergovoy K Sept. 30, 2017, 11:06 a.m. OK Python 3 TESTS 55 62 307200 2100
30477812 pandrei K Sept. 18, 2017, 4:27 p.m. OK Python 3 TESTS 55 62 4608000 2100
33258780 vjudge2 K Dec. 15, 2017, 8:49 a.m. OK Python 3 TESTS 55 92 5632000 2100
30574134 MaxHeap K Sept. 21, 2017, 10:40 a.m. OK Scala TESTS 55 452 0 2100

remove filters

Back to search problems