結果

問題 No.908 うしたぷにきあくん文字列
ユーザー wikeakawikeaka
提出日時 2019-10-18 21:29:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 10,464 KB
実行使用メモリ 9,088 KB
最終ジャッジ日時 2023-09-07 21:18:16
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
import string


def input(): return sys.stdin.readline().strip()


def main():
    def f(s):
        for i, ch in enumerate(S, 1):
            if i % 2 == 0:
                if ch != ' ':
                    return False
            else:
                if ch not in string.ascii_lowercase:
                    return False
        return True

    S = input()
    ans = 'Yes' if f(S) else 'No'
    print(ans)


if __name__ == "__main__":
    main()
0