| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75623 | sh25_shenpy | 宝藏图 | C++ | 解答错误 | 0 MS | 248 KB | 351 | 2025-12-08 18:04:02 |
#include<bits/stdc++.h> using namespace std; int main() { int m,p,b=0,c=0,n; double x,xx; int a[101][101]; for(int i=0;i<m;++i){ for(int j=0;j<n;++j){ cin>>a[i][j]; p=a[i][j]; if(p==1) b++; if(p==-1) c++;}} x=1.0*b/m/n; xx=1.0*c/m/n; cout<<x<<" "<<xx; return 0; }