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 5, 2026 14:48Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 14:49066,992,94358,091,00002,113,536expected "3470029761711882 ", got " base=6861 xalu8=6291 xld8=6284 base=6282 xalu8=6281 xld8=6277 base=6281 xalu8=6280 xld8=6269 "
2Oct 5, 2026 14:49066,360,02357,520,00002,113,536expected "3471228966715608 ", got " base=6457 xalu8=6274 xld8=6259 base=6264 xalu8=6264 xld8=6264 base=6260 xalu8=6260 xld8=6259 "
3Oct 5, 2026 14:49067,464,09458,549,00002,113,536expected "3471453862204205 ", got " base=7464 xalu8=6271 xld8=6258 base=6258 xalu8=6264 xld8=6263 base=6263 xalu8=6257 xld8=6264 "