結果

問題 No.2741 Balanced Choice
ユーザー Nzt3Nzt3
提出日時 2024-04-14 16:37:05
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,736 bytes
コンパイル時間 9,099 ms
コンパイル使用メモリ 324,644 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-14 16:37:16
合計ジャッジ時間 10,053 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
#define all(a) begin(a), end(a)
#define space inf.readChar(' ')
#define endl inf.readChar('\n')
#define eof inf.readEof()
tuple<ll> read(ll min, ll max){
    ll a = inf.readLong(min, max);
    endl;
    return tuple{a};
}
template<class... T> auto read(ll min, ll max, T... t){
    ll a = inf.readLong(min, max);
    space;
    return tuple_cat(tuple{a}, read(t...));
}
string read(string p){
    return inf.readLine(p);
}
vector<ll> reads(ll N, ll min, ll max){
    auto a = inf.readLongs(N, min, max);
    endl;
    return a;
}
vector<string> read_lines(ll N, string p){
    return inf.readLines(N, p);
}
template<class... T> auto read_lines(ll N, T... t){
    vector<decltype(read(t...))> a;
    a.reserve(N);
    while(N--) a.push_back(read(t...));
    return a;
}
vector<vector<ll>> read_matrix(ll H, ll W, ll min, ll max){
    vector<vector<ll>> ans(H);
    for(auto& v : ans) v = reads(W, min, max);
    return ans;
}

const ll MIN_N = 1;
const ll MAX_N = 5000;
const ll MIN_W = 1;
const ll MAX_W = 5000;
const ll MIN_D = 1;
const ll MAX_D = 5000;
const ll MIN_w = 1;
const ll MAX_w = 5000;
const ll MIN_v = 1;
const ll MAX_v = 5000;
const ll MIN_t = 0;
const ll MAX_t = 1;

int main() {
    registerValidation();
    ll N = inf.readLong(MIN_N, MAX_N);
    inf.readSpace();
    inf.readLong(MIN_W, MAX_W);
    inf.readSpace();
    inf.readLong(MIN_D, MAX_D);
    inf.readEoln();
    for(int i=0;i<N;i++){
        inf.readLong(MIN_t, MAX_t);
        inf.readSpace();
        inf.readLong(MIN_w, MAX_w);
        inf.readSpace();
        inf.readLong(MIN_v, MAX_v);
        inf.readEoln();
    }
    inf.readEof();
}
0