結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
r1933
|
| 提出日時 | 2019-10-18 21:23:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 525 bytes |
| コンパイル時間 | 1,568 ms |
| コンパイル使用メモリ | 166,116 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-25 14:47:34 |
| 合計ジャッジ時間 | 2,139 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 5 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s;
getline(cin, s);
for (size_t i = 0; i < s.length(); i += 2) {
if ('a' <= s[i] && s[i] <= 'z') {
continue;
} else {
cout << "No" << "\n";
return 0;
}
}
for (size_t i = 1; i < s.length(); i += 2) {
if (s[i] != ' ') {
cout << "No" << "\n";
}
}
cout << "Yes" << "\n";
return 0;
}
r1933