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:24Yuriy LyfenkoYuriy LyfenkoScore: 12,019Success
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:244,97168,560,36822,368,92102,252,800
2May 8, 2023 06:244,97294,433,29222,373,80102,240,512
3May 8, 2023 06:244,97392,163,83022,378,48002,248,704
4May 8, 2023 06:2411,914244,075,06724,071,00029,542,00029,679,616
5May 8, 2023 06:2411,967246,761,88720,712,00033,139,00029,679,616
6May 8, 2023 06:2412,004245,617,66824,661,00029,359,00029,593,600
7May 8, 2023 06:2412,019246,740,33321,209,00032,875,00029,708,288
8May 8, 2023 06:2412,031233,319,78120,051,00034,087,00029,519,872
9May 8, 2023 06:2412,052245,679,74521,489,00032,745,00029,708,288
10May 8, 2023 06:2412,054236,757,69420,469,00033,774,00029,478,912
11May 8, 2023 06:2412,105241,284,46121,183,00033,289,00029,704,192
12May 8, 2023 06:2412,224256,204,32524,578,00030,430,00029,503,488