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 listMay 31, 2023 03:23Victor MuñozVictor MuñozScore: 13,804Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2023 03:236,532103,152,64429,393,11402,273,280
2May 31, 2023 03:236,53777,213,33929,415,38002,273,280
3May 31, 2023 03:236,53889,725,25729,421,81402,273,280
4May 31, 2023 03:2313,517243,866,79728,316,00032,512,00029,552,640
5May 31, 2023 03:2313,718244,726,61228,737,00032,994,00029,630,464
6May 31, 2023 03:2313,759247,132,44326,671,00035,243,00029,544,448
7May 31, 2023 03:2313,804248,819,74126,476,00035,641,00029,630,464
8May 31, 2023 03:2313,807253,133,77232,260,00029,871,00029,548,544
9May 31, 2023 03:2313,807253,252,98926,212,00035,920,00029,630,464
10May 31, 2023 03:2313,816251,479,89429,450,00032,723,00029,626,368
11May 31, 2023 03:2313,819252,131,24730,548,00031,639,00029,630,464
12May 31, 2023 03:2313,947253,305,82327,780,00034,983,00029,614,080