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 02:03olliecrowolliecrowScore: 22,143Success
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 02:0322,088126,159,47885,339,00014,055,0002,289,664
2Feb 22, 2026 02:0322,103123,495,95584,395,00015,070,0002,277,376
3Feb 22, 2026 02:0322,119123,109,50285,461,00014,075,0002,277,376
4Feb 22, 2026 02:0322,126120,969,36486,495,00013,074,0002,523,136
5Feb 22, 2026 02:0322,143124,488,83484,546,00015,097,0002,289,664
6Feb 22, 2026 02:0322,144128,199,84085,555,00014,091,0002,289,664
7Feb 22, 2026 02:0322,208123,867,03783,946,00015,989,0002,273,280
8Feb 22, 2026 02:0322,449127,330,83884,017,00017,003,0002,269,184
9Feb 22, 2026 02:0322,607126,657,43983,778,00017,952,0002,293,760