摘要:
View Code #include<iostream>char ch[51][51];using namespace std;int main(){ int t; int n , m , k=0 ; int i,j; cin>>t; while(t--) { cin>>n>>m; for(i=0;i<n; i++) cin>>ch[i]; int j , i , sign = 0 ; int ans=0; for( i = 0 ; i < n ; i++ ) { for( j = 0 ; j < m ; j++ ) 阅读全文