結果

問題 No.29 パワーアップ
ユーザー sakura_metalsakura_metal
提出日時 2014-11-25 18:30:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 1,143 ms
コンパイル使用メモリ 7,088 KB
実行使用メモリ 6,100 KB
最終ジャッジ日時 2023-08-30 23:01:37
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,976 KB
testcase_01 AC 11 ms
5,848 KB
testcase_02 AC 12 ms
5,928 KB
testcase_03 AC 11 ms
6,052 KB
testcase_04 AC 11 ms
5,836 KB
testcase_05 AC 11 ms
5,832 KB
testcase_06 AC 12 ms
5,968 KB
testcase_07 AC 11 ms
5,968 KB
testcase_08 AC 11 ms
5,916 KB
testcase_09 AC 11 ms
5,852 KB
testcase_10 AC 11 ms
5,864 KB
testcase_11 AC 11 ms
5,840 KB
testcase_12 AC 11 ms
5,932 KB
testcase_13 AC 12 ms
5,844 KB
testcase_14 AC 12 ms
5,968 KB
testcase_15 AC 12 ms
5,916 KB
testcase_16 AC 12 ms
5,912 KB
testcase_17 AC 13 ms
5,836 KB
testcase_18 AC 11 ms
6,100 KB
testcase_19 AC 11 ms
5,916 KB
testcase_20 AC 11 ms
5,824 KB
testcase_21 AC 11 ms
6,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
a = [0]*N
b = [0]*10
up = 0
temp = 0

for  i in xrange(N):
	a[i] = map(int,raw_input().split())

for x in xrange(N):
	for i in xrange(3):
		b[a[x][i]-1] += 1

for x in xrange(10):
	temp = b[x]/2
	up += temp
	b[x] -= temp*2

up += sum(b)/4
print up
0