結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,852 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,780 KB
testcase_03 AC 15 ms
7,848 KB
testcase_04 AC 15 ms
7,832 KB
testcase_05 AC 15 ms
7,848 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
7,904 KB
testcase_12 AC 15 ms
7,812 KB
testcase_13 AC 15 ms
7,856 KB
testcase_14 WA -
testcase_15 AC 15 ms
7,948 KB
testcase_16 AC 15 ms
7,904 KB
testcase_17 AC 15 ms
7,724 KB
testcase_18 AC 15 ms
7,768 KB
testcase_19 AC 16 ms
7,828 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
if invalid != True:
    print("Yes")
0