結果

問題 No.908 うしたぷにきあくん文字列
ユーザー HagianHagian
提出日時 2021-07-26 15:59:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 398 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 9,140 KB
最終ジャッジ日時 2023-09-29 12:08:59
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,004 KB
testcase_01 AC 29 ms
8,976 KB
testcase_02 AC 29 ms
9,140 KB
testcase_03 AC 27 ms
9,100 KB
testcase_04 AC 26 ms
8,976 KB
testcase_05 AC 26 ms
9,064 KB
testcase_06 AC 28 ms
9,004 KB
testcase_07 AC 26 ms
9,004 KB
testcase_08 AC 26 ms
9,004 KB
testcase_09 AC 26 ms
9,068 KB
testcase_10 AC 26 ms
9,004 KB
testcase_11 AC 26 ms
9,004 KB
testcase_12 AC 26 ms
8,964 KB
testcase_13 AC 27 ms
8,932 KB
testcase_14 AC 26 ms
9,064 KB
testcase_15 AC 27 ms
9,004 KB
testcase_16 AC 26 ms
9,016 KB
testcase_17 AC 26 ms
9,108 KB
testcase_18 AC 27 ms
9,000 KB
testcase_19 AC 26 ms
9,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
S = input().rstrip()
out = 0
for i in range(len(S)):
    checkStr = S[i]
    if i % 2 == 0:
        if checkStr.islower():
            pass
        else:
            out -= 1
            break
    else:
        c = re.fullmatch("\s", checkStr)
        if c == None:
            out -= 1
            break
        else:
            pass
if out == -1:
    print("No")
else:
    print("Yes")
0