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 02:15Yuriy LyfenkoYuriy LyfenkoScore: 17,355Success
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 02:1510,071106,800,62645,320,17202,244,608
2Oct 11, 2021 02:1510,082110,075,50145,366,76002,260,992
3Oct 11, 2021 02:1510,087114,641,28845,392,86202,240,512
4Oct 11, 2021 02:1517,228262,844,99246,515,00031,010,00029,622,272
5Oct 11, 2021 02:1517,247267,528,04644,776,00032,836,00029,655,040
6Oct 11, 2021 02:1517,313272,125,69642,321,00035,588,00029,675,520
7Oct 11, 2021 02:1517,355266,322,45545,818,00032,280,00029,708,288
8Oct 11, 2021 02:1517,403271,423,00745,180,00033,132,00029,708,288
9Oct 11, 2021 02:1517,415265,801,36244,207,00034,160,00029,675,520
10Oct 11, 2021 02:1517,456265,007,86645,318,00033,233,00029,577,216
11Oct 11, 2021 02:1517,487269,491,41348,509,00030,183,00029,548,544
12Oct 11, 2021 02:1517,503267,314,45644,866,00033,898,00029,708,288