2#include"../../kyopro_library/template.hpp"
4constexpr lll
operator ""_lll(ull x) {
return static_cast<lll>(x); }
5constexpr const lll
INFLL=1_lll<<120;
9 while(c==
' '||c==
'\n') is.get(), c=is.peek();
11 if(c==
'-') neg=
true, is.get();
13 while(isdigit(is.peek())) x=x*10+is.get()-
'0';
19 if(x<0) os<<
'-', x=-x;
20 if(x==0)
return os<<
'0';
22 while(x>0) s+=x%10+
'0', x/=10;
23 reverse(s.begin(),s.end());
28lll abs(lll x) {
if (x<0)
return -x;
return x; }
29lll gcd(lll a, lll b) {
30 while(b) a%=b, swap(a,b);
ostream & operator<<(ostream &os, lll x)
constexpr lll operator""_lll(ull x)
constexpr const lll INFLL
istream & operator>>(istream &is, lll &x)