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 12:50Karthik 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 12:510149,886,281141,025,00002,113,536expected "3472205631519592 ", got " v0:7616 v1:7695 v2:8292 v3:7341 v4:8141 v5:7634 v0:7500 v1:7670 v2:8287 v3:7339 v4:8146 v5:7641 v0:7497 v1:7674 v2:8289 v3:7340 v4:8132 v5:7639 "
2Oct 5, 2026 12:510150,498,231141,593,00002,113,536expected "3476189773730924 ", got " v0:7631 v1:7701 v2:8459 v3:7354 v4:8156 v5:7625 v0:7498 v1:7683 v2:8447 v3:7350 v4:8150 v5:7622 v0:7500 v1:7681 v2:8449 v3:7352 v4:8152 v5:7624 "
3Oct 5, 2026 12:510151,661,030142,749,00002,113,536expected "3473238646810306 ", got " v0:7618 v1:7724 v2:8238 v3:7470 v4:8437 v5:7766 v0:7550 v1:7705 v2:8242 v3:7464 v4:8437 v5:7756 v0:7549 v1:7706 v2:8232 v3:7470 v4:8433 v5:7756 "