結果
問題 |
No.29 パワーアップ
|
ユーザー |
|
提出日時 | 2014-09-25 19:30:54 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 746 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,144 KB |
最終ジャッジ日時 | 2024-12-30 03:07:30 |
合計ジャッジ時間 | 1,260 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)