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 6, 2026 00:21Karthik 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 6, 2026 00:22016,666,0157,267,000020,480expected "3469200047749152 ", got "96 6564 6492 291 89 5195 4446 4214 4216 4195 4150 4183 4179 4153 4115 4112 4187 4137 4206 4220 "
2Oct 6, 2026 00:22016,320,5477,300,000020,480expected "3474615893044231 ", got "95 6621 6507 288 86 5034 4469 4377 4258 4210 4192 4212 4181 4233 4229 4221 4219 4233 4202 4243 "
3Oct 6, 2026 00:22016,293,3287,245,000020,480expected "3471516368488507 ", got "110 6553 6484 305 95 5133 4488 4105 4171 4164 4135 4172 4195 4166 4193 4154 4232 4161 4216 4163 "