結果

問題 No.3061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー RuteRute
提出日時 2020-04-01 22:41:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,912 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-09 19:24:30
合計ジャッジ時間 1,475 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
7,796 KB
testcase_02 AC 14 ms
7,924 KB
testcase_03 AC 15 ms
7,924 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 16 ms
7,904 KB
testcase_06 AC 16 ms
7,860 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 15 ms
7,796 KB
testcase_20 AC 15 ms
7,924 KB
testcase_21 AC 15 ms
7,908 KB
testcase_22 WA -
testcase_23 AC 15 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

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