結果

問題 No.759 悪くない忘年会にしような!
ユーザー matsu7874matsu7874
提出日時 2018-12-06 02:36:47
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 1,281 bytes
コンパイル時間 1,199 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 161,596 KB
最終ジャッジ日時 2023-10-11 13:44:06
合計ジャッジ時間 15,615 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
161,596 KB
testcase_01 AC 75 ms
71,428 KB
testcase_02 AC 74 ms
71,260 KB
testcase_03 AC 73 ms
71,340 KB
testcase_04 AC 72 ms
71,468 KB
testcase_05 AC 74 ms
71,480 KB
testcase_06 AC 72 ms
71,484 KB
testcase_07 AC 70 ms
71,308 KB
testcase_08 AC 72 ms
71,332 KB
testcase_09 AC 70 ms
71,100 KB
testcase_10 AC 72 ms
71,324 KB
testcase_11 AC 71 ms
71,124 KB
testcase_12 AC 71 ms
71,176 KB
testcase_13 AC 71 ms
71,476 KB
testcase_14 AC 72 ms
70,916 KB
testcase_15 AC 70 ms
71,456 KB
testcase_16 AC 72 ms
71,104 KB
testcase_17 AC 72 ms
70,964 KB
testcase_18 AC 72 ms
71,184 KB
testcase_19 AC 71 ms
71,232 KB
testcase_20 AC 71 ms
71,120 KB
testcase_21 AC 72 ms
71,496 KB
testcase_22 AC 71 ms
71,168 KB
testcase_23 AC 71 ms
71,104 KB
testcase_24 AC 71 ms
71,520 KB
testcase_25 AC 72 ms
71,432 KB
testcase_26 AC 71 ms
71,168 KB
testcase_27 AC 73 ms
71,400 KB
testcase_28 AC 74 ms
71,200 KB
testcase_29 AC 74 ms
71,204 KB
testcase_30 AC 72 ms
71,072 KB
testcase_31 AC 73 ms
71,104 KB
testcase_32 AC 73 ms
71,324 KB
testcase_33 AC 159 ms
79,076 KB
testcase_34 AC 131 ms
78,880 KB
testcase_35 AC 135 ms
78,740 KB
testcase_36 AC 140 ms
79,184 KB
testcase_37 AC 132 ms
79,052 KB
testcase_38 AC 142 ms
79,116 KB
testcase_39 AC 129 ms
78,584 KB
testcase_40 AC 131 ms
78,972 KB
testcase_41 AC 146 ms
78,984 KB
testcase_42 AC 146 ms
79,244 KB
testcase_43 AC 156 ms
79,588 KB
testcase_44 AC 258 ms
89,784 KB
testcase_45 AC 300 ms
90,052 KB
testcase_46 AC 274 ms
90,428 KB
testcase_47 AC 352 ms
90,040 KB
testcase_48 AC 329 ms
90,440 KB
testcase_49 AC 146 ms
79,608 KB
testcase_50 AC 153 ms
79,652 KB
testcase_51 AC 150 ms
79,092 KB
testcase_52 AC 151 ms
79,260 KB
testcase_53 AC 305 ms
90,292 KB
testcase_54 AC 325 ms
90,152 KB
testcase_55 AC 255 ms
89,760 KB
testcase_56 AC 302 ms
90,300 KB
testcase_57 AC 341 ms
90,572 KB
testcase_58 AC 303 ms
90,232 KB
testcase_59 AC 307 ms
89,708 KB
testcase_60 AC 309 ms
90,300 KB
testcase_61 AC 282 ms
89,952 KB
testcase_62 AC 271 ms
90,184 KB
testcase_63 TLE -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0