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:13olliecrowolliecrowScore: 15,628Success
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:1315,58390,388,89953,095,00017,030,0002,314,240
2Feb 22, 2026 02:1315,59793,007,53154,143,00016,042,0002,281,472
3Feb 22, 2026 02:1315,60493,952,23954,169,00016,050,0002,281,472
4Feb 22, 2026 02:1315,61195,233,08754,193,00016,057,0002,457,600
5Feb 22, 2026 02:1315,628101,378,53953,248,00017,079,0002,281,472
6Feb 22, 2026 02:1315,64195,159,51654,298,00016,088,0002,281,472
7Feb 22, 2026 02:1315,64797,824,50055,323,00015,088,0002,469,888
8Feb 22, 2026 02:1315,65894,457,56654,356,00016,105,0002,473,984
9Feb 22, 2026 02:1315,67393,634,48653,399,00017,128,0002,285,568