結果

問題 No.908 うしたぷにきあくん文字列
ユーザー _KingdomOfMoray
提出日時 2019-12-02 11:32:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-24 00:24:11
合計ジャッジ時間 1,432 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

flag = 1
for i in range(len(s)):
    if i % 2 == 0:
        if 97 > ord(s[i]) or ord(s[i]) > 123:
            flag = 0
            break
    elif i % 2 == 1:
        if s[i] != ' ':
            flag = 0
            break
            
if(flag):
    print('Yes')
else:
    print('No')
0