QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515172 | #5. 在线 O(1) 逆元 | HHHashmap | 0 | 0ms | 3884kb | C++14 | 165b | 2024-08-11 15:41:13 | 2024-08-11 15:41:13 |
Judging History
answer
#include <bits/stdc++.h>
#include "inv.h"
using namespace std;
int m;
void init(int p)
{
m=p;
return;
}
int inv(int x)
{
return (m-m/x)/(m%x);
}
Details
Pretests
Final Tests
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3748kb
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3624kb
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3884kb