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:13Karthik 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:14015,938,0647,131,000020,480expected "3474416385549500 ", got "94 6439 3360 3764 4180 4589 5005 5415 5828 12 288 747 1157 1562 1972 2376 2782 3191 "
2Oct 5, 2026 15:14016,486,4357,126,000020,480expected "3470752171050703 ", got "95 6442 3365 3773 4183 4593 5002 5415 5822 16 285 741 1156 1561 1967 2382 2790 3199 "
3Oct 5, 2026 15:14015,930,5747,099,000020,480expected "3472297831161456 ", got "99 6418 3369 3773 4179 4582 4990 5394 5799 11 289 748 1166 1571 1983 2387 2792 3206 "