QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#464841 | #5. 在线 O(1) 逆元 | ETO_leader | 0 | 0ms | 3884kb | C++23 | 278b | 2024-07-06 15:21:15 | 2024-11-05 21:59:48 |
Judging History
answer
using ulint=unsigned long long;
static constexpr auto MOD=998244353;
void init(int p){}
constexpr auto Inv(ulint x){
auto res=1ull;auto b=MOD-2;
while(b){
if(b&1) (res*=res)%=MOD;
(x*=x)%=MOD;b>>=1;
}
return res;
}
int inv(int x){return Inv(x);}
Details
Pretests
Final Tests
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3884kb
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3864kb
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3884kb
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3664kb
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 3628kb