結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-01 16:43:25 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 2,147 ms |
| コンパイル使用メモリ | 193,976 KB |
| 最終ジャッジ日時 | 2025-01-08 06:38:16 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string S;
getline(cin, S);
bool ng = false;
for (int i = 0; i < S.size(); ++i) {
if (i & 1) ng |= S[i] != ' ';
else ng |= !islower(S[i]);
}
if (ng) cout << "No" << endl;
else cout << "Yes" << endl;
return 0;
}