Submission #7983602
Source Code Expand
#include<bits/stdc++.h>
//ios::sync_with_stdio(false);cin.tie(0);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef pair<pii,int> ppii;
typedef pair<int,pii> pipi;
typedef pair<ll,ll> pll;
typedef pair<pll,ll> ppll;
typedef pair<ll,pll> plpl;
typedef tuple<ll,ll,ll> tl;
ll mod=1000000007;
ll mod2=998244353;
ll mod3=1000003;
ll mod4=998244853;
ll inf=1000000000000000000;
double pi=2*acos(0);
#define rep(i,m,n) for(ll i=m;i<n;i++)
#define rrep(i,n,m) for(ll i=n;i>=m;i--)
int dh[4]={1,-1,0,0};
int dw[4]={0,0,1,-1};
int ddh[8]={-1,-1,-1,0,0,1,1,1};
int ddw[8]={-1,0,1,-1,1,-1,0,1};
ll lmax(ll a,ll b){
if(a<b)return b;
else return a;
}
ll lmin(ll a,ll b){
if(a<b)return a;
else return b;
}
ll gcd(ll a,ll b){
if(a<b)swap(a,b);
if(b==0)return a;
if(a%b==0)return b;
return gcd(b,a%b);
}
ll Pow(ll n,ll k){
ll ret=1;
ll now=n;
while(k>0){
if(k&1)ret*=now;
now*=now;
k/=2;
}
return ret;
}
int main(){
ios::sync_with_stdio(false);cin.tie(0);
string s[10];
int cnt[10];
fill(cnt,cnt+10,0);
rep(i,0,10){
cin>>s[i];
rep(j,0,10){
if(s[i][j]=='o')cnt[j]++;
}
}
ll ans=1;
rep(i,0,10)ans*=cnt[i];
if(ans)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
Submission Info
Submission Time |
|
Task |
B - 全完 |
User |
ttttan |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
1415 Byte |
Status |
AC |
Exec Time |
1 ms |
Memory |
256 KB |
Judge Result
Set Name |
All |
Score / Max Score |
100 / 100 |
Status |
|
Set Name |
Test Cases |
All |
00_sample1, 00_sample2, 00_sample3, 10_random00, 10_random01, 10_random02, 10_random03, 10_random04, 10_random05, 10_random06, 10_random07, 10_random08, 10_random09, 10_random10, 10_random11, 10_random12, 10_random13, 10_random14, 10_random15, 10_random16, 10_random17, 10_random18, 10_random19, 30_corner1, 30_corner2 |
Case Name |
Status |
Exec Time |
Memory |
00_sample1 |
AC |
1 ms |
256 KB |
00_sample2 |
AC |
1 ms |
256 KB |
00_sample3 |
AC |
1 ms |
256 KB |
10_random00 |
AC |
1 ms |
256 KB |
10_random01 |
AC |
1 ms |
256 KB |
10_random02 |
AC |
1 ms |
256 KB |
10_random03 |
AC |
1 ms |
256 KB |
10_random04 |
AC |
1 ms |
256 KB |
10_random05 |
AC |
1 ms |
256 KB |
10_random06 |
AC |
1 ms |
256 KB |
10_random07 |
AC |
1 ms |
256 KB |
10_random08 |
AC |
1 ms |
256 KB |
10_random09 |
AC |
1 ms |
256 KB |
10_random10 |
AC |
1 ms |
256 KB |
10_random11 |
AC |
1 ms |
256 KB |
10_random12 |
AC |
1 ms |
256 KB |
10_random13 |
AC |
1 ms |
256 KB |
10_random14 |
AC |
1 ms |
256 KB |
10_random15 |
AC |
1 ms |
256 KB |
10_random16 |
AC |
1 ms |
256 KB |
10_random17 |
AC |
1 ms |
256 KB |
10_random18 |
AC |
1 ms |
256 KB |
10_random19 |
AC |
1 ms |
256 KB |
30_corner1 |
AC |
1 ms |
256 KB |
30_corner2 |
AC |
1 ms |
256 KB |