結果

問題 No.759 悪くない忘年会にしような!
ユーザー ミドリムシミドリムシ
提出日時 2018-12-07 18:10:00
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 668 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 65,968 KB
実行使用メモリ 395,564 KB
最終ジャッジ日時 2023-10-12 03:56:07
合計ジャッジ時間 46,147 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 599 ms
394,348 KB
testcase_01 AC 593 ms
393,920 KB
testcase_02 AC 594 ms
394,284 KB
testcase_03 AC 592 ms
394,344 KB
testcase_04 WA -
testcase_05 AC 592 ms
393,924 KB
testcase_06 WA -
testcase_07 AC 596 ms
394,296 KB
testcase_08 AC 594 ms
394,348 KB
testcase_09 AC 594 ms
394,516 KB
testcase_10 AC 595 ms
394,220 KB
testcase_11 AC 592 ms
393,960 KB
testcase_12 AC 594 ms
394,272 KB
testcase_13 AC 594 ms
393,972 KB
testcase_14 WA -
testcase_15 AC 592 ms
394,276 KB
testcase_16 AC 595 ms
394,288 KB
testcase_17 AC 594 ms
394,280 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 593 ms
393,932 KB
testcase_21 WA -
testcase_22 AC 594 ms
393,928 KB
testcase_23 AC 593 ms
393,972 KB
testcase_24 AC 595 ms
394,300 KB
testcase_25 WA -
testcase_26 AC 594 ms
394,360 KB
testcase_27 AC 596 ms
394,352 KB
testcase_28 AC 596 ms
394,524 KB
testcase_29 AC 593 ms
394,284 KB
testcase_30 WA -
testcase_31 AC 592 ms
393,960 KB
testcase_32 AC 594 ms
394,348 KB
testcase_33 AC 600 ms
394,248 KB
testcase_34 AC 593 ms
394,296 KB
testcase_35 AC 596 ms
394,296 KB
testcase_36 WA -
testcase_37 AC 599 ms
394,200 KB
testcase_38 WA -
testcase_39 AC 596 ms
394,196 KB
testcase_40 WA -
testcase_41 AC 599 ms
394,196 KB
testcase_42 AC 602 ms
394,232 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 605 ms
394,288 KB
testcase_50 WA -
testcase_51 AC 602 ms
394,288 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(10002, vector<int>(10002, -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]] = max(space[P[i]][T[i]], R[i]);
    }
    for(int i = 10000; i >= 0; i--){
        for(int j = 10000; 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(max(space[P[i] + 1][T[i]], space[P[i]][T[i] + 1]) <= R[i]){
            cout << i + 1 << endl;
        }
    }
}
0