목록BigInt (1)
일산짱
c++ BigInteger
#include#include#include#include#include#include#includeusing namespace std; typedef int64_t ll; #define EL printf("\n") #define pb push_back #define FOR(i,l,r) for (int i=l;i=l;i--) const int base = 1e9; typedef vector BigInt; void Set(BigInt &a) { while (a.size() > 1 && a.back() == 0) a.pop_back(); } void Print(BigInt a) { Set(a); printf("%d", (a.size() == 0) ? 0 : a.back()); FORD(i,a.size()-2..
알고리듬
2017. 10. 10. 15:34