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 09:16Andrey TsvetkovAndrey TsvetkovScore: 433,368Success
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 09:10173,945853,639,551782,753,98102,297,856
2Oct 10, 2021 09:16174,010849,820,143783,045,40402,306,048
3Oct 10, 2021 09:16174,058841,945,007783,259,16702,293,760
4Oct 10, 2021 09:10174,106852,049,143783,478,48602,240,512
5Oct 10, 2021 09:10174,138841,392,271783,619,81102,211,840
6Oct 10, 2021 09:16174,152851,160,239783,684,65302,203,648
7Oct 10, 2021 09:16433,3682,005,547,5651,950,156,34602,195,456
8Oct 10, 2021 09:10433,4702,014,954,6121,950,616,67102,211,840
9Oct 10, 2021 09:10433,5492,008,219,9301,950,970,57402,199,552
10Oct 10, 2021 09:10433,5732,024,087,5101,951,077,26302,195,456
11Oct 10, 2021 09:16433,5992,022,455,2751,951,195,86402,195,456
12Oct 10, 2021 09:16433,8192,006,717,4191,952,184,12402,220,032