結果

問題 No.29 パワーアップ
ユーザー pluto77pluto77
提出日時 2016-10-28 13:28:32
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 251 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 6,624 KB
実行使用メモリ 6,036 KB
最終ジャッジ日時 2023-08-15 20:35:53
合計ジャッジ時間 1,414 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,912 KB
testcase_01 AC 9 ms
6,008 KB
testcase_02 AC 9 ms
5,824 KB
testcase_03 AC 9 ms
5,848 KB
testcase_04 AC 9 ms
5,960 KB
testcase_05 AC 9 ms
5,772 KB
testcase_06 AC 10 ms
6,036 KB
testcase_07 AC 9 ms
5,984 KB
testcase_08 AC 10 ms
5,912 KB
testcase_09 AC 9 ms
5,772 KB
testcase_10 AC 9 ms
5,880 KB
testcase_11 AC 10 ms
6,032 KB
testcase_12 AC 9 ms
5,856 KB
testcase_13 AC 9 ms
5,844 KB
testcase_14 AC 9 ms
5,976 KB
testcase_15 AC 9 ms
6,036 KB
testcase_16 AC 10 ms
5,976 KB
testcase_17 AC 9 ms
5,884 KB
testcase_18 AC 10 ms
5,824 KB
testcase_19 AC 9 ms
5,856 KB
testcase_20 AC 10 ms
5,852 KB
testcase_21 AC 8 ms
5,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_029

n=int(raw_input())
t=[]
for i in xrange(n):
 s=map(int,raw_input().split())
 t+=s
u=[0 for i in xrange(11)]
for i in xrange(1,11):
 u[i]= t.count(i)
res1=0
res2=0
for i in xrange(1,11):
 res1+=u[i]/2
 res2+=u[i]%2
res=res1+res2/4
print res
0