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 01:17Yuriy LyfenkoYuriy LyfenkoScore: 10,371Success
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 01:173,03464,624,89713,650,75302,248,704
2May 10, 2023 01:173,04590,596,36013,702,48602,240,512
3May 10, 2023 01:173,04689,474,11013,706,21202,240,512
4May 10, 2023 01:1710,268239,788,29013,652,00032,555,00029,708,288
5May 10, 2023 01:1710,334233,496,46914,796,00031,707,00029,708,288
6May 10, 2023 01:1710,356237,982,90214,089,00032,513,00029,671,424
7May 10, 2023 01:1710,371237,991,10614,204,00032,467,00029,675,520
8May 10, 2023 01:1710,386243,027,88511,684,00035,052,00029,462,528
9May 10, 2023 01:1710,456236,601,48014,224,00032,826,00029,577,216
10May 10, 2023 01:1710,464240,524,12314,982,00032,104,00029,675,520
11May 10, 2023 01:1710,570242,485,33611,667,00035,899,00029,663,232
12May 10, 2023 01:1710,614240,718,34815,197,00032,566,00029,708,288