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:47Ilya AniskovetsIlya AniskovetsScore: 14,588Success
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:477,03388,750,10331,650,06402,281,472
2Oct 16, 2021 13:477,08872,785,63331,896,12302,265,088
3Oct 16, 2021 13:477,14092,252,63532,130,40402,269,184
4Oct 16, 2021 13:4714,419253,595,90530,415,00034,471,00029,593,600
5Oct 16, 2021 13:4714,559253,168,52931,701,00033,814,00029,630,464
6Oct 16, 2021 13:4714,583254,254,12829,383,00036,239,00029,630,464
7Oct 16, 2021 13:4714,588256,419,03829,494,00036,154,00029,507,584
8Oct 16, 2021 13:4714,618253,752,17034,024,00031,756,00029,540,352
9Oct 16, 2021 13:4714,649261,831,43129,082,00036,837,00029,544,448
10Oct 16, 2021 13:4714,691251,632,00932,022,00034,088,00029,499,392
11Oct 16, 2021 13:4714,702255,474,97030,534,00035,624,00029,663,232
12Oct 16, 2021 13:4714,738254,635,61836,845,00029,476,00029,696,000