Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
20662 汪天一 配方 C++ 运行出错 0 0 MS 92 KB 341 2021-06-19 17:09:41

Tests(0/10):


#include<bits/stdc++.h> using namespace std; int n,k,a[10000][10000],ans; int main(){ cin>>n>>k; for(int i=0;i<=n;i++){ for(int j=1;j<=k;j++){ cin>>a[i][j]; if(i==1){ if(k==0) continue; if(i==2){ if(k!=0) continue; } }else ans++; } } if(ans!=0) cout<<ans; else cout<<"-1"; return 0; }


测评信息: