QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#4915 | #5. 在线 O(1) 逆元 | Qingyu | 60 | 5804ms | 3728kb | C++11 | 1.2kb | 2020-10-15 22:52:10 | 2024-11-05 21:41:40 |
Judging History
你现在查看的是测评时间为 2024-11-05 21:41:40 的历史记录
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2020-10-15 22:52:10]
- 提交
answer
#include "inv.h"
typedef long long ll;
const int mod = 998244353;
void init(int p) {}
int inv(int _x)
{
ll x = _x, r = 1;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
x = x * x % mod;
r = r * x % mod;
return r;
}
詳細信息
Pretests
Final Tests
Test #1:
score: 10
Accepted
time: 12ms
memory: 3692kb
Test #2:
score: 20
Accepted
time: 1161ms
memory: 3728kb
Test #3:
score: 30
Accepted
time: 5804ms
memory: 3676kb
Test #4:
score: 0
Time Limit Exceeded
Test #5:
score: 0
Time Limit Exceeded