QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#609949 | #5. 在线 O(1) 逆元 | Yyyyazs | Compile Error | / | / | C++14 | 279b | 2024-10-04 14:32:48 | 2024-11-05 22:04:23 |
Judging History
你现在查看的是最新测评结果
- [2024-11-05 22:04:23]
- 管理员手动重测本题所有提交记录
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-10-04 14:32:48]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2024-10-04 14:32:48]
- 提交
answer
constexpr u32 mul(u32 a,u32 b){
return u64(a)*b%998244353;
}
constexpr u32 qpw(u32 a,u32 b,u32 r=1){
for(;b;b>>=1,a=mul(a,a)){
if(b&1){
r=mul(r,a);
}
}
return r;
}
constexpr u32 inv(u32 x){
return qpw(a,998244351);
}
Details
implementer.cpp: In function ‘int main()’: implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ answer.code:1:11: error: ‘u32’ does not name a type 1 | constexpr u32 mul(u32 a,u32 b){ | ^~~ answer.code:4:11: error: ‘u32’ does not name a type 4 | constexpr u32 qpw(u32 a,u32 b,u32 r=1){ | ^~~ answer.code:12:11: error: ‘u32’ does not name a type 12 | constexpr u32 inv(u32 x){ | ^~~