結果
問題 | No.29 パワーアップ |
ユーザー |
|
提出日時 | 2020-05-20 20:29:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-01 23:42:53 |
合計ジャッジ時間 | 1,352 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
N=int(input()) L=[] for i in range(N): L=L+list(map(int,input().split())) p_up=0 rest=0 s=set(L) for i in s: item_count = L.count(i) p_up = p_up + (item_count//2) rest = rest + item_count %2 p_up = p_up + rest//4 print(p_up)