結果

問題 No.497 入れ子の箱
ユーザー pluto77pluto77
提出日時 2017-06-04 11:48:20
言語 Python2
(2.7.18)
結果
AC  
実行時間 361 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 7,112 KB
実行使用メモリ 6,672 KB
最終ジャッジ日時 2023-10-22 04:10:51
合計ジャッジ時間 9,726 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,452 KB
testcase_01 AC 11 ms
6,452 KB
testcase_02 AC 11 ms
6,452 KB
testcase_03 AC 358 ms
6,652 KB
testcase_04 AC 351 ms
6,672 KB
testcase_05 AC 350 ms
6,672 KB
testcase_06 AC 349 ms
6,672 KB
testcase_07 AC 356 ms
6,672 KB
testcase_08 AC 355 ms
6,672 KB
testcase_09 AC 350 ms
6,672 KB
testcase_10 AC 353 ms
6,672 KB
testcase_11 AC 354 ms
6,672 KB
testcase_12 AC 263 ms
6,660 KB
testcase_13 AC 259 ms
6,660 KB
testcase_14 AC 260 ms
6,660 KB
testcase_15 AC 265 ms
6,660 KB
testcase_16 AC 263 ms
6,660 KB
testcase_17 AC 260 ms
6,660 KB
testcase_18 AC 356 ms
6,664 KB
testcase_19 AC 358 ms
6,664 KB
testcase_20 AC 352 ms
6,664 KB
testcase_21 AC 354 ms
6,664 KB
testcase_22 AC 361 ms
6,664 KB
testcase_23 AC 83 ms
6,584 KB
testcase_24 AC 82 ms
6,660 KB
testcase_25 AC 11 ms
6,452 KB
testcase_26 AC 11 ms
6,452 KB
testcase_27 AC 302 ms
6,660 KB
testcase_28 AC 301 ms
6,660 KB
testcase_29 AC 300 ms
6,660 KB
testcase_30 AC 170 ms
6,660 KB
testcase_31 AC 170 ms
6,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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