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 8, 2023 06:26Yuriy LyfenkoYuriy LyfenkoScore: 12,279Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:265,13383,402,54923,097,25702,248,704
2May 8, 2023 06:265,14580,281,34823,152,16602,252,800
3May 8, 2023 06:265,15184,719,66523,178,25802,252,800
4May 8, 2023 06:2612,135248,232,30725,028,00029,579,00029,736,960
5May 8, 2023 06:2612,176250,452,75822,128,00032,666,00029,663,232
6May 8, 2023 06:2612,264246,972,30520,236,00034,954,00029,659,136
7May 8, 2023 06:2612,279250,986,29821,098,00034,158,00029,679,616
8May 8, 2023 06:2612,368251,324,72722,674,00032,981,00029,511,680
9May 8, 2023 06:2612,383247,975,80322,290,00033,435,00029,659,136
10May 8, 2023 06:2612,458253,661,58226,242,00029,821,00029,679,616
11May 8, 2023 06:2612,491245,404,71022,484,00033,726,00029,708,288
12May 8, 2023 06:2613,066254,208,85626,842,00031,955,00029,708,288