結果
問題 | No.497 入れ子の箱 |
ユーザー | 6soukiti29 |
提出日時 | 2017-03-26 06:44:02 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 10,988 KB |
実行使用メモリ | 8,708 KB |
最終ジャッジ日時 | 2023-09-20 09:30:45 |
合計ジャッジ時間 | 3,655 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,840 KB |
testcase_01 | WA | - |
testcase_02 | AC | 15 ms
8,008 KB |
testcase_03 | AC | 62 ms
8,616 KB |
testcase_04 | AC | 63 ms
8,660 KB |
testcase_05 | AC | 62 ms
8,668 KB |
testcase_06 | AC | 62 ms
8,524 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 100 ms
8,244 KB |
testcase_24 | AC | 100 ms
8,352 KB |
testcase_25 | AC | 16 ms
7,852 KB |
testcase_26 | AC | 15 ms
7,884 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 120 ms
8,296 KB |
testcase_31 | AC | 120 ms
8,296 KB |
ソースコード
N = int(input()) A = [] for n in range(N): X,Y,Z = map(int,input().split()) V = X*Y*Z A.append([X,Y,Z,V]) A.sort(key = lambda x: - x[3]) B = [[float("inf") for i in range(3)] + [0]] for a in A: for b in B: if b[0] > a[0] and b[1] > a[1] and b[2] > a[2]: B.append(a[:-1] + [b[3] + 1]) B.sort(key = lambda x: - x[3]) break print(B[0][3])