Codeforces Round 499 (Div. 1)

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
1010 Codeforces Round 499 (Div. 1) FINISHED False 7200 204908123 July 26, 2018, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 347 ) E Store PROGRAMMING data structures 2700

B'Natasha was already going to fly back to Earth when she remembered that she needs to go to the Martian store to buy Martian souvenirs for her friends. It is known, that the Martian year lasts x_{max} months, month lasts y_{max} days, day lasts z_{max} seconds. Natasha also knows that this store works according to the following schedule: 2 months in a year were selected: x_l and x_r ( 1 <= x_l <= x_r <= x_{max} ), 2 days in a month: y_l and y_r ( 1 <= y_l <= y_r <= y_{max} ) and 2 seconds in a day: z_l and z_r ( 1 <= z_l <= z_r <= z_{max} ). The store works at all such moments (month x , day y , second z ), when simultaneously x_l <= x <= x_r , y_l <= y <= y_r and z_l <= z <= z_r . Unfortunately, Natasha does not know the numbers x_l,x_r,y_l,y_r,z_l,z_r . One Martian told Natasha: "I went to this store (n+m) times. n times of them it was opened, and m times -- closed." He also described his every trip to the store: the month, day, second of the trip and whether the store was open or closed at that moment. Natasha can go to the store k times. For each of them, determine whether the store at the time of the trip is open, closed, or this information is unknown. The first line contains 6 integers x_{max} , y_{max} , z_{max} , n , m , k ( 1 <= x_{max},y_{max},z_{max} <= 10^5 , 1 <= n <= 10^5 , 0 <= m <= 10^5 , 1 <= k <= 10^5 ) -- number of months in a year, days in a month, seconds in a day, times when the store (according to a Martian) was opened, when it was closed and Natasha 's queries. The i -th of the next n lines contains 3 integers x_i , y_i , z_i ( 1 <= x_i <= x_{max} , 1 <= y_i <= y_{max} , 1 <= z_i <= z_{max} ) -- month, day and second of i -th time, when the store, according to the Martian, was opened. The i -t'...

Tutorials

60851

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40809771 lezdzh E July 26, 2018, 4:57 p.m. OK GNU C++ TESTS 125 186 18739200 2700
40800734 alex_china E July 26, 2018, 4:14 p.m. OK GNU C++ TESTS 125 748 4812800 2700
40809148 yasugongshang E July 26, 2018, 4:54 p.m. OK GNU C++ TESTS 125 1715 102297600 2700
40809272 matthew99 E July 26, 2018, 4:55 p.m. OK GNU C++11 TESTS 125 202 9625600 2700
40806467 SirirNicheBirirDokan E July 26, 2018, 4:41 p.m. OK GNU C++11 TESTS 125 265 3686400 2700
40803649 dotorya E July 26, 2018, 4:27 p.m. OK GNU C++11 TESTS 125 327 7270400 2700
40803219 scott_wu E July 26, 2018, 4:25 p.m. OK GNU C++11 TESTS 125 654 6963200 2700
40802904 ksun48 E July 26, 2018, 4:24 p.m. OK GNU C++11 TESTS 125 686 12595200 2700
40810854 GyojunYoun E July 26, 2018, 5:01 p.m. OK GNU C++11 TESTS 125 686 13414400 2700
40796705 FizzyDavicl E July 26, 2018, 3:55 p.m. OK GNU C++11 TESTS 125 811 7987200 2700
40808482 cuizhuyefei E July 26, 2018, 4:51 p.m. OK GNU C++11 TESTS 125 1029 225894400 2700
40808162 kmjp E July 26, 2018, 4:50 p.m. OK GNU C++14 TESTS 125 233 8704000 2700
40811106 Tinsane E July 26, 2018, 5:03 p.m. OK GNU C++14 TESTS 125 248 7065600 2700
40808929 Elegia E July 26, 2018, 4:53 p.m. OK GNU C++14 TESTS 125 249 9113600 2700
40802895 Radewoosh E July 26, 2018, 4:24 p.m. OK GNU C++14 TESTS 125 436 21811200 2700
40807344 Nisiyama_Suzune E July 26, 2018, 4:46 p.m. OK GNU C++14 TESTS 125 545 21094400 2700
40805435 tzuyu_chou E July 26, 2018, 4:36 p.m. OK GNU C++14 TESTS 125 685 23449600 2700
40806906 apiadu E July 26, 2018, 4:43 p.m. OK GNU C++14 TESTS 125 857 82124800 2700
40800058 molamola. E July 26, 2018, 4:10 p.m. OK GNU C++14 TESTS 125 935 73625600 2700
40806383 aid E July 26, 2018, 4:41 p.m. OK GNU C++14 TESTS 125 1075 72192000 2700
40798849 Kostroma E July 26, 2018, 4:05 p.m. OK GNU C++14 TESTS 125 1076 59494400 2700
40806167 ko_osaga E July 26, 2018, 4:40 p.m. OK GNU C++17 TESTS 125 234 7782400 2700
40803215 mareksom E July 26, 2018, 4:25 p.m. OK GNU C++17 TESTS 125 748 24371200 2700
40807400 MrDindows E July 26, 2018, 4:46 p.m. OK GNU C++17 TESTS 125 919 92262400 2700
40809915 sigma425 E July 26, 2018, 4:58 p.m. OK GNU C++17 TESTS 125 967 38604800 2700
40808908 Errichto E July 26, 2018, 4:53 p.m. OK GNU C++17 TESTS 125 1013 49356800 2700
40802990 LHiC E July 26, 2018, 4:24 p.m. OK GNU C++17 TESTS 125 1248 61440000 2700
40809118 sminem E July 26, 2018, 4:54 p.m. OK GNU C++17 TESTS 125 1357 79564800 2700
40798099 Benq E July 26, 2018, 4:01 p.m. OK GNU C++17 TESTS 125 1544 207872000 2700
40803779 V--o_o--V E July 26, 2018, 4:28 p.m. OK GNU C++17 TESTS 125 1591 73523200 2700
40810983 ei133333 E July 26, 2018, 5:02 p.m. OK GNU C++17 TESTS 125 1653 66560000 2700
40806114 mmaxio E July 26, 2018, 4:40 p.m. OK Java 8 TESTS 125 1325 72192000 2700
40801949 Petr E July 26, 2018, 4:19 p.m. OK Java 8 TESTS 125 1387 38604800 2700

remove filters

Back to search problems