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 15:43Karthik 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 15:44021,236,33112,316,000020,480expected "3468582187468563 ", got "5030 6682 84 6946 4891 4210 4055 4090 |296 322 309 318 304 308 331 306 306 307 311 344 308 288 287 318 308 306 293 298 323 300 333 299 "
2Oct 5, 2026 15:44022,118,92813,161,000020,480expected "3471242592584004 ", got "5031 7544 86 7988 9478 7171 4206 4058 |324 326 340 327 342 292 311 310 299 272 282 302 294 312 314 306 313 341 278 301 309 311 297 298 "
3Oct 5, 2026 15:44021,335,83012,408,000020,480expected "3472092092217382 ", got "5028 6793 90 5736 5376 5048 4879 4087 |312 282 282 302 311 299 338 317 289 281 285 307 284 297 291 319 335 290 295 294 329 314 351 291 "