Friday the 13th, Programmers Day

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
345 Friday the 13th, Programmers Day FINISHED False 7200 397318823 Sept. 13, 2013, 3:40 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 130 ) C Counting Fridays PROGRAMMING *special 2000

Judging from the previous problem, Friday the 13th really doesn't treat you well, so you start thinking about how to minimize its impact on your life. You are a passionate participant of programming contests, so various competitions are an important part of your schedule. Naturally, you'd like as few of them to be spoiled as possible. A friendly admin leaked to you the list of dates on which the contests will be held for several years ahead. Check how many of them happen to take place on Friday the 13th of any month. The first line of the input contains an integer n (1 ≤ n ≤ 10) — the number of the contests you have been told about. The following n lines contain dates of these contests, one per line, formatted as " YYYY-MM-DD " (1974 ≤ YYYY ≤ 2030; 01 ≤ MM ≤ 12; 01 ≤ DD ≤ 31). It's guarateed that all the given dates are correct. Two distinct contests may be at the same day. Output a single integer — the number of dates which happen to be Friday the 13th.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4453208 krdln C Sept. 13, 2013, 4:54 p.m. OK Ada TESTS 22 0 0 2000
18542208 cielavenir C June 17, 2016, 12:04 p.m. OK Ada TESTS 22 30 0 2000
14875603 alishaterian C Dec. 19, 2015, 12:40 p.m. OK Ada TESTS 22 30 0 2000
14043295 130705009 C Nov. 3, 2015, 2:44 p.m. OK Ada TESTS 22 30 0 2000
5454276 Tohka C Dec. 17, 2013, 8:55 a.m. OK Ada TESTS 22 30 0 2000
5244276 PSDEV C Nov. 26, 2013, 3:10 p.m. OK Ada TESTS 22 30 0 2000
4547511 hza C Sept. 24, 2013, 8:16 a.m. OK Ada TESTS 22 30 0 2000
4525956 mrxy56 C Sept. 21, 2013, 12:53 a.m. OK Ada TESTS 22 30 0 2000
4484104 ide_an C Sept. 16, 2013, 3:31 p.m. OK Ada TESTS 22 30 0 2000
4478459 cuiaoxiang C Sept. 15, 2013, 3:28 p.m. OK Ada TESTS 22 30 0 2000

remove filters

Back to search problems