結果

問題 No.759 悪くない忘年会にしような!
ユーザー ミドリムシミドリムシ
提出日時 2018-12-07 17:55:59
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 610 bytes
コンパイル時間 1,696 ms
コンパイル使用メモリ 66,112 KB
実行使用メモリ 395,660 KB
最終ジャッジ日時 2023-10-12 03:50:04
合計ジャッジ時間 47,883 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 649 ms
394,068 KB
testcase_01 AC 601 ms
393,904 KB
testcase_02 AC 602 ms
393,936 KB
testcase_03 AC 598 ms
394,216 KB
testcase_04 WA -
testcase_05 AC 599 ms
394,032 KB
testcase_06 WA -
testcase_07 AC 602 ms
394,044 KB
testcase_08 AC 599 ms
394,024 KB
testcase_09 AC 598 ms
394,152 KB
testcase_10 AC 599 ms
393,960 KB
testcase_11 AC 596 ms
393,936 KB
testcase_12 AC 602 ms
393,996 KB
testcase_13 AC 596 ms
394,024 KB
testcase_14 WA -
testcase_15 AC 603 ms
393,992 KB
testcase_16 AC 597 ms
393,996 KB
testcase_17 AC 597 ms
394,236 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 601 ms
394,156 KB
testcase_21 WA -
testcase_22 AC 600 ms
393,908 KB
testcase_23 AC 601 ms
394,044 KB
testcase_24 AC 598 ms
394,244 KB
testcase_25 WA -
testcase_26 AC 600 ms
393,992 KB
testcase_27 AC 602 ms
394,084 KB
testcase_28 AC 597 ms
393,976 KB
testcase_29 AC 599 ms
393,960 KB
testcase_30 WA -
testcase_31 AC 602 ms
393,976 KB
testcase_32 AC 598 ms
394,008 KB
testcase_33 AC 606 ms
394,256 KB
testcase_34 AC 601 ms
394,040 KB
testcase_35 AC 604 ms
393,900 KB
testcase_36 WA -
testcase_37 AC 605 ms
394,044 KB
testcase_38 WA -
testcase_39 AC 607 ms
394,196 KB
testcase_40 WA -
testcase_41 AC 609 ms
394,272 KB
testcase_42 AC 613 ms
394,268 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 608 ms
394,252 KB
testcase_50 WA -
testcase_51 AC 613 ms
394,292 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
testcase_66 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
    int N;
    cin >> N;
    vector<vector<int>> space(10001, vector<int>(10001, -1));
    int P[N], T[N], R[N];
    for(int i = 0; i < N; i++){
        cin >> P[i] >> T[i] >> R[i];
        space[P[i]][T[i]] = R[i];
    }
    for(int i = 9999; i >= 0; i--){
        for(int j = 9999; j >= 0; j--){
            space[i][j] = max({space[i + 1][j], space[i][j + 1], space[i][j]});
        }
    }
    for(int i = 0; i < N; i++){
        if(space[P[i]][T[i]] <= R[i]){
            cout << i + 1 << endl;
        }
    }
}
0