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 21, 2023 15:15Bernard TeoBernard TeoScore: 13,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 15:154,23487,252,99819,053,70702,269,184
2May 21, 2023 15:154,27998,956,51819,257,62402,285,568
3May 21, 2023 15:154,33488,582,11619,501,93202,269,184
4May 21, 2023 15:1513,112251,807,81422,528,00036,474,00029,503,488
5May 21, 2023 15:1513,162244,049,74225,666,00033,563,00029,556,736
6May 21, 2023 15:1513,249252,486,60224,077,00035,542,00029,634,560
7May 21, 2023 15:1513,275253,464,02723,288,00036,451,00029,560,832
8May 21, 2023 15:1513,360253,833,55322,150,00037,972,00029,503,488
9May 21, 2023 15:1513,556261,829,85719,983,00041,018,00029,663,232
10May 21, 2023 15:1513,638257,830,49323,433,00037,940,00029,667,328
11May 21, 2023 15:1513,677261,201,85224,618,00036,927,00029,696,000
12May 21, 2023 15:1513,704263,410,55023,802,00037,868,00029,663,232