提交时间:2026-05-29 18:49:35

运行 ID: 41744

#include <bits/stdc++.h> #define int long long #define fst first #define sec second #define pb push_back using namespace std; int n; signed main(){ // freopen("test.in","r",stdin); // freopen("test.out","w",stdout); ios::sync_with_stdio(0); cin.tie(0);cout.tie(0); cin>>n; cout<<(((n-1)%998244353)*((n-2)%998244353)%998244353)<<"\n"; cout.flush(); return 0; }