結果

問題 No.2741 Balanced Choice
コンテスト
ユーザー cho435
提出日時 2024-04-20 01:54:04
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 933 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,393 ms
コンパイル使用メモリ 337,460 KB
実行使用メモリ 12,024 KB
最終ジャッジ日時 2026-07-04 14:05:37
合計ジャッジ時間 6,860 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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()

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