Submission

Status:

[PPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: meme_boi2

Problemset: เก็บกราฟเบื้องต้น

Language: cpp

Time: 0.070 second

Submitted On: 2025-09-02 21:23:37

#include <bits/stdc++.h>
using namespace std;
vector<vector<int> > createGraph(int n, vector<pair<int, int> > mat){
    vector<vector<int>> path(n);
    for(auto [x,y] : mat){
        path[x].push_back(y);
        path[y].push_back(x);
    }
    return path;
}