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 listOct 16, 2021 13:50Ilya AniskovetsIlya AniskovetsScore: 14,458Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 13:507,05996,628,38231,766,06902,265,088
2Oct 16, 2021 13:507,10694,654,39131,977,24702,277,376
3Oct 16, 2021 13:507,144103,997,04632,149,30502,265,088
4Oct 16, 2021 13:5014,404251,827,64833,454,00031,363,00029,556,736
5Oct 16, 2021 13:5014,416246,862,38329,940,00034,930,00029,630,464
6Oct 16, 2021 13:5014,442250,006,00234,736,00030,254,00029,593,600
7Oct 16, 2021 13:5014,458249,365,77829,659,00035,400,00029,630,464
8Oct 16, 2021 13:5014,511250,238,02235,618,00029,682,00029,544,448
9Oct 16, 2021 13:5014,523255,236,38137,517,00027,835,00029,634,560
10Oct 16, 2021 13:5014,584259,362,70431,299,00034,328,00029,630,464
11Oct 16, 2021 13:5014,661264,193,58730,988,00034,987,00029,601,792
12Oct 16, 2021 13:5014,717254,341,05038,019,00028,208,00029,495,296