結果

問題 No.908 うしたぷにきあくん文字列
ユーザー brthyyjpbrthyyjp
提出日時 2020-04-23 10:05:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 82,412 KB
実行使用メモリ 53,472 KB
最終ジャッジ日時 2024-04-21 08:24:06
合計ジャッジ時間 1,816 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,556 KB
testcase_01 AC 39 ms
52,340 KB
testcase_02 AC 37 ms
52,496 KB
testcase_03 AC 38 ms
52,092 KB
testcase_04 AC 38 ms
52,508 KB
testcase_05 AC 38 ms
52,680 KB
testcase_06 AC 38 ms
52,696 KB
testcase_07 AC 38 ms
52,944 KB
testcase_08 AC 38 ms
53,472 KB
testcase_09 AC 38 ms
51,496 KB
testcase_10 AC 38 ms
52,176 KB
testcase_11 AC 39 ms
52,824 KB
testcase_12 AC 38 ms
52,404 KB
testcase_13 AC 39 ms
52,428 KB
testcase_14 AC 39 ms
52,104 KB
testcase_15 AC 38 ms
51,628 KB
testcase_16 AC 40 ms
51,648 KB
testcase_17 AC 39 ms
52,684 KB
testcase_18 AC 39 ms
52,840 KB
testcase_19 AC 38 ms
52,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
n = len(s)

for i in range(n):
    c = s[i]
    if i%2 == 1:
        if c != ' ':
            print('No')
            exit()
    else:
        if str.isalpha(c):
            if c != c.lower():
                print('No')
                exit()
        else:
            print('No')
            exit()
else:
    print('Yes')
0