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 10, 2021 14:51Andrey TsvetkovAndrey TsvetkovScore: 78,178Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 14:5128,117197,717,675126,525,04502,203,648
2Oct 10, 2021 14:5128,166190,169,741126,745,27802,203,648
3Oct 10, 2021 14:5128,167192,342,638126,750,63702,203,648
4Oct 10, 2021 14:5168,695376,459,083309,126,60902,252,800
5Oct 10, 2021 14:5168,772364,327,722309,475,08602,252,800
6Oct 10, 2021 14:5168,834381,310,837309,755,11702,256,896
7Oct 10, 2021 14:5178,141521,885,477294,183,00057,450,00029,700,096
8Oct 10, 2021 14:5178,178537,771,202293,167,00058,633,00029,581,312
9Oct 10, 2021 14:5178,241533,349,413298,828,00053,256,00029,700,096
10Oct 10, 2021 14:5178,327533,785,065281,976,00070,494,00029,720,576
11Oct 10, 2021 14:5178,400535,530,135301,244,00051,555,00029,769,728
12Oct 10, 2021 14:5178,467539,296,722299,693,00053,410,00029,597,696
13Oct 10, 2021 14:5178,587532,301,536301,252,00052,391,00029,589,504
14Oct 10, 2021 14:5178,591530,559,578294,880,00058,780,00029,601,792
15Oct 10, 2021 14:5178,703535,786,142298,509,00055,654,00029,683,712