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 listMay 10, 2023 01:03Yuriy LyfenkoYuriy LyfenkoScore: 10,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:033,02195,245,80013,595,72202,244,608
2May 10, 2023 01:033,02673,476,54413,616,52302,248,704
3May 10, 2023 01:033,03281,912,12213,643,01702,240,512
4May 10, 2023 01:0310,264236,740,30013,342,00032,844,00029,544,448
5May 10, 2023 01:0310,295235,108,91314,339,00031,987,00029,741,056
6May 10, 2023 01:0310,304234,145,24611,355,00035,012,00029,708,288
7May 10, 2023 01:0310,340236,734,32113,294,00033,236,00029,741,056
8May 10, 2023 01:0310,397241,588,86015,206,00031,582,00029,577,216
9May 10, 2023 01:0310,421244,495,24411,723,00035,170,00029,667,328
10May 10, 2023 01:0310,488242,327,99411,799,00035,398,00029,716,480
11May 10, 2023 01:0310,495239,033,62813,774,00033,453,00029,708,288
12May 10, 2023 01:0310,702245,770,60818,223,00029,938,00029,708,288