結果

問題 No.908 うしたぷにきあくん文字列
ユーザー a
提出日時 2020-04-09 14:03:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 645 bytes
コンパイル時間 1,559 ms
コンパイル使用メモリ 166,472 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 06:59:54
合計ジャッジ時間 2,254 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *  author:   TakeruOkuyama
 *  created:  2020-04-09 13:18:37
**/
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(){
    string S;
    cin >> S;
    rep(i, S.size()){
        if(i % 2 == 0){
            if('a' <= S[i] && S[i] <= 'z'){

            }else{
                cout << "No" << endl;
                return 0;
            }
        }else{
            if(S[i] == ' '){

            }else{
                cout << "No" << endl;
                return 0;
            }
        }
    }
    cout << "Yes" << endl;
return 0;}

/**
**/ 
0