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:14Jörn HorstmannJörn HorstmannScore: 58,062Success
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:1454,693324,329,943246,118,22702,199,552
2Jul 3, 2023 07:1454,895309,374,364247,025,61102,183,168
3Jul 3, 2023 07:1455,578307,440,391250,100,54202,187,264
4Jul 3, 2023 07:1457,984463,545,592214,260,00046,670,00029,618,176
5Jul 3, 2023 07:1458,019467,482,573222,370,00038,716,00029,483,008
6Jul 3, 2023 07:1458,035465,881,453233,176,00027,981,00029,683,712
7Jul 3, 2023 07:1458,062470,214,221222,388,00038,893,00029,515,776
8Jul 3, 2023 07:1458,069471,192,396217,260,00044,052,00029,618,176
9Jul 3, 2023 07:1458,104466,657,672217,049,00044,419,00029,634,560
10Jul 3, 2023 07:1458,117469,193,708216,300,00045,226,00029,683,712
11Jul 3, 2023 07:1458,124465,194,740220,938,00040,620,00029,618,176
12Jul 3, 2023 07:1458,395461,980,926226,253,00036,525,00029,716,480