結果

問題 No.908 うしたぷにきあくん文字列
ユーザー koutabot2koutabot2
提出日時 2019-11-02 19:27:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 815 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-10-13 01:26:51
合計ジャッジ時間 1,349 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,948 KB
testcase_01 AC 16 ms
7,744 KB
testcase_02 AC 15 ms
7,884 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 16 ms
7,888 KB
testcase_05 AC 16 ms
7,804 KB
testcase_06 WA -
testcase_07 AC 16 ms
7,888 KB
testcase_08 AC 16 ms
7,788 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,804 KB
testcase_11 AC 16 ms
7,840 KB
testcase_12 AC 16 ms
7,816 KB
testcase_13 AC 16 ms
7,892 KB
testcase_14 WA -
testcase_15 AC 16 ms
7,936 KB
testcase_16 AC 16 ms
7,844 KB
testcase_17 AC 15 ms
7,744 KB
testcase_18 AC 15 ms
7,836 KB
testcase_19 AC 16 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
invalid = False
i = 0
for h in S:
    i = i + 1
    if i % 2 == 1:
        if type(h) is str:
            pass
        elif type(h) is not str:
            print("No")
            invalid = True
            break
    elif i % 2 == 0:
        if h == " ":
            pass
        else:
            print("No")
            invalid = True
            break
if invalid != True:
    print("Yes")
0