Skip to content

Instantly share code, notes, and snippets.

View DetegiCE's full-sized avatar
😴
Sleeping

Ryubin Kim DetegiCE

😴
Sleeping
View GitHub Profile
const int mod = 998244353;
using lint = long long;
lint ipow(lint x, lint p){
lint ret = 1, piv = x;
while(p){
if(p & 1) ret = ret * piv % mod;
piv = piv * piv % mod;
p >>= 1;
}
return ret;