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 01:12Yuriy LyfenkoYuriy LyfenkoScore: 10,462Success
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 01:123,04078,145,00413,681,75902,244,608
2May 10, 2023 01:123,05076,166,83913,723,00002,252,800
3May 10, 2023 01:123,07789,058,24213,844,99802,244,608
4May 10, 2023 01:1210,363235,757,61212,125,00034,510,00029,708,288
5May 10, 2023 01:1210,419235,537,88814,175,00032,712,00029,708,288
6May 10, 2023 01:1210,422234,308,39214,179,00032,721,00029,552,640
7May 10, 2023 01:1210,462235,055,37313,304,00033,773,00029,663,232
8May 10, 2023 01:1210,510234,587,81213,662,00033,631,00029,753,344
9May 10, 2023 01:1210,530255,003,58515,024,00032,361,00029,655,040
10May 10, 2023 01:1210,556239,958,46914,149,00033,352,00029,675,520
11May 10, 2023 01:1210,622238,671,76414,707,00033,092,00029,671,424
12May 10, 2023 01:1210,756245,108,11212,626,00035,775,00029,667,328