結果
問題 | No.908 うしたぷにきあくん文字列 |
ユーザー |
|
提出日時 | 2020-01-29 15:50:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 510 ms |
コンパイル使用メモリ | 54,904 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 01:04:36 |
合計ジャッジ時間 | 1,284 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream> using namespace std; int main(){ string str; getline(cin,str); bool judge=true; for(int i=0;i<str.size();i++){ if(i%2==0){ if(str[i]<'a' || 'z'<str[i])judge=false; }else{ if(str[i]!=' ')judge=false; } } if(judge)cout << "Yes" << endl; else cout << "No" << endl; return 0; }