結果
問題 | No.29 パワーアップ |
ユーザー |
![]() |
提出日時 | 2022-11-28 02:30:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 5,000 ms |
コード長 | 241 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 55,168 KB |
最終ジャッジ日時 | 2024-10-04 19:45:00 |
合計ジャッジ時間 | 2,147 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
n=int(input()) a=[] for i in range(n): b,c,d=map(int,input().split()) a.append(b) a.append(c) a.append(d) from collections import Counter c=Counter(a) amr=0 pw=0 for i in c.values(): pw+=i//2 amr+=i%2 print(pw+amr//4)