結果

問題 No.3111 Toll Optimization
ユーザー ponjuice
提出日時 2025-04-13 00:58:25
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 915 bytes
コンパイル時間 9,163 ms
コンパイル使用メモリ 357,036 KB
実行使用メモリ 25,740 KB
最終ジャッジ日時 2025-04-15 10:06:32
合計ジャッジ時間 16,150 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 70
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, a, b) for(ll i = a; i < (b); i++)

const int min_nm = 1;
const int max_nm = 100'000;

const int min_k = 0;
const int max_k = 3;

const int min_c = 1;
const int max_c = 1'000'000'000;

int main(){
    registerValidation();

    int n = inf.readInt(min_nm, max_nm);
    inf.readSpace();
    int m = inf.readInt(min_nm, max_nm);
    inf.readSpace();
    inf.readInt(min_k, max_k);
    inf.readEoln();

    rep(i, 0, m){
        inf.readInt(min_c, max_c);
        if(i != m-1) inf.readSpace();
        else inf.readEoln();
    }

    set<pair<int,int>> edges;
    rep(i, 0, m){
        int u = inf.readInt(1, n);
        inf.readSpace();
        int v = inf.readInt(1, n);
        inf.readEoln();

        assert(u < v);
        edges.insert({u,v});
    }

    assert((int)edges.size() == m);

    inf.readEof();
}
0