結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,740 KB
testcase_01 AC 15 ms
7,844 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,744 KB
testcase_04 AC 15 ms
7,880 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,800 KB
testcase_07 AC 16 ms
7,736 KB
testcase_08 AC 16 ms
7,796 KB
testcase_09 AC 15 ms
7,904 KB
testcase_10 WA -
testcase_11 AC 15 ms
7,736 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,820 KB
testcase_14 AC 16 ms
7,904 KB
testcase_15 AC 15 ms
7,840 KB
testcase_16 AC 15 ms
7,828 KB
testcase_17 AC 15 ms
7,740 KB
testcase_18 WA -
testcase_19 AC 15 ms
7,844 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 "".join(t).isalpha() is True:
    if "".join(T).isspace() is True:
        print("Yes")
else:
    print("No")
0