// I tried my old calculator, but it timed out on the case ("999999999", 80). // I haven't found any effective pruning strategy yet. // This solution is from https ...
/// like Earley parser, O(4^n) (string concatenation treated as O(1)) forward(k+1, s+a[k], add, mul, last*10+x); forward(k+1, s+'*'+a[k], add, mul*last, x); forward ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する