Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listNov 7, 2021 20:26Sergey StreminSergey StreminScore: 14,098Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 7, 2021 20:286,919100,652,74831,136,41602,260,992
2Nov 7, 2021 20:266,92097,172,03231,137,76402,203,648
3Nov 7, 2021 20:286,947104,040,02231,261,88102,199,552
4Nov 7, 2021 20:266,978100,042,69231,399,13002,199,552
5Nov 7, 2021 20:267,18491,253,74732,328,95002,199,552
6Nov 7, 2021 20:287,195102,852,35832,378,08102,203,648
7Nov 7, 2021 20:2813,901256,751,33728,795,00033,760,00029,667,328
8Nov 7, 2021 20:2814,033263,970,51332,149,00031,001,00029,671,424
9Nov 7, 2021 20:2814,051256,989,79128,650,00034,578,00029,638,656
10Nov 7, 2021 20:2614,068254,971,52828,589,00034,715,00029,704,192
11Nov 7, 2021 20:2614,090243,463,73630,645,00032,759,00029,642,752
12Nov 7, 2021 20:2614,095258,039,78926,658,00036,770,00029,540,352
13Nov 7, 2021 20:2814,098249,642,47830,663,00032,777,00029,634,560
14Nov 7, 2021 20:2614,116254,175,37027,091,00036,433,00029,585,408
15Nov 7, 2021 20:2814,123251,466,23828,798,00034,756,00029,642,752
16Nov 7, 2021 20:2614,129253,416,33432,348,00031,233,00029,642,752
17Nov 7, 2021 20:2614,148252,466,70531,310,00032,354,00029,700,096
18Nov 7, 2021 20:2614,179251,760,58032,462,00031,343,00029,597,696
19Nov 7, 2021 20:2814,180251,157,19329,911,00033,899,00029,646,848
20Nov 7, 2021 20:2814,192248,472,37529,873,00033,993,00029,638,656
21Nov 7, 2021 20:2614,203252,296,88034,324,00029,589,00029,704,192
22Nov 7, 2021 20:2814,254254,521,34828,618,00035,526,00029,540,352
23Nov 7, 2021 20:2614,397251,713,67632,393,00032,393,00029,511,680
24Nov 7, 2021 20:2814,503259,511,85828,553,00036,712,00029,614,080