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 8, 2026 02:22Victor MerckléVictor MerckléScore: 2,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 02:252,70720,484,53611,120,0001,065,0002,142,208stderr
2Jul 8, 2026 02:252,71020,230,08510,961,0001,237,0002,142,208stderr
3Jul 8, 2026 02:252,71622,391,55111,143,0001,080,0002,142,208stderr
4Jul 8, 2026 02:252,71820,328,69611,079,0001,156,0002,142,208stderr
5Jul 8, 2026 02:252,71920,401,37711,167,0001,070,0002,142,208stderr
6Jul 8, 2026 02:252,72020,475,02711,175,0001,066,0002,142,208stderr
7Jul 8, 2026 02:252,72320,494,73711,187,0001,070,0002,142,208stderr
8Jul 8, 2026 02:252,72320,412,50110,926,0001,330,0002,142,208stderr
9Jul 8, 2026 02:252,72520,587,27811,113,0001,153,0002,142,208stderr