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 listFeb 22, 2026 04:36olliecrowolliecrowScore: 8,323Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 04:368,21663,842,72721,983,00014,989,0002,293,760
2Feb 22, 2026 04:368,26560,682,82125,130,00012,062,0002,297,856
3Feb 22, 2026 04:368,27159,087,85217,100,00020,118,0002,277,376
4Feb 22, 2026 04:368,29267,549,26220,170,00017,145,0002,285,568
5Feb 22, 2026 04:368,32357,551,14824,294,00013,159,0002,285,568
6Feb 22, 2026 04:368,33262,068,52824,321,00013,173,0002,297,856
7Feb 22, 2026 04:368,34066,954,04524,344,00013,186,0002,289,664
8Feb 22, 2026 04:368,35062,230,18624,372,00013,201,0002,285,568
9Feb 22, 2026 04:368,42066,605,94422,932,00014,956,0002,277,376