結果
問題 | No.759 悪くない忘年会にしような! |
ユーザー | matsu7874 |
提出日時 | 2018-12-02 17:00:10 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 1,459 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 11,060 KB |
実行使用メモリ | 10,704 KB |
最終ジャッジ日時 | 2023-10-11 13:11:50 |
合計ジャッジ時間 | 4,489 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,068 KB |
testcase_01 | AC | 17 ms
8,100 KB |
testcase_02 | AC | 16 ms
8,100 KB |
testcase_03 | AC | 17 ms
8,088 KB |
testcase_04 | AC | 16 ms
8,060 KB |
testcase_05 | AC | 17 ms
8,088 KB |
testcase_06 | AC | 16 ms
8,204 KB |
testcase_07 | AC | 16 ms
8,100 KB |
testcase_08 | AC | 16 ms
8,080 KB |
testcase_09 | AC | 16 ms
8,076 KB |
testcase_10 | AC | 17 ms
8,120 KB |
testcase_11 | AC | 17 ms
8,228 KB |
testcase_12 | AC | 16 ms
8,100 KB |
testcase_13 | AC | 16 ms
8,092 KB |
testcase_14 | AC | 17 ms
8,276 KB |
testcase_15 | AC | 17 ms
8,204 KB |
testcase_16 | AC | 16 ms
8,100 KB |
testcase_17 | AC | 16 ms
8,232 KB |
testcase_18 | AC | 16 ms
8,076 KB |
testcase_19 | AC | 17 ms
8,084 KB |
testcase_20 | AC | 17 ms
8,100 KB |
testcase_21 | AC | 17 ms
8,072 KB |
testcase_22 | AC | 17 ms
8,020 KB |
testcase_23 | AC | 17 ms
8,088 KB |
testcase_24 | AC | 16 ms
8,128 KB |
testcase_25 | AC | 17 ms
8,116 KB |
testcase_26 | AC | 16 ms
8,132 KB |
testcase_27 | AC | 17 ms
8,120 KB |
testcase_28 | AC | 16 ms
8,128 KB |
testcase_29 | AC | 16 ms
8,120 KB |
testcase_30 | AC | 17 ms
8,068 KB |
testcase_31 | AC | 17 ms
8,020 KB |
testcase_32 | AC | 16 ms
8,144 KB |
testcase_33 | AC | 80 ms
10,304 KB |
testcase_34 | AC | 25 ms
8,484 KB |
testcase_35 | AC | 44 ms
9,136 KB |
testcase_36 | AC | 62 ms
10,176 KB |
testcase_37 | AC | 29 ms
8,552 KB |
testcase_38 | AC | 79 ms
10,312 KB |
testcase_39 | AC | 27 ms
8,612 KB |
testcase_40 | AC | 53 ms
10,024 KB |
testcase_41 | AC | 66 ms
10,084 KB |
testcase_42 | AC | 78 ms
10,444 KB |
testcase_43 | AC | 86 ms
10,504 KB |
testcase_44 | RE | - |
testcase_45 | RE | - |
testcase_46 | RE | - |
testcase_47 | RE | - |
testcase_48 | RE | - |
testcase_49 | AC | 85 ms
10,592 KB |
testcase_50 | AC | 90 ms
10,632 KB |
testcase_51 | AC | 93 ms
10,704 KB |
testcase_52 | AC | 82 ms
10,564 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()