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,777Success
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,59093,954,45629,656,52602,260,992
2May 31, 2023 03:246,60289,084,92129,707,01902,252,800
3May 31, 2023 03:246,604102,279,17129,719,38102,252,800
4May 31, 2023 03:2413,664251,949,57829,718,00031,768,00029,491,200
5May 31, 2023 03:2413,706251,546,71728,783,00032,895,00029,638,656
6May 31, 2023 03:2413,760252,146,22232,712,00029,207,00029,515,776
7May 31, 2023 03:2413,777250,947,10627,123,00034,872,00029,544,448
8May 31, 2023 03:2413,816250,846,77024,868,00037,302,00029,708,288
9May 31, 2023 03:2413,818251,823,85526,233,00035,949,00029,728,768
10May 31, 2023 03:2413,820250,157,20926,789,00035,400,00029,659,136
11May 31, 2023 03:2413,860251,541,38629,174,00033,198,00029,655,040
12May 31, 2023 03:2413,868256,619,24332,905,00029,501,00029,732,864