QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#464841#5. 在线 O(1) 逆元ETO_leader0 0ms3888kbC++23278b2024-07-06 15:21:152024-07-06 15:21:16

Judging History

This is a historical verdict posted at 2024-07-06 15:21:16.

  • [2024-11-05 21:59:48]
  • 管理员手动重测本题所有提交记录
  • Verdict: 0
  • Time: 0ms
  • Memory: 3884kb
  • [2024-07-06 15:21:16]
  • Judged
  • Verdict: 0
  • Time: 0ms
  • Memory: 3888kb
  • [2024-07-06 15:21:15]
  • Submitted

answer

using ulint=unsigned long long;
static constexpr auto MOD=998244353;
void init(int p){}
constexpr auto Inv(ulint x){
    auto res=1ull;auto b=MOD-2;
    while(b){
        if(b&1) (res*=res)%=MOD;
		(x*=x)%=MOD;b>>=1;
	}
	return res;
}
int inv(int x){return Inv(x);}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3888kb

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3748kb

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3884kb