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 31, 2023 03:24Victor MuñozVictor MuñozScore: 13,825Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2023 03:246,593101,121,81529,666,90502,260,992
2May 31, 2023 03:246,59690,925,03529,681,11602,244,608
3May 31, 2023 03:246,611101,019,24529,751,60102,252,800
4May 31, 2023 03:2413,672252,168,96231,342,00030,181,00029,675,520
5May 31, 2023 03:2413,744245,886,30329,857,00031,989,00029,708,288
6May 31, 2023 03:2413,819249,893,18729,020,00033,166,00029,679,616
7May 31, 2023 03:2413,825249,563,59228,470,00033,742,00029,675,520
8May 31, 2023 03:2413,828245,480,79931,112,00031,112,00029,675,520
9May 31, 2023 03:2413,852257,026,26128,151,00034,183,00029,675,520
10May 31, 2023 03:2413,898253,614,03630,722,00031,819,00029,667,328
11May 31, 2023 03:2413,959257,731,66730,325,00032,491,00029,544,448
12May 31, 2023 03:2414,085257,881,72833,556,00029,828,00029,675,520