結果

問題 No.29 パワーアップ
ユーザー steek79steek79
提出日時 2015-10-13 12:24:28
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 6,720 KB
実行使用メモリ 6,248 KB
最終ジャッジ日時 2023-09-28 12:48:03
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,052 KB
testcase_01 AC 12 ms
6,072 KB
testcase_02 AC 13 ms
6,188 KB
testcase_03 AC 13 ms
6,100 KB
testcase_04 AC 13 ms
6,000 KB
testcase_05 AC 13 ms
5,988 KB
testcase_06 AC 12 ms
6,136 KB
testcase_07 AC 12 ms
6,248 KB
testcase_08 AC 12 ms
6,100 KB
testcase_09 AC 12 ms
5,968 KB
testcase_10 AC 12 ms
6,152 KB
testcase_11 AC 13 ms
6,048 KB
testcase_12 AC 12 ms
5,996 KB
testcase_13 AC 12 ms
5,968 KB
testcase_14 AC 12 ms
6,188 KB
testcase_15 AC 13 ms
6,040 KB
testcase_16 AC 12 ms
5,964 KB
testcase_17 AC 12 ms
6,184 KB
testcase_18 AC 12 ms
6,068 KB
testcase_19 AC 12 ms
6,040 KB
testcase_20 AC 12 ms
5,980 KB
testcase_21 AC 12 ms
6,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()

myitem = [0] * 10
for n in xrange(N):
    items = map(int, raw_input().split())
    for item in items:
        myitem[item-1] +=1

up = 0
up += sum([item/2 for item in myitem])
up += sum([item%2 for item in myitem])/4
print up
0