| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 41779 | seawater | 【S】T1 | C++ | 通过 | 100 | 0 MS | 248 KB | 310 | 2026-05-29 19:56:40 |
#include<bits/stdc++.h> using namespace std; long long n,ans; int main(){ //freopen("donimoes.in","r",stdin); //freopen("donimoes.out","w",stdout); cin>>n; if(n<=2){ cout<<0; return 0; } ans=n-1; ans%=998244353ll; ans*=(n-2)%998244353ll; ans%=998244353ll; cout<<ans; return 0; }