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 14:57Yuriy LyfenkoYuriy LyfenkoScore: 15,744Success
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 14:578,298103,500,76037,341,20202,248,704
2Oct 15, 2021 14:578,30098,529,18637,351,26502,244,608
3Oct 15, 2021 14:578,306115,294,25937,376,13802,260,992
4Oct 15, 2021 14:5715,618267,735,70934,191,00036,091,00029,708,288
5Oct 15, 2021 14:5715,641260,524,17338,868,00031,515,00029,667,328
6Oct 15, 2021 14:5715,713265,442,09136,364,00034,344,00029,708,288
7Oct 15, 2021 14:5715,744266,728,79240,634,00030,215,00029,663,232
8Oct 15, 2021 14:5715,758256,896,92039,275,00031,638,00029,638,656
9Oct 15, 2021 14:5715,822260,428,45236,589,00034,611,00029,667,328
10Oct 15, 2021 14:5715,855260,106,60241,710,00029,636,00029,663,232
11Oct 15, 2021 14:5715,879257,724,27739,575,00031,880,00029,663,232
12Oct 15, 2021 14:5715,892257,827,54736,723,00034,790,00029,495,296