結果

問題 No.29 パワーアップ
ユーザー jjwatt
提出日時 2020-03-20 15:29:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 294 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-14 06:48:33
合計ジャッジ時間 1,868 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[]
for i in range(n):
    a,b,c=map(int,input().split())
    x.append(a)
    x.append(b)
    x.append(c)
y=[]
for i in range(1,11):
    y.append(x.count(i))
z=[2,2,2,2,2,2,2,2,2,2]
s = [c // d for (c, d) in zip(y, z)]
t = [c % d for (c, d) in zip(y, z)]
print(sum(s)+sum(t)//4)
0