結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 11 ms
5,932 KB
testcase_03 AC 11 ms
5,956 KB
testcase_04 AC 10 ms
6,044 KB
testcase_05 AC 10 ms
5,956 KB
testcase_06 AC 11 ms
5,844 KB
testcase_07 AC 11 ms
6,044 KB
testcase_08 AC 286 ms
9,152 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,884 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,840 KB
testcase_24 AC 922 ms
11,976 KB
testcase_25 RE -
testcase_26 AC 29 ms
6,520 KB
testcase_27 AC 11 ms
5,992 KB
evil01.txt AC 915 ms
12,352 KB
evil02.txt AC 921 ms
12,348 KB
権限があれば一括ダウンロードができます

ソースコード

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 Ture:
                try:
                    input.remove(top)
                except:
                    break
        else:
            cnt += 1

print cnt
0