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 15, 2021 06:31Ilya AniskovetsIlya AniskovetsScore: 18,667Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 06:3111,328106,069,57550,976,98502,273,280
2Oct 15, 2021 06:3111,391115,518,31251,258,10802,269,184
3Oct 15, 2021 06:3111,446126,151,55251,508,93602,273,280
4Oct 15, 2021 06:3118,467274,007,68149,862,00033,241,00029,548,544
5Oct 15, 2021 06:3118,584272,964,70251,871,00031,758,00029,634,560
6Oct 15, 2021 06:3118,655272,117,66656,754,00027,194,00029,646,848
7Oct 15, 2021 06:3118,667278,221,42348,424,00035,577,00029,593,600
8Oct 15, 2021 06:3118,677272,143,12346,909,00037,136,00029,593,600
9Oct 15, 2021 06:3118,686278,048,72746,932,00037,155,00029,761,536
10Oct 15, 2021 06:3118,746278,063,18250,407,00033,948,00029,491,200
11Oct 15, 2021 06:3118,795272,386,75653,132,00031,445,00029,630,464
12Oct 15, 2021 06:3118,886276,119,79251,823,00033,166,00029,696,000