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 listJul 3, 2023 07:43Jörn HorstmannJörn HorstmannScore: 22,984Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 07:4315,730132,140,67270,786,61502,260,992
2Jul 3, 2023 07:4315,731143,540,56570,788,66002,203,648
3Jul 3, 2023 07:4315,740140,109,21470,828,17402,203,648
4Jul 3, 2023 07:4322,785295,011,81068,355,00034,177,00029,646,848
5Jul 3, 2023 07:4322,890291,081,10870,004,00033,002,00029,659,136
6Jul 3, 2023 07:4322,894294,969,75572,535,00030,486,00029,474,816
7Jul 3, 2023 07:4322,984297,355,48171,366,00032,063,00029,696,000
8Jul 3, 2023 07:4323,004291,296,58067,383,00036,133,00029,462,528
9Jul 3, 2023 07:4323,024305,869,52768,085,00035,522,00029,564,928
10Jul 3, 2023 07:4323,114287,923,02973,545,00030,468,00029,696,000
11Jul 3, 2023 07:4323,129303,385,04974,038,00030,044,00029,499,392
12Jul 3, 2023 07:4323,130293,438,79063,555,00040,528,00029,495,296