QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#102586#5. 在线 O(1) 逆元liuzhenhao090 0ms0kbC++20269b2023-05-03 14:52:472024-11-05 21:49:21

Judging History

你现在查看的是最新测评结果

  • [2024-11-05 21:49:21]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-03 14:52:50]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2023-05-03 14:52:47]
  • 提交

answer

#include<bits/stdc++.h>
#include "inv.h"
using namespace std;
const int MOD = 998244353;
int iv[20000010];
int inv(int x){
	return iv[x];
}
void init(int p){
	iv[1] = 1;
	for(int i = 2; i <= 20000000; i++) iv[i] = 1LL * (MOD - MOD / i) * iv[MOD % i] % MOD;
}

詳細信息


Pretests


Final Tests

Test #1:

score: 0
Runtime Error

Test #2:

score: 0
Runtime Error

Test #3:

score: 0
Runtime Error

Test #4:

score: 0
Runtime Error

Test #5:

score: 0
Runtime Error