結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
![]() |
提出日時 | 2019-10-31 00:58:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 486 bytes |
コンパイル時間 | 1,695 ms |
コンパイル使用メモリ | 192,860 KB |
最終ジャッジ日時 | 2025-01-08 02:08:49 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; typedef long double ld; #define rep(i,n) for(int i = 0; i < (n); i++) #define all(x) x.begin(),x.end() #define DEBUG int main() { string s; getline(cin, s); bool ans = true; rep(i, s.size()) { if(i % 2 == 0) { if(s[i] == ' ') ans = false; } if(i % 2 == 1) { if(s[i] != ' ') ans = false; } } if(ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }