목록큰 수 연산 (1)
레야몬
[C++] 2407번 조합 - 수학, 조합론, 큰 수 연산
#include #include #include using namespace std; typedef long long ll; __uint128_t memo[101][101]; __uint128_t comb(int n, int r) { if(n> n >> r; res = comb(n, r); string a = ""; string f = to_string((ll) (res / (__uint128_t)pow(10, 15))); string s = to_string((ll) (res % (__uint128_t)pow(10, 15))); if(f=="0") a=s; else a=f+s; cout int 로 변.. blockdmask.tistory.com ※현재 고등학교 등교중인 학생입니다. 이제 알고리즘을 본격..
알고리즘/백준
2022. 9. 3. 17:11