Submission
Status:
[PPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: lazybw_
Problemset: เก็บกราฟเบื้องต้น
Language: cpp
Time: 0.108 second
Submitted On: 2025-07-03 23:50:46
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<vector<int>> createGraph(int N, vector<pair<int,int>> E) {
vector<vector<int>> v(N);
for (auto e : E) {
v[e.first].push_back(e.second);
v[e.second].push_back(e.first);
}
return v;
}