結果

問題 No.759 悪くない忘年会にしような!
ユーザー matsu7874matsu7874
提出日時 2018-12-02 16:53:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,281 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 11,004 KB
実行使用メモリ 25,492 KB
最終ジャッジ日時 2023-10-11 13:12:47
合計ジャッジ時間 18,090 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,344 KB
testcase_01 AC 16 ms
8,364 KB
testcase_02 AC 16 ms
8,316 KB
testcase_03 AC 16 ms
8,204 KB
testcase_04 AC 16 ms
8,388 KB
testcase_05 AC 16 ms
8,300 KB
testcase_06 AC 17 ms
8,304 KB
testcase_07 AC 16 ms
8,384 KB
testcase_08 AC 16 ms
8,208 KB
testcase_09 AC 16 ms
8,276 KB
testcase_10 AC 16 ms
8,404 KB
testcase_11 AC 16 ms
8,296 KB
testcase_12 AC 16 ms
8,324 KB
testcase_13 AC 16 ms
8,312 KB
testcase_14 AC 16 ms
8,352 KB
testcase_15 AC 16 ms
8,308 KB
testcase_16 AC 16 ms
8,260 KB
testcase_17 AC 17 ms
8,240 KB
testcase_18 AC 16 ms
8,280 KB
testcase_19 AC 16 ms
8,396 KB
testcase_20 AC 16 ms
8,352 KB
testcase_21 AC 16 ms
8,208 KB
testcase_22 AC 16 ms
8,384 KB
testcase_23 AC 16 ms
8,348 KB
testcase_24 AC 16 ms
8,396 KB
testcase_25 AC 16 ms
8,292 KB
testcase_26 AC 16 ms
8,248 KB
testcase_27 AC 15 ms
8,400 KB
testcase_28 AC 16 ms
8,332 KB
testcase_29 AC 16 ms
8,260 KB
testcase_30 AC 16 ms
8,324 KB
testcase_31 AC 16 ms
8,348 KB
testcase_32 AC 16 ms
8,208 KB
testcase_33 AC 79 ms
9,624 KB
testcase_34 AC 24 ms
8,312 KB
testcase_35 AC 43 ms
8,948 KB
testcase_36 AC 61 ms
9,712 KB
testcase_37 AC 28 ms
8,564 KB
testcase_38 AC 77 ms
9,836 KB
testcase_39 AC 26 ms
8,480 KB
testcase_40 AC 51 ms
9,364 KB
testcase_41 AC 66 ms
9,640 KB
testcase_42 AC 75 ms
9,892 KB
testcase_43 AC 83 ms
9,972 KB
testcase_44 AC 588 ms
25,360 KB
testcase_45 AC 628 ms
25,272 KB
testcase_46 AC 645 ms
25,400 KB
testcase_47 AC 730 ms
25,444 KB
testcase_48 AC 707 ms
25,304 KB
testcase_49 AC 83 ms
10,076 KB
testcase_50 AC 88 ms
9,904 KB
testcase_51 AC 91 ms
10,012 KB
testcase_52 AC 79 ms
9,960 KB
testcase_53 AC 631 ms
25,288 KB
testcase_54 AC 690 ms
25,492 KB
testcase_55 AC 612 ms
25,412 KB
testcase_56 AC 613 ms
25,464 KB
testcase_57 AC 716 ms
25,296 KB
testcase_58 AC 632 ms
25,268 KB
testcase_59 AC 649 ms
25,304 KB
testcase_60 AC 642 ms
25,324 KB
testcase_61 AC 638 ms
25,292 KB
testcase_62 AC 558 ms
25,272 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