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 20:10Andrew EpsteinAndrew EpsteinScore: 19,591Success
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 20:1319,47498,006,01586,630,0001,004,0002,117,632stderr
2Oct 2, 2026 20:1319,48898,072,81686,582,0001,116,0002,117,632stderr
3Oct 2, 2026 20:1319,53598,406,80186,799,0001,109,0002,117,632stderr
4Oct 2, 2026 20:1319,55898,361,63886,925,0001,090,0002,117,632stderr
5Oct 2, 2026 20:1319,59198,551,89887,043,0001,120,0002,117,632stderr
6Oct 2, 2026 20:1319,61198,655,49087,171,0001,082,0002,117,632stderr
7Oct 2, 2026 20:1319,61698,693,17487,176,0001,097,0002,117,632stderr
8Oct 2, 2026 20:1319,87699,892,19888,337,0001,108,0002,117,632stderr
9Oct 2, 2026 20:1319,88899,872,68588,405,0001,092,0002,117,632stderr