提出 #5729229


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

#define fio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define in_range(x,l,r) (lb(all(x),r+1)-lb(all(x),l))
#define per(i,n) for (int i=(int)(n)-1;i>=0;i--)
#define For(i,n) for (int i=1;i<=(int)(n);i++)
#define Rep(i,n) for (int i=0;i<=(int)(n);i++)
#define rep(i,n) for (int i=0;i<(int)(n);i++)
#define all(x) (x).begin(),(x).end()
#define Max(a,b,c) max(a,max(b,c))
#define Min(a,b,c) min(a,min(b,c))
#define fore(i,x) for (auto &i:x)
#define cmax(x,y) x=max(x,y)
#define cmin(x,y) x=min(x,y)
#define pii pair<int,int>
#define vi vector <int>
#define lb lower_bound
#define ub upper_bound
#define ll long long
#define pb push_back
#define re return
#define se second
#define fi first
const int INF=0x7fffffff;
const int MAXN=+3;

string s;
int c;

int main(){
	cin>>s;
	fore(i,s){
		if (i=='x') c++;
	}
	if (c>7) cout<<"NO"<<endl; else cout<<"YES"<<endl;
	re 0;
}

提出情報

提出日時
問題 B - Sumo
ユーザ Scrap
言語 C++14 (GCC 5.4.1)
得点 200
コード長 955 Byte
結果 AC
実行時間 1 ms
メモリ 256 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 13
セット名 テストケース
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, example0.txt, example1.txt
ケース名 結果 実行時間 メモリ
000.txt AC 1 ms 256 KiB
001.txt AC 1 ms 256 KiB
002.txt AC 1 ms 256 KiB
003.txt AC 1 ms 256 KiB
004.txt AC 1 ms 256 KiB
005.txt AC 1 ms 256 KiB
006.txt AC 1 ms 256 KiB
007.txt AC 1 ms 256 KiB
008.txt AC 1 ms 256 KiB
009.txt AC 1 ms 256 KiB
010.txt AC 1 ms 256 KiB
example0.txt AC 1 ms 256 KiB
example1.txt AC 1 ms 256 KiB