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 11, 2021 10:59tirochkintirochkinScore: 41,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 10:5934,268225,612,785154,206,68502,232,320
2Oct 11, 2021 10:5934,342216,924,386154,538,24702,228,224
3Oct 11, 2021 10:5934,410235,373,089154,846,00402,220,032
4Oct 11, 2021 10:5941,190367,776,051144,841,00040,515,00029,663,232
5Oct 11, 2021 10:5941,222371,831,435138,872,00046,628,00029,630,464
6Oct 11, 2021 10:5941,234363,889,615127,380,00058,173,00029,630,464
7Oct 11, 2021 10:5941,235367,193,841133,561,00051,997,00029,556,736
8Oct 11, 2021 10:5941,245369,482,841129,723,00055,881,00029,556,736
9Oct 11, 2021 10:5941,279369,425,786129,526,00056,228,00029,564,928
10Oct 11, 2021 10:5941,431375,799,117136,396,00050,044,00029,569,024
11Oct 11, 2021 10:5941,551371,038,286134,267,00052,712,00029,601,792
12Oct 11, 2021 10:5941,710365,795,186137,642,00050,051,00029,560,832