結果

問題 No.29 パワーアップ
コンテスト
ユーザー mura40424
提出日時 2014-11-25 18:35:31
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 58 ms / 5,000 ms
+ 211µs
コード長 257 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 67 ms
コンパイル使用メモリ 81,024 KB
実行使用メモリ 81,024 KB
最終ジャッジ日時 2026-07-17 08:20:45
合計ジャッジ時間 3,410 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(raw_input());

count = [0] * 11

for i in range(0,N):
    A,B,C = map(int, raw_input().split())
    count[A] += 1
    count[B] += 1
    count[C] += 1

ans = 0
tmp = 0
for j in count:
    ans += j/2
    tmp += j%2

print ans + tmp/4
0