結果
問題 | No.759 悪くない忘年会にしような! |
ユーザー | matsu7874 |
提出日時 | 2018-12-02 17:00:10 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 1,459 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 13,184 KB |
最終ジャッジ日時 | 2024-09-13 11:57:18 |
合計ジャッジ時間 | 5,002 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 31 ms
10,880 KB |
testcase_01 | AC | 30 ms
10,880 KB |
testcase_02 | AC | 32 ms
10,880 KB |
testcase_03 | AC | 32 ms
10,880 KB |
testcase_04 | AC | 31 ms
11,008 KB |
testcase_05 | AC | 30 ms
11,008 KB |
testcase_06 | AC | 31 ms
10,880 KB |
testcase_07 | AC | 30 ms
10,880 KB |
testcase_08 | AC | 30 ms
11,008 KB |
testcase_09 | AC | 31 ms
11,008 KB |
testcase_10 | AC | 31 ms
10,880 KB |
testcase_11 | AC | 30 ms
10,880 KB |
testcase_12 | AC | 31 ms
10,880 KB |
testcase_13 | AC | 31 ms
11,008 KB |
testcase_14 | AC | 30 ms
10,880 KB |
testcase_15 | AC | 31 ms
11,008 KB |
testcase_16 | AC | 31 ms
11,008 KB |
testcase_17 | AC | 30 ms
10,880 KB |
testcase_18 | AC | 31 ms
10,880 KB |
testcase_19 | AC | 30 ms
10,880 KB |
testcase_20 | AC | 31 ms
11,008 KB |
testcase_21 | AC | 31 ms
11,008 KB |
testcase_22 | AC | 31 ms
11,136 KB |
testcase_23 | AC | 30 ms
11,008 KB |
testcase_24 | AC | 32 ms
11,008 KB |
testcase_25 | AC | 30 ms
11,008 KB |
testcase_26 | AC | 30 ms
11,008 KB |
testcase_27 | AC | 30 ms
10,880 KB |
testcase_28 | AC | 30 ms
10,880 KB |
testcase_29 | AC | 30 ms
11,008 KB |
testcase_30 | AC | 30 ms
10,880 KB |
testcase_31 | AC | 30 ms
10,880 KB |
testcase_32 | AC | 30 ms
10,880 KB |
testcase_33 | AC | 103 ms
12,800 KB |
testcase_34 | AC | 38 ms
11,264 KB |
testcase_35 | AC | 62 ms
11,648 KB |
testcase_36 | AC | 84 ms
12,672 KB |
testcase_37 | AC | 44 ms
11,136 KB |
testcase_38 | AC | 101 ms
12,800 KB |
testcase_39 | AC | 43 ms
11,136 KB |
testcase_40 | AC | 71 ms
12,416 KB |
testcase_41 | AC | 88 ms
12,800 KB |
testcase_42 | AC | 101 ms
13,056 KB |
testcase_43 | AC | 107 ms
13,184 KB |
testcase_44 | RE | - |
testcase_45 | RE | - |
testcase_46 | RE | - |
testcase_47 | RE | - |
testcase_48 | RE | - |
testcase_49 | AC | 108 ms
13,184 KB |
testcase_50 | AC | 113 ms
13,056 KB |
testcase_51 | AC | 118 ms
13,056 KB |
testcase_52 | AC | 104 ms
13,184 KB |
testcase_53 | RE | - |
testcase_54 | RE | - |
testcase_55 | RE | - |
testcase_56 | RE | - |
testcase_57 | RE | - |
testcase_58 | RE | - |
testcase_59 | RE | - |
testcase_60 | RE | - |
testcase_61 | RE | - |
testcase_62 | RE | - |
testcase_63 | RE | - |
testcase_64 | RE | - |
testcase_65 | RE | - |
testcase_66 | RE | - |
ソースコード
def main(): n = int(input()) assert 0 <= n <= 10**4 points = [tuple(map(int, input().split())) for i in range(n)] assert len(set(points)) == n for p,t,r in points: assert 0 <= p <= 10**4 assert 0 <= t <= 10**4 assert 0 <= r <= 10**4 is_efficient = [True for i in range(n)] for i in range(n - 1): if not is_efficient[i]: continue for j in range(i + 1, n): if not is_efficient[j]: continue if any([ points[i][0] > points[j][0] and points[i][1] >= points[j][1] and points[i][2] >= points[j][2], points[i][0] >= points[j][0] and points[i][1] > points[j][1] and points[i][2] >= points[j][2], points[i][0] >= points[j][0] and points[i][1] >= points[j][1] and points[i][2] > points[j][2], ]): is_efficient[j] = False elif any([ points[i][0] < points[j][0] and points[i][1] <= points[j][1] and points[i][2] <= points[j][2], points[i][0] <= points[j][0] and points[i][1] < points[j][1] and points[i][2] <= points[j][2], points[i][0] <= points[j][0] and points[i][1] <= points[j][1] and points[i][2] < points[j][2], ]): is_efficient[i] = False break for i in range(n): if is_efficient[i]: print(i + 1) if __name__ == '__main__': main()