結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
![]() |
提出日時 | 2019-10-18 21:21:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 502 bytes |
コンパイル時間 | 1,931 ms |
コンパイル使用メモリ | 194,120 KB |
最終ジャッジ日時 | 2025-01-07 22:32:51 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(0);string s;getline(cin, s);int n = s.size();for (int i = 0; i < n; i++) {if (i & 1) {if (s[i] != ' ') {cout << "No" << endl;return 0;}} else {if (s[i] == ' ') {cout << "No" << endl;return 0;}}}cout << "Yes" << endl;}