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 17:55Bernard TeoBernard TeoScore: 13,061Success
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 17:554,18886,071,11818,844,46502,277,376
2May 21, 2023 17:554,21993,343,50718,986,22402,273,280
3May 21, 2023 17:554,22885,750,14019,026,74002,277,376
4May 21, 2023 17:5512,874240,598,59625,105,00032,830,00029,634,560
5May 21, 2023 17:5512,906248,356,57325,928,00032,151,00029,556,736
6May 21, 2023 17:5513,010244,690,85918,853,00039,691,00029,667,328
7May 21, 2023 17:5513,061253,268,29325,779,00032,997,00029,728,768
8May 21, 2023 17:5513,092245,517,22322,494,00036,418,00029,732,864
9May 21, 2023 17:5513,132251,103,62325,919,00033,176,00029,732,864
10May 21, 2023 17:5513,138249,961,41417,445,00041,675,00029,634,560
11May 21, 2023 17:5513,419261,577,32821,367,00039,018,00029,569,024
12May 21, 2023 17:5513,423258,093,76623,933,00036,469,00029,634,560