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 13:46Karthik 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 13:470135,545,235126,619,00002,113,536expected "3472966609853991 ", got " c256_512_384:6831 pd256:6145 pd640:6173 lag256:6183 lag1k:6253 pairs1k:6165 c128:6355 c512:6326 lag768:6165 nopf:6473 c256_512_384:6141 pd256:6130 pd640:6167 lag256:6183 lag1k:6252 pairs1k:6167 c128:6356 c512:6330 la...
2Oct 5, 2026 13:470134,469,399125,781,00002,113,536expected "3469832845312007 ", got " c256_512_384:6313 pd256:6145 pd640:6317 lag256:6172 lag1k:6238 pairs1k:6156 c128:6342 c512:6219 lag768:6149 nopf:6461 c256_512_384:6128 pd256:6120 pd640:6151 lag256:6174 lag1k:6242 pairs1k:6158 c128:6337 c512:6219 la...
3Oct 5, 2026 13:470135,109,500126,248,00002,113,536expected "3472983400612166 ", got " c256_512_384:6337 pd256:6156 pd640:6176 lag256:6196 lag1k:6263 pairs1k:6172 c128:6363 c512:6355 lag768:6170 nopf:6485 c256_512_384:6147 pd256:6130 pd640:6168 lag256:6194 lag1k:6265 pairs1k:6170 c128:6363 c512:6349 la...