QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#4934#5. 在线 O(1) 逆元zombie46230 1565ms3828kbC++11178b2020-10-19 09:40:342024-11-05 21:42:05

Judging History

This is a historical verdict posted at 2024-11-05 21:42:05.

  • [2024-11-05 21:45:26]
  • 管理员手动重测本题所有提交记录
  • Verdict: 30
  • Time: 1563ms
  • Memory: 3876kb
  • [2024-11-05 21:42:05]
  • 管理员手动重测本题所有提交记录
  • Verdict: 30
  • Time: 1565ms
  • Memory: 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]
  • Judged
  • Verdict: 70
  • Time: 2436ms
  • Memory: 3616kb
  • [2020-10-19 09:40:34]
  • Submitted

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){}

详细


Pretests


Final Tests

Test #1:

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

Test #2:

score: 20
Accepted
time: 1565ms
memory: 3828kb

Test #3:

score: 0
Time Limit Exceeded

Test #4:

score: 0
Time Limit Exceeded

Test #5:

score: 0
Time Limit Exceeded