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 03:18Yuriy LyfenkoYuriy LyfenkoScore: 21,600Success
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 03:1814,273124,253,61564,228,84202,240,512
2May 10, 2023 03:1814,274126,322,90964,231,96402,224,128
3May 10, 2023 03:1814,280130,145,95764,258,90802,224,128
4May 10, 2023 03:1821,428281,255,75660,389,00036,038,00029,499,392
5May 10, 2023 03:1821,549287,080,66264,990,00031,979,00029,569,024
6May 10, 2023 03:1821,558289,077,64565,017,00031,992,00029,560,832
7May 10, 2023 03:1821,600289,631,35365,845,00031,355,00029,675,520
8May 10, 2023 03:1821,624291,948,81864,182,00033,126,00029,532,160
9May 10, 2023 03:1821,625285,259,37668,562,00028,752,00029,634,560
10May 10, 2023 03:1821,664292,538,95962,672,00034,817,00029,503,488
11May 10, 2023 03:1821,736289,771,18460,645,00037,169,00029,671,424
12May 10, 2023 03:1821,778297,338,33863,596,00034,404,00029,736,960