結果

問題 No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー Rute
提出日時 2020-04-01 22:41:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-27 11:59:37
合計ジャッジ時間 1,542 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 WA * 1
other AC * 6 WA * 11 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])
    if len(kisu) == moto:
        print("Yes")
    else:
        print("NO")
0