結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
|
提出日時 | 2021-12-03 00:35:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 500 bytes |
コンパイル時間 | 3,872 ms |
コンパイル使用メモリ | 251,612 KB |
最終ジャッジ日時 | 2025-01-26 02:59:25 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair<int, int> #define LP pair<ll, ll> int main() { string s; cin >> s; rep(i,s.size()) { if (i%2==0 && !(s[i]-'a' >= 0 && s[i]-'a' <= 25)) { cout << "No" << endl; return 0; } if (i%2==1 && s[i]!= ' ') { cout << "No" << endl; return 0; } } cout << "Yes" << endl; }