結果

問題 No.2435 Order All Company
ユーザー 0214sh70214sh7
提出日時 2023-08-13 14:27:55
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 863 bytes
コンパイル時間 8,674 ms
コンパイル使用メモリ 330,952 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-03 02:30:19
合計ジャッジ時間 10,153 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 WA -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 WA -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 WA -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
0214sh7's validation
*/

#include<bits/stdc++.h>
#include "testlib.h"
using namespace std;

const long long MIN_N = 2, MAX_N = 1'000;
const long long MIN_K = 1, MAX_K = 10;
const long long MIN_T = 1, MAX_T = 100'000;

int main(){
    registerValidation();
    long long N = inf.readLong(MIN_N, MAX_N);
    inf.readSpace();
    long long K = inf.readLong(MIN_K, MAX_K);
    inf.readEoln();

    long long Tsum = 0;
    for(int i=0;i<K;i++){
        
        int t = inf.readLong(MIN_T, MAX_T);
        inf.readEoln();
        Tsum += t;
        for(int j=0;j<t;j++){
            int a = inf.readLong(1, N);
            inf.readSpace();
            int b = inf.readLong(1, N);
            assert(a!=b);
            inf.readEoln();
        }
        if(i!=K-1)inf.readEoln();
    }

    assert(MIN_T <= Tsum && Tsum <= MAX_T);

    inf.readEof();
    return 0;
}
0