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 9, 2021 09:05Ilya AniskovetsIlya AniskovetsScore: 15,166Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 09:057,16095,737,10732,220,59302,265,088
2Nov 9, 2021 09:057,289106,187,62232,802,60102,260,992
3Nov 9, 2021 09:057,308107,219,16032,884,60702,269,184
4Nov 9, 2021 09:0515,091260,670,89835,016,00032,894,00029,622,272
5Nov 9, 2021 09:0515,094256,408,67032,484,00035,437,00029,593,600
6Nov 9, 2021 09:0515,154254,688,37530,004,00038,187,00029,487,104
7Nov 9, 2021 09:0515,166255,206,37436,920,00031,326,00029,548,544
8Nov 9, 2021 09:0515,186255,115,73330,069,00038,270,00029,716,480
9Nov 9, 2021 09:0515,207256,084,54534,215,00034,215,00029,626,368
10Nov 9, 2021 09:0515,345262,860,77541,431,00027,620,00029,622,272
11Nov 9, 2021 09:0515,424257,957,07641,645,00027,763,00029,544,448
12Nov 9, 2021 09:0515,493259,065,81436,469,00033,251,00029,585,408