COMPFEST 15 - Preliminary Online Mirror (Unrated, 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
1866 COMPFEST 15 - Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 38080499 Sept. 3, 2023, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 418 ) E Elevators of Tamem PROGRAMMING dp

B'There is a building named Taman Membeku (shortened as Tamem). The building has N floors numbered from 1 to N from bottom to top. The only way to move between floors in the building is to use elevators. There are 3 elevators available in Tamem, namely elevators 1 , 2 , and 3 . Pak Chanek works as an elevator operator in Tamem. Pak Chanek will work for Q days. Initially, each elevator is in floor 1 and all elevators are on. On each day, exactly one of the following will happen: For each day, Pak Chanek can control the movement of all elevators as he pleases. However, for each day where there is a person currently in floor x who wants to go to floor y , among all elevator movements done by Pak Chanek, the following must happen: For each day, Pak Chanek can only move the elevators that are currently on. Note that, since a change in state happens at the start of the day, this means that an elevator that turns off on some day starts becoming unusable from that day itself. Conversely, an elevator that turns on on some day starts becoming usable from that day itself. It is known that the electricity fee for each day is different. More specifically, on the j -th day, the fee needed to move one elevator up or down by one floor is A_j . From the start, Pak Chanek already knows the electricity fees and the sequence of events that will happen on the Q days, so Pak Chanek can operate the elevators strategically. What is the minimum possible electricity fee to fulfill all needs of the people who want to move between floors in Tamem? Note: in the end, each elevator does not have to go back to floor 1 . The first line contains two integers N and Q ( 2 <= q N <= q10^5 ; 1 <= q Q <= q300 ) -- the number of floors and the number of days. The second line contains Q integers A_1, A_2, A_3 ldots, A_Q ( 1 <= q A_j <= q 10^5 ) -- the electricity fee for each day'...

Tutorials

COMPFEST 15 Preliminary — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
221735950 Muelsyse E Sept. 3, 2023, 6:32 p.m. OK GNU C++14 TESTS 26 4789 4915200
221722083 potato167 E Sept. 3, 2023, 4:32 p.m. OK GNU C++17 TESTS 26 561 11980800
221724893 sapphire15 tokusakurai torisasami E Sept. 3, 2023, 4:52 p.m. OK GNU C++17 TESTS 26 998 6246400
221775064 Pyqe E Sept. 4, 2023, 5:46 a.m. OK GNU C++17 TESTS 26 2043 406016000
221737530 pooty E Sept. 3, 2023, 6:43 p.m. OK GNU C++17 TESTS 26 3915 6553600
221735740 KroosTheKeenGlint E Sept. 3, 2023, 6:31 p.m. OK GNU C++17 TESTS 26 4898 5324800
221731821 steven.novaryo E Sept. 3, 2023, 5:51 p.m. OK GNU C++17 (64) TESTS 26 499 11161600
221724781 K-H ttcwws CodingJellyfish E Sept. 3, 2023, 4:52 p.m. OK GNU C++17 (64) TESTS 26 514 7782400
221706548 noimi SSRS_ E Sept. 3, 2023, 2:45 p.m. OK GNU C++17 (64) TESTS 26 1263 228249600
221767212 Owmicron E Sept. 4, 2023, 3:40 a.m. OK GNU C++17 (64) TESTS 26 1294 225894400
221724849 kotatsugame E Sept. 3, 2023, 4:52 p.m. OK GNU C++17 (64) TESTS 26 2106 218624000
221727394 Rubikun E Sept. 3, 2023, 5:10 p.m. OK GNU C++17 (64) TESTS 26 3977 454860800
221717151 user202729_ nvmdava rama_pang E Sept. 3, 2023, 3:56 p.m. OK GNU C++20 (64) TESTS 26 358 4403200
221730680 Wibo E Sept. 3, 2023, 5:41 p.m. OK GNU C++20 (64) TESTS 26 358 6656000
221699409 qiuzx njwrz sjcsjcsjc E Sept. 3, 2023, 2:05 p.m. OK GNU C++20 (64) TESTS 26 390 5836800
221723625 GJ.Ro E Sept. 3, 2023, 4:43 p.m. OK GNU C++20 (64) TESTS 26 452 8294400
221725617 StarSilk E Sept. 3, 2023, 4:57 p.m. OK GNU C++20 (64) TESTS 26 452 36249600
221696522 353cerega 244mhq E Sept. 3, 2023, 1:50 p.m. OK GNU C++20 (64) TESTS 26 468 229683200
221745237 zidder E Sept. 3, 2023, 7:50 p.m. OK GNU C++20 (64) TESTS 26 483 4403200
221712715 imle Kevin114514 GeZhiyuan E Sept. 3, 2023, 3:25 p.m. OK GNU C++20 (64) TESTS 26 498 8908800
221719346 Heltion E Sept. 3, 2023, 4:11 p.m. OK GNU C++20 (64) TESTS 26 576 7782400
221713555 imle Kevin114514 GeZhiyuan E Sept. 3, 2023, 3:30 p.m. OK GNU C++20 (64) TESTS 26 608 5529600

remove filters

Back to search problems