結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,044 KB
testcase_01 AC 24 ms
9,060 KB
testcase_02 WA -
testcase_03 AC 23 ms
8,984 KB
testcase_04 AC 24 ms
8,960 KB
testcase_05 WA -
testcase_06 AC 24 ms
8,916 KB
testcase_07 AC 24 ms
9,036 KB
testcase_08 AC 24 ms
9,124 KB
testcase_09 AC 24 ms
8,988 KB
testcase_10 WA -
testcase_11 AC 24 ms
8,932 KB
testcase_12 WA -
testcase_13 AC 24 ms
9,000 KB
testcase_14 AC 24 ms
8,948 KB
testcase_15 AC 24 ms
8,920 KB
testcase_16 AC 24 ms
9,084 KB
testcase_17 AC 24 ms
9,040 KB
testcase_18 WA -
testcase_19 AC 24 ms
8,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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