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 20:29Jörn HorstmannJörn HorstmannScore: 18,942Success
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 20:2911,741116,411,12952,833,66802,211,840
2Jul 5, 2023 20:2911,743125,320,96052,841,70102,215,936
3Jul 5, 2023 20:2911,751118,804,58752,880,42702,207,744
4Jul 5, 2023 20:2918,760270,363,74655,913,00028,505,00029,642,752
5Jul 5, 2023 20:2918,811280,490,13152,167,00032,481,00029,642,752
6Jul 5, 2023 20:2918,901272,209,36351,226,00033,828,00029,564,928
7Jul 5, 2023 20:2918,942279,307,98254,341,00030,900,00029,622,272
8Jul 5, 2023 20:2919,030275,998,35055,349,00030,285,00029,630,464
9Jul 5, 2023 20:2919,119280,204,86359,219,00026,816,00029,696,000
10Jul 5, 2023 20:2919,158273,539,01356,037,00030,173,00029,528,064
11Jul 5, 2023 20:2919,334282,031,92151,235,00035,768,00029,515,776
12Jul 5, 2023 20:2919,564284,158,43151,846,00036,194,00029,728,768