結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
r1933
|
| 提出日時 | 2019-10-18 21:25:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 547 bytes |
| コンパイル時間 | 1,436 ms |
| コンパイル使用メモリ | 167,720 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-25 14:50:09 |
| 合計ジャッジ時間 | 2,108 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#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";
return 0;
}
}
cout << "Yes" << "\n";
return 0;
}
r1933