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 listOct 2, 2026 16:38Andrew EpsteinAndrew EpsteinScore: 1,725Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2026 16:461,69116,417,9337,611,000024,576
2Oct 2, 2026 16:461,70416,618,5517,669,000024,576
3Oct 2, 2026 16:461,71716,737,0457,727,000024,576
4Oct 2, 2026 16:461,71816,731,6267,733,000024,576
5Oct 2, 2026 16:461,72516,800,6497,763,000024,576
6Oct 2, 2026 16:461,73516,737,9747,808,000024,576
7Oct 2, 2026 16:461,75616,943,2107,902,000024,576
8Oct 2, 2026 16:461,78516,949,4358,035,000024,576
9Oct 2, 2026 16:461,79417,114,2338,073,000024,576