結果
問題 |
No.29 パワーアップ
|
ユーザー |
|
提出日時 | 2014-09-25 19:34:36 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-12-30 03:07:59 |
合計ジャッジ時間 | 1,254 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
n = int(raw_input()) item = [0] * 11 up = 0 for _ in xrange(n): for c in map(int, raw_input().split()): item[c] += 1 if item[c] >= 2: item[c] -= 2 up += 1 print up + (sum(item) // 4)