結果

問題 No.1480 Many Complete Graphs
コンテスト
ユーザー fairy_lettuce
提出日時 2021-04-16 17:46:07
言語 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  
実行時間 -
コード長 861 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,266 ms
コンパイル使用メモリ 336,744 KB
実行使用メモリ 11,880 KB
最終ジャッジ日時 2026-06-19 18:14:22
合計ジャッジ時間 9,322 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 57
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

int main(int argc, char* argv[]){
    const int MIN_N = 1;
    const int MAX_N = 100000;
    const int MIN_M = 0;
    const int MAX_M = 100000;
    const int MIN_A = 1;
    const int MAX_A = 1000000000;

    registerValidation(argc, argv);
    int n = inf.readInt(MIN_N, MAX_N);
    inf.readSpace();
    int m = inf.readInt(MIN_M, MAX_M);
    inf.readEoln();
    for (int i = 0; i < m; i++)
    {
        int k = inf.readInt(2, n);
        inf.readSpace();
        int c = inf.readInt(MIN_A, MAX_A);
        int last = 0;
        for (int j = 0; j < k; j++)
        {
            inf.readSpace();
            int s = inf.readInt(last + 1, n);
            last = s;
        }
        inf.readEoln();
    }
    inf.readEof();
    return 0;
}
0