Codeforces Round 363 (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
698 Codeforces Round 363 (Div. 1) FINISHED False 8100 262889699 July 19, 2016, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 117 ) E Cron PROGRAMMING 2800

B"Sometime the classic solution are not powerful enough and we have to design our own. For the purpose of this problem you have to implement the part of the system of task scheduling. Each task should be executed at some particular moments of time. In our system you may set the exact value for the second, minute, hour, day of the week, day and month, when the task should be executed. Moreover, one can set a special value -1 that means any value of this parameter is valid. For example, if the parameter string is -1 59 23 -1 -1 -1, the problem will be executed every day at 23:59:00, 23:59:01, 23:59:02, ..., 23:59:59 (60 times in total). Seconds, minutes and hours are numbered starting from zero, while day, months and days of the week are numbered starting from one. The first day of the week is Monday. There is one special case that is treated separately. If both day of the week and day are given (i.e. differ from -1) to execute the task only one of these two (at least one, if both match this is fine too) parameters should match the current time (of course, all other parameters should match too). For example, the string of parameters 0 0 12 6 3 7 means that the task will be executed both on Saturday, July 2nd, 2016 and on Sunday, July 3rd, 2016 at noon. One should not forget about the existence of the leap years. The year is leap if it's number is divisible by 400, or is not divisible by 100, but is divisible by 4. Each leap year has 366 days instead of usual 365, by extending February to 29 days rather than the common 28. The current time is represented as the number of seconds passed after 00:00:00 January 1st, 1970 (Thursday). You are given the string of six parameters, describing the moments of time the task should be executed. You are also given a number of moments of time. For each of them you have to find the first moment of time strictly greater than the current when the task will be executed. The first line of the input contains six integers s, m, h, d"...

Tutorials

Solution

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
19352223 vjudge5 E July 23, 2016, 1:18 a.m. OK GNU C++ TESTS 54 15 0 2800
19380000 jyx E July 24, 2016, 8:35 a.m. OK GNU C++ TESTS 54 15 102400 2800
19379966 vjudge2 E July 24, 2016, 8:33 a.m. OK GNU C++ TESTS 54 30 102400 2800
19258669 kawatea E July 19, 2016, 5:26 p.m. OK GNU C++ TESTS 54 30 614400 2800
19285983 guille E July 20, 2016, 6:04 p.m. OK GNU C++ TESTS 54 31 0 2800
19281197 dogther E July 20, 2016, 1:14 p.m. OK GNU C++ TESTS 54 31 0 2800
19260164 skywalkert E July 19, 2016, 6:16 p.m. OK GNU C++ TESTS 54 31 0 2800
26230178 jiyutian E April 9, 2017, 4:53 a.m. OK GNU C++ TESTS 54 31 1945600 2800
24464991 ljz E Feb. 6, 2017, 8:33 a.m. OK GNU C++ TESTS 54 31 6246400 2800
19739043 wangyisong1996 E Aug. 9, 2016, 2:34 a.m. OK GNU C++ TESTS 54 77 1843200 2800
19351765 krijgertje E July 23, 2016, 12:32 a.m. OK GNU C++11 TESTS 54 15 0 2800
19265844 dotorya E July 20, 2016, 1:30 a.m. OK GNU C++11 TESTS 54 15 102400 2800
26997532 RNS_CUS E May 10, 2017, 1:56 p.m. OK GNU C++11 TESTS 54 15 921600 2800
26997417 RNS_CUS E May 10, 2017, 1:49 p.m. OK GNU C++11 TESTS 54 15 921600 2800
26884256 RNS_JKS E May 5, 2017, 3:42 p.m. OK GNU C++11 TESTS 54 15 2150400 2800
19719940 diamond_duke E Aug. 8, 2016, 4:23 a.m. OK GNU C++11 TESTS 54 15 6246400 2800
22206910 King_George E Nov. 14, 2016, 12:09 p.m. OK GNU C++11 TESTS 54 30 0 2800
19250384 maksay E July 19, 2016, 2:39 p.m. OK GNU C++11 TESTS 54 30 2048000 2800
40984035 ReaLNero1 E July 30, 2018, 7:09 p.m. OK GNU C++11 TESTS 54 31 0 2800
57879901 lopare E July 28, 2019, 7:18 a.m. OK GNU C++11 TESTS 54 31 921600 2800
23379935 Ali.Pi E Dec. 28, 2016, 2:29 p.m. OK GNU C++14 TESTS 54 15 6041600 2800
49212725 tokitsukaze E Jan. 30, 2019, 4:09 p.m. OK GNU C++14 TESTS 54 31 1024000 2800
59125096 Scut82 E Aug. 20, 2019, 8:52 a.m. OK GNU C++14 TESTS 54 46 46899200 2800
59116176 Scut82 E Aug. 20, 2019, 1:48 a.m. OK GNU C++14 TESTS 54 46 46899200 2800
38439930 Toxel E May 19, 2018, 6:14 p.m. OK GNU C++14 TESTS 54 249 307200 2800
69506684 hjk1030 E Jan. 25, 2020, 8:55 a.m. OK GNU C++17 TESTS 54 62 0 2800
68443680 dorijanlendvaj E Jan. 9, 2020, 11:53 a.m. OK GNU C++17 TESTS 54 93 0 2800
19251355 mmaxio E July 19, 2016, 2:46 p.m. OK Java 8 TESTS 54 155 0 2800
19246777 Egor E July 19, 2016, 2:15 p.m. OK Java 8 TESTS 54 156 0 2800
19253397 Petr E July 19, 2016, 3 p.m. OK Java 8 TESTS 54 217 0 2800
19251387 ilyakor E July 19, 2016, 2:46 p.m. OK Java 8 TESTS 54 217 0 2800
19251595 VArtem E July 19, 2016, 2:47 p.m. OK Java 8 TESTS 54 327 0 2800
19258287 piroz E July 19, 2016, 5:15 p.m. OK Java 8 TESTS 54 577 0 2800
19258177 uwi E July 19, 2016, 5:12 p.m. OK Java 8 TESTS 54 639 0 2800
19254412 Myungwoo E July 19, 2016, 3:07 p.m. OK Python 2 TESTS 54 109 102400 2800
19292776 Tornad0 E July 21, 2016, 4:38 a.m. OK Python 2 TESTS 54 592 307200 2800
19252316 ffao E July 19, 2016, 2:53 p.m. OK Python 2 TESTS 54 592 307200 2800
19274280 Shik E July 20, 2016, 8:03 a.m. OK Ruby TESTS 54 1075 409600 2800

remove filters

Back to search problems