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 7, 2023 09:36Bernard TeoBernard TeoScore: 16,296Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 09:367,00192,645,53731,504,00102,260,992
2May 7, 2023 09:367,01295,222,37931,554,37802,256,896
3May 7, 2023 09:367,018100,923,10331,582,40102,260,992
4May 7, 2023 09:3615,732260,315,14834,884,00035,910,00029,687,808
5May 7, 2023 09:3615,896263,562,40337,754,00033,780,00029,745,152
6May 7, 2023 09:3616,163268,834,75236,879,00035,855,00029,720,576
7May 7, 2023 09:3616,296271,566,03643,137,00030,196,00029,552,640
8May 7, 2023 09:3616,425271,446,24139,196,00034,716,00029,454,336
9May 7, 2023 09:3616,431275,940,93339,434,00034,505,00029,720,576
10May 7, 2023 09:3616,463271,693,93740,216,00033,866,00029,724,672
11May 7, 2023 09:3616,525271,609,92034,082,00040,279,00029,720,576
12May 7, 2023 09:3616,914274,325,46538,056,00038,056,00029,679,616