結果

問題 No.908 うしたぷにきあくん文字列
ユーザー madokamadoka
提出日時 2019-10-18 21:37:40
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 2,547 bytes
コンパイル時間 1,143 ms
コンパイル使用メモリ 146,676 KB
実行使用メモリ 5,712 KB
最終ジャッジ日時 2023-09-07 21:35:05
合計ジャッジ時間 2,165 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,524 KB
testcase_01 AC 2 ms
5,564 KB
testcase_02 AC 2 ms
5,500 KB
testcase_03 AC 2 ms
5,528 KB
testcase_04 AC 2 ms
5,436 KB
testcase_05 AC 2 ms
5,580 KB
testcase_06 AC 2 ms
5,468 KB
testcase_07 AC 2 ms
5,628 KB
testcase_08 AC 2 ms
5,436 KB
testcase_09 AC 2 ms
5,500 KB
testcase_10 AC 2 ms
5,496 KB
testcase_11 AC 2 ms
5,500 KB
testcase_12 AC 2 ms
5,532 KB
testcase_13 AC 2 ms
5,500 KB
testcase_14 AC 2 ms
5,496 KB
testcase_15 AC 2 ms
5,516 KB
testcase_16 AC 2 ms
5,484 KB
testcase_17 AC 2 ms
5,644 KB
testcase_18 AC 2 ms
5,592 KB
testcase_19 AC 2 ms
5,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//typedef pair<long long,long long> P;
//typedef pair<long long,P> P1;
//typedef pair<P,P> P2;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 1000000000
#define mod 1000000007
#define fi first
#define se second
#define rep(i,x) for(long long i=0;i<x;i++)
#define repn(i,x) for(long long i=1;i<=x;i++)
#define rrep(i,x) for(long long i=x-1;i>=0;i--)
#define rrepn(i,x) for(long long i=x;i>1;i--)
#define SORT(x) sort(x.begin(),x.end())
#define ERASE(x) x.erase(unique(x.begin(),x.end()),x.end())
#define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin())
#define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin())


#define ALL(v)  (v).begin(),(v).end()
//#define MAX(a,b) if(a>b)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))


const string MINUSINF = "-";


long long A,B,C,D,E,F,H,I,J,L,N,M,K,O,P,Q,R,S,T,U,V,W,X,Y,Z;
long long sum,sum1,sum2,sum3,sum4;
long long flg,flg1,flg2,flg3,cnt,cnt1,cnt2,cnt3,cnt4;
long long wk,wk1,wk2,wk3,wk4;
long long ans;

bool f;

long long n,h[100005];
vector<long long> p, c;
int vis[200001];

vector<string> fi;
int Left[2100][2100], Right[2100][2100], Up[2100][2100], Down[2100][2100];

long long match[10] = {2,5,5,4,5,6,3,7,6};

ll dp[10000010];


int main(){
	
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	long long max,max1;
	long long min,min1;

	sum=sum1=sum2=sum3=sum4=0;
	flg=flg1=flg2=flg3=cnt=cnt1=cnt2=cnt3=cnt4=0;
	max=max1=0;
	wk=wk1=wk2=wk3=wk4=0;
	ans=0;
	min=min1=INF;

	
	//**************************ここからスタート******************************************
	//std::cin >> N;
	//std::cin >> N >> M;
	//std::cin >> N >> M >> K;
	//std::cin >> N >> K;
	//std::cin >> A >> B;
	//std::cin >> A >> B >> C;
    
	std::vector<long long> v(N);
	//std::vector<long long> w(N);
	//std::vector<long long> x(N);
	//std::vector<int> v(100, 0);
	//int a[26]={0};
	//vector<long long> flagment(N, 0);
	
	//vec.push_back(i);
	//accumulate(vec.begin(), vec.end(), 0)
    //v.resize
    
	// 配列入力1
	
	//文字列入力
	ll flg;
	ll wk;
	flg=0;
	string s,t;
	getline(cin, s);
	//sort(s.begin(), s.end());
	//puts("a");
	for(long long i=0; i<s.size(); i++){
		
		if(i%2==0){
			//wk=s[i]-'a';
			//if(wk<26){
			if(s[i]>='a' && s[i]<='z'){
				
			}
			else{
				flg=1;
			}
		}
		else{
			if(s[i]==' '){
			}
			else{
				flg=1;
			}
		}
		//puts("a");
	}
	if(flg==1){
		puts("No");
	}
	else{
		puts("Yes");
	}
	
	return 0;

}
0