結果

問題 No.2435 Order All Company
ユーザー 0214sh70214sh7
提出日時 2023-08-15 01:36:16
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 859 bytes
コンパイル時間 7,915 ms
コンパイル使用メモリ 332,392 KB
実行使用メモリ 9,304 KB
最終ジャッジ日時 2024-05-03 09:10:57
合計ジャッジ時間 10,131 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
0214sh7's validation
*/

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

const long long MIN_N = 2, MAX_N = 50;
const long long MIN_K = 1, MAX_K = 5;
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);
            if(j!=t-1)inf.readEoln();
        }
        inf.readEoln();
    }

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

    inf.readEof();
    return 0;
}
0