QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#4934#5. 在线 O(1) 逆元zombie46230 1563ms3876kbC++11178b2020-10-19 09:40:342024-11-05 21:45:26

Judging History

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

  • [2024-11-05 21:45:26]
  • 管理员手动重测本题所有提交记录
  • 测评结果:30
  • 用时:1563ms
  • 内存:3876kb
  • [2024-11-05 21:42:05]
  • 管理员手动重测本题所有提交记录
  • 测评结果:30
  • 用时:1565ms
  • 内存:3828kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2021-12-19 05:37:49]
  • 评测
  • 测评结果:70
  • 用时:2436ms
  • 内存:3616kb
  • [2020-10-19 09:40:34]
  • 提交

answer

#include <bits/stdc++.h>
#include "inv.h"
using namespace std;
const int mod=998244353;
int inv(int a){
	return a<=1?1:1LL*(mod-mod/a)*inv(mod%a)%mod;
}
void init(int p){}

Details


Pretests


Final Tests

Test #1:

score: 10
Accepted
time: 16ms
memory: 3876kb

Test #2:

score: 20
Accepted
time: 1563ms
memory: 3868kb

Test #3:

score: 0
Time Limit Exceeded

Test #4:

score: 0
Time Limit Exceeded

Test #5:

score: 0
Time Limit Exceeded