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 14:42olliecrowolliecrowScore: 9,163Success
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 14:449,07857,563,94439,760,0001,093,0002,314,240
2May 6, 2026 14:449,14458,023,72940,033,0001,119,0002,306,048
3May 6, 2026 14:449,15357,998,96240,149,0001,043,0002,306,048
4May 6, 2026 14:449,16360,694,68640,087,0001,149,0002,576,384
5May 6, 2026 14:449,16358,037,91540,105,0001,131,0002,306,048
6May 6, 2026 14:449,17458,006,28540,149,0001,137,0002,310,144
7May 6, 2026 14:449,17656,509,09440,167,0001,129,0002,310,144
8May 6, 2026 14:449,20256,308,07940,289,0001,120,0002,568,192
9May 6, 2026 14:449,20858,152,01340,287,0001,152,0002,318,336