結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,936 KB
testcase_01 AC 11 ms
5,856 KB
testcase_02 AC 11 ms
5,900 KB
testcase_03 AC 11 ms
5,852 KB
testcase_04 AC 11 ms
5,820 KB
testcase_05 AC 11 ms
5,932 KB
testcase_06 AC 11 ms
5,884 KB
testcase_07 AC 11 ms
5,852 KB
testcase_08 AC 296 ms
9,072 KB
testcase_09 AC 711 ms
11,452 KB
testcase_10 AC 546 ms
10,616 KB
testcase_11 AC 382 ms
9,824 KB
testcase_12 AC 91 ms
7,396 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 11 ms
5,888 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 12 ms
5,992 KB
testcase_24 AC 929 ms
12,124 KB
testcase_25 AC 901 ms
7,252 KB
testcase_26 AC 31 ms
6,720 KB
testcase_27 AC 11 ms
5,988 KB
evil01.txt AC 949 ms
12,272 KB
evil02.txt AC 947 ms
12,272 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 input.remove(top):
                pass
        else:
            cnt += 1
        
print cnt
0