結果

問題 No.497 入れ子の箱
コンテスト
ユーザー pluto77
提出日時 2017-06-04 11:48:20
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 171 ms / 5,000 ms
コード長 315 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 142 ms
コンパイル使用メモリ 77,728 KB
最終ジャッジ日時 2025-12-03 23:56:42
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#yuki_497

n=int(raw_input())
l=[]
for i in xrange(n):
 temp=map(int,raw_input().split())
 l.append(sorted(temp,reverse=True))
l=sorted(l)
res=[1 for i in xrange(n)]
for i in xrange(n):
 for j in xrange(i):
  if l[i][0]>l[j][0] and l[i][1]>l[j][1] and l[i][2]>l[j][2]:
   res[i]=max(res[i],res[j]+1)
print max(res)
0