結果

問題 No.759 悪くない忘年会にしような!
ユーザー matsu7874matsu7874
提出日時 2018-12-02 16:58:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,463 bytes
コンパイル時間 634 ms
コンパイル使用メモリ 11,096 KB
実行使用メモリ 10,572 KB
最終ジャッジ日時 2023-10-11 13:11:29
合計ジャッジ時間 6,989 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
8,236 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 15 ms
8,064 KB
testcase_06 AC 16 ms
8,068 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 16 ms
8,088 KB
testcase_11 WA -
testcase_12 AC 15 ms
8,180 KB
testcase_13 AC 16 ms
8,172 KB
testcase_14 WA -
testcase_15 AC 16 ms
8,120 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 16 ms
8,128 KB
testcase_25 WA -
testcase_26 AC 15 ms
8,080 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 15 ms
8,132 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
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 -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    assert 0 <= n <= 10**4

    points = list(set(tuple(map(int, input().split())) for i in range(n)))
    assert len(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()
0