結果

問題 No.3321 岩井星人グラフ-1
コンテスト
ユーザー のらら
提出日時 2025-07-13 18:23:21
言語 C++23
(gcc 13.3.0 + boost 1.89.0)
結果
WA  
実行時間 -
コード長 599 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,663 ms
コンパイル使用メモリ 180,544 KB
実行使用メモリ 47,872 KB
最終ジャッジ日時 2025-10-30 01:41:15
合計ジャッジ時間 16,696 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 89
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

//入力チェック
#include <iostream>
#include <algorithm>
#include <atcoder/all>
#include <set>
#include <cassert>
using namespace std;
using namespace atcoder;
using ll = long long;
//#define endl "\n";
ll N, M, cnt[4];
vector<ll> G[300009];
set<ll> st[300009];

int main(){
    cin >> N >> M;
    assert(2 <= N && N <= 300000);
    assert(0 <= M && M <= min(N*(N-1)/2, 300000LL));
    for(int i = 0; i < M; i++){
        ll a, b;
        cin >> a >> b;
        assert(st[a].find(b) == st[a].end());
        assert(a < b);
        st[a].insert(b);
        st[b].insert(a);
    }
    return 0;
}
0