結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
|
提出日時 | 2019-10-22 11:47:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 588 bytes |
コンパイル時間 | 856 ms |
コンパイル使用メモリ | 91,576 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 18:03:27 |
合計ジャッジ時間 | 1,307 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include<iostream> #include<algorithm> #include<cmath> #include<iomanip> #include<set> #include<map> #include<queue> #include<vector> using namespace std; typedef long long ll; const int MOD=1e9+7; int main() { ios_base::sync_with_stdio(false); cin.tie(0), cout.tie(0), cout.precision(10); string s; getline(cin,s); int b=1; for(int i=0; i<s.size(); i++) { if((i+1)%2==1) { if(s[i]>='a'&&s[i]<='z') { continue; } else { b=0; } } else { if(s[i]!=' ') { b=0; } } } cout << (b?"Yes":"No") << endl; }