結果

問題 No.182 新規性の虜
ユーザー hkawa117hkawa117
提出日時 2015-09-09 23:37:32
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 375 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2023-09-26 10:20:17
合計ジャッジ時間 5,943 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 11 ms
5,952 KB
testcase_03 AC 11 ms
5,880 KB
testcase_04 AC 11 ms
6,088 KB
testcase_05 AC 11 ms
5,900 KB
testcase_06 AC 11 ms
6,096 KB
testcase_07 AC 11 ms
5,996 KB
testcase_08 AC 293 ms
9,140 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 11 ms
5,952 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 11 ms
5,988 KB
testcase_24 AC 930 ms
12,160 KB
testcase_25 RE -
testcase_26 AC 31 ms
6,520 KB
testcase_27 AC 12 ms
5,852 KB
evil01.txt AC 930 ms
12,344 KB
evil02.txt AC 921 ms
12,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
input = sorted(raw_input().strip().split())
cnt = 0
while input:
    if len(input) == 0:
        break
    elif len(input) == 1:
        cnt += 1
        break
    else:
        top = input.pop(0)
        nxt = input[0]
        if top == nxt:
            while index.remove(top):
                pass
        else:
            cnt += 1
        
print cnt
0