提交时间:2026-05-29 18:47:47
运行 ID: 41742
#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)<<"\n"; cout.flush(); return 0; }