結果

問題 No.908 うしたぷにきあくん文字列
ユーザー rogi52rogi52
提出日時 2022-09-26 15:29:32
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 199,000 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-24 02:52:51
合計ジャッジ時間 3,553 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 WA -
testcase_12 AC 1 ms
4,376 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,376 KB
testcase_15 WA -
testcase_16 AC 1 ms
4,376 KB
testcase_17 WA -
testcase_18 AC 2 ms
4,376 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    string s;
    getline(cin, s);
    int ok = 1;
    rep(i,int(s.size())) {
        if(i % 2 == 0) ok &= islower(s[i]);
        if(i % 2 == 1) ok &= s[i] == ' ';
    }
    cout << (ok ? "Yes" : "No") << endl;
}
0