結果
問題 | No.29 パワーアップ |
ユーザー |
|
提出日時 | 2014-09-25 17:45:10 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 464 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-11-22 11:14:05 |
合計ジャッジ時間 | 1,239 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)