結果
| 問題 | No.497 入れ子の箱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-04 11:48:20 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 5,000 ms |
| + 279µs | |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 80,908 KB |
| 実行使用メモリ | 83,252 KB |
| 最終ジャッジ日時 | 2026-07-18 14:04:45 |
| 合計ジャッジ時間 | 4,106 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)