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 17:37Yuriy LyfenkoYuriy LyfenkoScore: 16,356Success
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 17:379,262105,449,85941,680,84102,256,896
2Oct 15, 2021 17:379,267115,938,00241,699,88402,260,992
3Oct 15, 2021 17:379,268105,859,32441,707,28202,260,992
4Oct 15, 2021 17:3716,276266,747,03840,040,00033,203,00029,544,448
5Oct 15, 2021 17:3716,322261,196,31143,850,00029,598,00029,675,520
6Oct 15, 2021 17:3716,341261,055,30141,427,00032,106,00029,519,872
7Oct 15, 2021 17:3716,356261,579,88537,721,00035,881,00029,675,520
8Oct 15, 2021 17:3716,378262,797,98638,326,00035,377,00029,667,328
9Oct 15, 2021 17:3716,437259,638,57741,209,00032,756,00029,667,328
10Oct 15, 2021 17:3716,452270,187,38242,462,00031,574,00029,679,616
11Oct 15, 2021 17:3716,462262,085,25541,272,00032,806,00029,573,120
12Oct 15, 2021 17:3716,467265,562,41538,494,00035,607,00029,708,288