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 5, 2023 17:23Jörn HorstmannJörn HorstmannScore: 22,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2023 17:2315,553131,453,14969,987,37802,199,552
2Jul 5, 2023 17:2315,643133,385,50570,392,15802,199,552
3Jul 5, 2023 17:2315,654124,944,29670,444,21502,211,840
4Jul 5, 2023 17:2322,670288,652,22568,351,00033,665,00029,564,928
5Jul 5, 2023 17:2322,888292,242,05867,044,00035,951,00029,663,232
6Jul 5, 2023 17:2322,895292,356,33667,704,00035,324,00029,597,696
7Jul 5, 2023 17:2322,912291,141,22572,902,00030,202,00029,597,696
8Jul 5, 2023 17:2322,913291,148,44473,344,00029,763,00029,663,232
9Jul 5, 2023 17:2322,996289,679,30171,803,00031,677,00029,696,000
10Jul 5, 2023 17:2323,055295,976,18869,500,00034,246,00029,663,232
11Jul 5, 2023 17:2323,123293,872,24671,410,00032,644,00029,634,560
12Jul 5, 2023 17:2323,292293,154,04675,025,00029,789,00029,700,096