QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#4932 | #5. 在线 O(1) 逆元 | zombie462 | 30 | 1629ms | 3844kb | C++11 | 173b | 2020-10-19 09:39:25 | 2024-11-05 21:42:05 |
Judging History
你现在查看的是测评时间为 2024-11-05 21:42:05 的历史记录
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2020-10-19 09:39:25]
- 提交
answer
#include <bits/stdc++.h>
#include "inv.h"
using namespace std;
int mod;
int inv(int a){
return a<=1?1:1LL*(mod-mod/a)*inv(mod%a)%mod;
}
void init(int p){
mod=p;
}
詳細信息
Pretests
Final Tests
Test #1:
score: 10
Accepted
time: 17ms
memory: 3760kb
Test #2:
score: 20
Accepted
time: 1629ms
memory: 3844kb
Test #3:
score: 0
Time Limit Exceeded
Test #4:
score: 0
Time Limit Exceeded
Test #5:
score: 0
Time Limit Exceeded