結果
| 問題 | No.759 悪くない忘年会にしような! | 
| コンテスト | |
| ユーザー |  matsu7874 | 
| 提出日時 | 2018-12-02 16:53:25 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 1,281 bytes | 
| コンパイル時間 | 303 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 31,772 KB | 
| 最終ジャッジ日時 | 2024-09-13 11:58:23 | 
| 合計ジャッジ時間 | 18,938 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 60 TLE * 1 -- * 3 | 
ソースコード
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()
            
            
            
        