結果

問題 No.908 うしたぷにきあくん文字列
ユーザー minimamu21
提出日時 2020-03-28 15:50:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 1,778 ms
コンパイル使用メモリ 162,024 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-02 11:38:34
合計ジャッジ時間 2,687 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
    string s;
    cin>>s;
    string ans="Yes";
    rep(i,s.length()){
        if(i%2==0){
            if(s[i]==' ')ans="No";
        }
        else{
            if(s[i]!=' ')ans="No";
        }
    }
    cout<<ans<<endl;
}
0