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:35Karthik 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:36016,010,9407,187,000020,480expected "3472198805321288 ", got "96 6521 99 5659 4381 4273 4030 4104 4125 4053 4118 4078 4076 4114 4080 4189 4056 4035 "
2Oct 5, 2026 15:36016,994,2808,142,000020,480expected "3470908282948649 ", got "101 7446 105 5897 6488 8294 6319 4598 4081 4105 4050 4075 4171 4088 4176 4123 4111 4156 "
3Oct 5, 2026 15:36016,267,5187,416,000020,480expected "3470833717036967 ", got "95 6746 99 7860 4748 4061 4135 4125 4049 4113 4075 4047 4073 4066 4102 4082 4075 4151 "