結果

問題 No.29 パワーアップ
ユーザー KudeKude
提出日時 2020-09-04 19:10:53
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 173 bytes
コンパイル時間 297 ms
使用メモリ 75,840 KB
最終ジャッジ日時 2022-12-31 13:14:39
合計ジャッジ時間 3,540 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 86 ms
75,656 KB
testcase_01 AC 86 ms
75,752 KB
testcase_02 AC 87 ms
75,444 KB
testcase_03 AC 85 ms
75,712 KB
testcase_04 AC 85 ms
75,496 KB
testcase_05 AC 87 ms
75,760 KB
testcase_06 AC 86 ms
75,724 KB
testcase_07 AC 85 ms
75,504 KB
testcase_08 AC 85 ms
75,488 KB
testcase_09 AC 86 ms
75,416 KB
testcase_10 AC 86 ms
75,840 KB
testcase_11 AC 87 ms
75,728 KB
testcase_12 AC 87 ms
75,744 KB
testcase_13 AC 87 ms
75,688 KB
testcase_14 AC 87 ms
75,760 KB
testcase_15 AC 89 ms
75,440 KB
testcase_16 AC 93 ms
75,724 KB
testcase_17 AC 93 ms
75,472 KB
testcase_18 AC 92 ms
75,432 KB
testcase_19 AC 92 ms
75,556 KB
testcase_20 AC 88 ms
75,824 KB
testcase_21 AC 88 ms
75,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

d = [0] * 11
for _ in range(int(input())):
    for x in map(int, input().split()):
        d[x] += 1
ans = sum(di // 2 for di in d) + sum(di % 2 for di in d) // 4
print(ans)
0