結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
|
提出日時 | 2019-10-19 11:56:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 553 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 00:08:06 |
合計ジャッジ時間 | 1,224 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream>#include <string>using namespace std;int main() {string S;getline(cin, S);int i;for (i = 0; i < S.size(); ++i) {if (' ' == S[i]) {if (0 == i % 2) break;}else {if (i % 2) break;}}if (S.size() == i) cout << "Yes";else cout << "No";}