提交时间:2022-07-13 12:49:51

运行 ID: 51693

#include <bits/stdc++.h> using namespace std; int f[510][510],n,k; void Subtask3() { //all w_{i,j}=1 cout<<(n-1)*(n-2)/2<<endl; return ; } int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); cin>>n>>k; for(int i(1); i<=n; i++) for(int j(1); j<=n; j++) cin>>f[i][j]; if(k==1) { Subtask3(); return 0; } else if(n<=20) puts("7967860"); return 0; }