結果

問題 No.908 うしたぷにきあくん文字列
ユーザー ei13337
提出日時 2019-10-18 21:22:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 1,514 ms
コンパイル使用メモリ 167,028 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 14:45:19
合計ジャッジ時間 2,238 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
using namespace std;
using ll = long long;

int main() {
    string s;
    getline(cin, s);
    int n = (int)s.size();
    bool utn = true;
    rep(i, n) {
        if(i % 2 && s[i] != ' ') utn = false;
    }
    if(utn) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}
0