QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#738354#5. 在线 O(1) 逆元dqw30 1587ms3912kbC++23515b2024-11-12 18:48:102024-11-12 18:48:14

Judging History

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

  • [2024-11-12 18:48:14]
  • 评测
  • 测评结果:30
  • 用时:1587ms
  • 内存:3912kb
  • [2024-11-12 18:48:10]
  • 提交

answer

//  __  __   _  _____ _   _   _____   ______          __
//  \ \/ /  / \|_   _| | | | |  __ \ / __ \ \   /\   / /
//   \  /  / _ \ | | | | | | | |  | | |  | \ \ /  \ / /
//   /  \ / ___ \| | | |_| | | |__| | |__| |\ V /\ V /
//  /_/\_/_/   \_\_|  \___/  |_____/ \___\_\ \_/  \_/ (TM)

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

详细


Pretests


Final Tests

Test #1:

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

Test #2:

score: 20
Accepted
time: 1587ms
memory: 3912kb

Test #3:

score: 0
Time Limit Exceeded

Test #4:

score: 0
Time Limit Exceeded

Test #5:

score: 0
Time Limit Exceeded