2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, 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
1267 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 162255587 Dec. 1, 2019, 7 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 158 ) H Help BerLine PROGRAMMING constructive algorithms 3500

B'Very soon, the new cell phone services provider "BerLine" will begin its work in Berland! The start of customer service is planned along the main street of the capital. There are n base stations that are already installed. They are located one after another along the main street in the order from the 1 -st to the n -th from left to right. Currently, all these base stations are turned off. They will be turned on one by one, one base station per day, according to some permutation p = [p_1, p_2, ... , p_n] ( 1 <= p_i <= n ), where p_i is the index of a base station that will be turned on on the i -th day. Thus, it will take n days to turn on all base stations. Each base station is characterized by its operating frequency f_i -- an integer between 1 and 24 , inclusive. There is an important requirement for operating frequencies of base stations. Consider an arbitrary moment in time. For any phone owner, if we consider all base stations turned on in the access area of their phone, then in this set of base stations there should be at least one whose operating frequency is unique among the frequencies of these stations. Since the power of the phone and the position are not known in advance, this means that for any nonempty subsegment of turned on base stations, at least one of them has to have the operating frequency that is unique among the stations of this subsegment. For example, let 's take a look at a case of n = 7 , all n stations are turned on, and their frequencies are equal to f = [1, 2, 1, 3, 1, 2, 1] . Consider any subsegment of the base stations -- there is a base station with a unique frequency within this subsegment. However, if f = [1, 2, 1, 2, 3, 2, 1] , then there is no unique frequency on the segment [1, 2, 1, 2] from the index 1 to the index 4 , inclusive. Your task is to assign a frequency from 1 to 24 to each of n bas'...

Tutorials

nerc-2019-tutorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66098435 tEMMIE.w. apiadu MiFaFaOvO H Dec. 1, 2019, 8:11 a.m. OK GNU C++17 TESTS 62 514 2150400 3500
66135262 scott_wu stevenkplus H Dec. 1, 2019, 11:57 a.m. OK GNU C++17 TESTS 62 1045 1024000 3500
66135280 scott_wu stevenkplus H Dec. 1, 2019, 11:57 a.m. OK GNU C++17 TESTS 62 1107 1024000 3500

remove filters

Back to search problems