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 10, 2023 02:46Yuriy LyfenkoYuriy LyfenkoScore: 10,920Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 02:463,54694,674,34815,956,50702,244,608
2May 10, 2023 02:463,55570,222,65115,998,91802,252,800
3May 10, 2023 02:463,60957,739,98916,240,03802,244,608
4May 10, 2023 02:4610,855247,396,08316,283,00032,566,00029,577,216
5May 10, 2023 02:4610,873241,323,43713,344,00035,586,00029,712,384
6May 10, 2023 02:4610,910236,543,05615,668,00033,425,00029,708,288
7May 10, 2023 02:4610,920235,812,43815,356,00033,785,00029,704,192
8May 10, 2023 02:4610,930240,944,65018,301,00030,884,00029,663,232
9May 10, 2023 02:4610,950246,960,02117,139,00032,137,00029,671,424
10May 10, 2023 02:4610,956245,393,38816,434,00032,869,00029,659,136
11May 10, 2023 02:4611,056249,726,89317,689,00032,061,00029,544,448
12May 10, 2023 02:4611,182247,468,26016,058,00034,259,00029,708,288