結果
| 問題 |
No.497 入れ子の箱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-04 11:48:20 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 362 ms / 5,000 ms |
| コード長 | 315 bytes |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 05:32:01 |
| 合計ジャッジ時間 | 9,328 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
#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)