π© λ€μ μ½λ κ°κ²°ν μν€κΈ° (κ³μ°ν μ«μκ° 10μ΅μ΄ λμ΄κ°λ©΄ 10μ΅μΌλ‘ μΉνν΄μ£Όλ μ½λ)
10μ΅ : 1e9
λ‘ ννν μ μλ€.
long result = combis[i-1][j-1] + combis[i-1][j];
if (result > MAX)
combis[i][j] = MAX;
else
combis[i][j] = (int) result;
combis[i][j] = Math.min(combis[i-1][j-1] + combis[i-1][j], (int) 1e9);