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 listMay 6, 2026 04:17olliecrowolliecrowScore: 22,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2026 04:2022,000114,271,84197,957,0001,044,0002,359,296
2May 6, 2026 04:2022,006114,451,77697,951,0001,076,0002,371,584
3May 6, 2026 04:2022,008114,340,11197,963,0001,073,0002,363,392
4May 6, 2026 04:2022,009116,296,22797,935,0001,108,0002,375,680
5May 6, 2026 04:2022,011115,259,95697,952,0001,101,0002,367,488
6May 6, 2026 04:2022,013115,088,65497,995,0001,066,0002,375,680
7May 6, 2026 04:2022,018116,883,75397,968,0001,115,0002,359,296
8May 6, 2026 04:2022,023113,860,38998,014,0001,091,0002,359,296
9May 6, 2026 04:2022,029113,005,32097,992,0001,142,0002,367,488