結果
問題 | No.759 悪くない忘年会にしような! |
ユーザー | matsu7874 |
提出日時 | 2018-12-06 02:36:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 1,281 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 89,216 KB |
最終ジャッジ日時 | 2024-09-13 12:27:03 |
合計ジャッジ時間 | 13,105 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
60,116 KB |
testcase_01 | AC | 40 ms
52,096 KB |
testcase_02 | AC | 40 ms
51,584 KB |
testcase_03 | AC | 39 ms
52,096 KB |
testcase_04 | AC | 39 ms
52,352 KB |
testcase_05 | AC | 39 ms
52,352 KB |
testcase_06 | AC | 40 ms
52,096 KB |
testcase_07 | AC | 39 ms
51,584 KB |
testcase_08 | AC | 40 ms
52,608 KB |
testcase_09 | AC | 40 ms
51,840 KB |
testcase_10 | AC | 40 ms
51,840 KB |
testcase_11 | AC | 40 ms
52,096 KB |
testcase_12 | AC | 39 ms
51,584 KB |
testcase_13 | AC | 40 ms
52,096 KB |
testcase_14 | AC | 42 ms
51,968 KB |
testcase_15 | AC | 39 ms
51,968 KB |
testcase_16 | AC | 39 ms
51,968 KB |
testcase_17 | AC | 39 ms
51,840 KB |
testcase_18 | AC | 39 ms
52,224 KB |
testcase_19 | AC | 39 ms
52,224 KB |
testcase_20 | AC | 40 ms
52,096 KB |
testcase_21 | AC | 40 ms
51,840 KB |
testcase_22 | AC | 41 ms
52,272 KB |
testcase_23 | AC | 41 ms
52,096 KB |
testcase_24 | AC | 39 ms
52,096 KB |
testcase_25 | AC | 40 ms
52,096 KB |
testcase_26 | AC | 39 ms
52,352 KB |
testcase_27 | AC | 41 ms
52,608 KB |
testcase_28 | AC | 40 ms
52,608 KB |
testcase_29 | AC | 41 ms
52,096 KB |
testcase_30 | AC | 40 ms
52,224 KB |
testcase_31 | AC | 41 ms
51,968 KB |
testcase_32 | AC | 40 ms
51,712 KB |
testcase_33 | AC | 122 ms
78,316 KB |
testcase_34 | AC | 103 ms
76,368 KB |
testcase_35 | AC | 110 ms
77,984 KB |
testcase_36 | AC | 115 ms
77,824 KB |
testcase_37 | AC | 110 ms
77,564 KB |
testcase_38 | AC | 118 ms
77,972 KB |
testcase_39 | AC | 103 ms
76,800 KB |
testcase_40 | AC | 106 ms
77,696 KB |
testcase_41 | AC | 117 ms
77,696 KB |
testcase_42 | AC | 119 ms
77,824 KB |
testcase_43 | AC | 130 ms
78,464 KB |
testcase_44 | AC | 232 ms
88,704 KB |
testcase_45 | AC | 284 ms
88,576 KB |
testcase_46 | AC | 263 ms
88,704 KB |
testcase_47 | AC | 336 ms
88,988 KB |
testcase_48 | AC | 314 ms
88,704 KB |
testcase_49 | AC | 121 ms
78,208 KB |
testcase_50 | AC | 133 ms
78,076 KB |
testcase_51 | AC | 125 ms
78,592 KB |
testcase_52 | AC | 127 ms
77,952 KB |
testcase_53 | AC | 293 ms
88,704 KB |
testcase_54 | AC | 316 ms
89,060 KB |
testcase_55 | AC | 239 ms
89,080 KB |
testcase_56 | AC | 285 ms
89,160 KB |
testcase_57 | AC | 329 ms
88,916 KB |
testcase_58 | AC | 288 ms
88,992 KB |
testcase_59 | AC | 297 ms
88,576 KB |
testcase_60 | AC | 298 ms
89,216 KB |
testcase_61 | AC | 259 ms
88,960 KB |
testcase_62 | AC | 246 ms
88,832 KB |
testcase_63 | TLE | - |
testcase_64 | -- | - |
testcase_65 | -- | - |
testcase_66 | -- | - |
ソースコード
def main(): n = int(input()) points = [tuple(map(int, input().split())) for i in range(n)] 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()