結果

問題 No.908 うしたぷにきあくん文字列
ユーザー yama6k16yama6k16
提出日時 2019-10-31 14:39:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-10-13 00:02:11
合計ジャッジ時間 1,345 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,880 KB
testcase_01 AC 16 ms
7,952 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 16 ms
7,888 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,816 KB
testcase_07 AC 15 ms
7,748 KB
testcase_08 AC 16 ms
7,908 KB
testcase_09 AC 15 ms
7,848 KB
testcase_10 WA -
testcase_11 AC 16 ms
7,820 KB
testcase_12 WA -
testcase_13 AC 16 ms
7,764 KB
testcase_14 AC 16 ms
7,876 KB
testcase_15 AC 16 ms
7,840 KB
testcase_16 AC 15 ms
7,816 KB
testcase_17 AC 16 ms
7,736 KB
testcase_18 WA -
testcase_19 AC 16 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input().rstrip()
s = list(S)
N = len(s)
t = []
T = []
counter = 0
if N % 2 == 0:
    for i in range(int(N/2)):
        t.append(s[2 * i])
        T.append(s[2 * i + 1])
else:
    for i in range(int((N-1)/2)):
        t.append(s[2 * i])
        T.append(s[2 * i + 1])

if " " in t:
    counter = 1
if counter == 0:
    if "".join(t).isalpha() is True:
        if "".join(T).isspace() is True:
            print("Yes")
else:
    print("No")
0