結果

問題 No.29 パワーアップ
ユーザー zakuro9715zakuro9715
提出日時 2015-10-08 10:59:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 71,680 KB
最終ジャッジ日時 2023-09-27 08:03:32
合計ジャッジ時間 3,058 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,144 KB
testcase_01 AC 65 ms
71,404 KB
testcase_02 AC 66 ms
71,640 KB
testcase_03 AC 63 ms
71,268 KB
testcase_04 AC 66 ms
71,292 KB
testcase_05 AC 68 ms
71,404 KB
testcase_06 AC 65 ms
71,436 KB
testcase_07 AC 61 ms
71,572 KB
testcase_08 AC 60 ms
71,640 KB
testcase_09 AC 61 ms
71,572 KB
testcase_10 AC 65 ms
71,680 KB
testcase_11 AC 62 ms
71,392 KB
testcase_12 AC 61 ms
71,648 KB
testcase_13 AC 64 ms
71,604 KB
testcase_14 AC 65 ms
71,604 KB
testcase_15 AC 65 ms
71,296 KB
testcase_16 AC 66 ms
71,228 KB
testcase_17 AC 63 ms
71,524 KB
testcase_18 AC 62 ms
71,344 KB
testcase_19 AC 63 ms
71,304 KB
testcase_20 AC 64 ms
71,504 KB
testcase_21 AC 63 ms
71,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = [0] * 100

for n in range(int(input())):
    for x in map(int, input().split()):
        t[x] += 1

a = [0, 0]
for tt in t:
    a[0] += tt // 2
    a[1] += tt % 2
print(a[0] + a[1] // 4)
0