更新了许多

This commit is contained in:
OhFengGO
2023-08-23 21:52:51 +08:00
parent 971a1d91d6
commit fc324f936b
197 changed files with 6500 additions and 0 deletions

View File

@ -0,0 +1,38 @@
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <cmath>
typedef long long l;
typedef double d;
using namespace std;
int main(){
char a[100][100];
l b=0,c=0;
for(int i=1;i<=10;i++){
for(int j=1;j<=10;j++){
cin >>a[i][j];
}
}
for(int i=1;i<=10;i++){
for(int j=1;j<=10;j++){
if(a[i][j]=='o'){
b++;
}
if(a[i][j]=='*'){
c++;
}
}
}
if(b>c){
cout <<"qin"<<" "<<b-c;
}
if(b==c){
cout <<"draw";
}
if(b<c){
cout <<"luo"<<" "<<c-b;
}
return 0;
}