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 18:55Yuriy LyfenkoYuriy LyfenkoScore: 13,757Success
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 18:556,51490,497,59629,314,35102,265,088
2Oct 15, 2021 18:556,53384,754,99929,396,71102,273,280
3Oct 15, 2021 18:556,54196,564,79429,435,57602,273,280
4Oct 15, 2021 18:5513,573250,803,75133,533,00027,545,00029,659,136
5Oct 15, 2021 18:5513,691247,063,76627,725,00033,886,00029,560,832
6Oct 15, 2021 18:5513,720245,520,44026,047,00035,694,00029,491,200
7Oct 15, 2021 18:5513,757247,901,12926,531,00035,375,00029,650,944
8Oct 15, 2021 18:5513,761252,222,17030,399,00031,525,00029,560,832
9Oct 15, 2021 18:5513,867253,744,92828,081,00034,322,00029,552,640
10Oct 15, 2021 18:5513,879249,236,05827,644,00034,811,00029,630,464
11Oct 15, 2021 18:5513,959247,112,60227,355,00035,460,00029,560,832
12Oct 15, 2021 18:5513,961254,117,90230,862,00031,964,00029,560,832