Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
88371 sh25_wuyy 宝藏图 C++ 通过 0 MS 248 KB 356 2026-05-10 19:31:38

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main(){ int m,n,bz=0,xj=0; cin>>m>>n; int map[m][n]; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>map[i][j]; if(map[i][j]==1){ bz++; }else if(map[i][j]==-1){ xj++; } } }double bzl=bz*1.0/(m*n); double xjl=xj*1.0/(m*n); cout<<bzl<<" "<<xjl; return 0; }


测评信息: