結果

問題 No.908 うしたぷにきあくん文字列
ユーザー yama6k16
提出日時 2019-10-31 14:34:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-14 22:04:04
合計ジャッジ時間 1,706 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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