結果

問題 No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー Rute
提出日時 2020-04-01 22:41:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-27 11:59:23
合計ジャッジ時間 1,607 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 5
other WA * 17 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
kisu = []
gusu = []
if len(S) == 0:
    print("NO")
elif len(S) == 1:
    print("YES")
else:
    for i in range(len(S)):
        if i%2 == 0:
            kisu.append(S[i])
        else:
            gusu.append(S[i])
    moto = int(len(kisu))
    for i in range(len(gusu)):
        if gusu[i] in kisu:
                kisu.remove(gusu[i])
    print(kisu)
    if len(kisu) == moto:
        print("Yes")
    else:
        print("NO")
0