結果

問題 No.908 うしたぷにきあくん文字列
ユーザー leaf_1415
提出日時 2019-10-18 21:24:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 56,340 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 14:47:49
合計ジャッジ時間 1,094 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#define llint long long

using namespace std;

int main(void)
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	string s;
	getline(cin, s);
	
	for(int i = 0; i < s.size(); i++){
		if(i % 2 == 0 && s[i] == ' ' || i % 2 && s[i] != ' '){
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	
	return 0;
}
0