結果

問題 No.182 新規性の虜
ユーザー hkawa117hkawa117
提出日時 2015-09-10 00:16:12
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 402 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 6,556 KB
実行使用メモリ 15,060 KB
最終ジャッジ日時 2023-09-26 10:21:32
合計ジャッジ時間 9,270 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
13,004 KB
testcase_01 AC 10 ms
5,932 KB
testcase_02 AC 11 ms
5,904 KB
testcase_03 AC 11 ms
5,856 KB
testcase_04 AC 11 ms
5,948 KB
testcase_05 AC 11 ms
5,904 KB
testcase_06 AC 11 ms
5,948 KB
testcase_07 AC 11 ms
5,980 KB
testcase_08 AC 287 ms
9,200 KB
testcase_09 AC 708 ms
11,496 KB
testcase_10 AC 543 ms
10,548 KB
testcase_11 AC 383 ms
9,888 KB
testcase_12 AC 90 ms
7,476 KB
testcase_13 AC 11 ms
5,832 KB
testcase_14 AC 11 ms
5,840 KB
testcase_15 AC 11 ms
5,852 KB
testcase_16 AC 11 ms
5,848 KB
testcase_17 AC 11 ms
5,984 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
input = sorted(raw_input().strip().split())
cnt = 0
while input:
    if len(input) == 1:
        cnt += 1
        break
    else:
        top = input.pop(0)
        nxt = input[0]
        if top == nxt:
            while True:
                try:
                    input.remove(top)
                except:
                    break
        else:
            cnt += 1

print cnt
0