結果

問題 No.908 うしたぷにきあくん文字列
ユーザー shop_one
提出日時 2019-10-18 21:51:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 472 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 60,124 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-25 15:35:37
合計ジャッジ時間 1,306 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
signed main(){
  string s;
  bool usi=true;
  getline(cin,s);
  cout << s << endl;
  for(int i=0;s[i]!=0;i++){
    if(i%2==0){
      if('a'>s[i]||s[i]>'z'){
        usi = false;
        break;
      }
    }else{
      if(s[i]!=' '){
        usi=false;
        break;
      }
    }
  }
  if(usi){
    cout <<"Yes\n";
  }else{
    cout <<"No\n";
  }
}
0