Submission #1324557

#TimeUsernameProblemLanguageResultExecution timeMemory
1324557haithamcoderMake them Meet (EGOI24_makethemmeet)C++20
10 / 100
1 ms332 KiB
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<ll, ll> pll;

const ll LOG = 31;
const ll MOD = 1000000007;
const ll inf = 1e17;
const ll B = 2305843009213693951;


#define db(x) cerr << #x << " = " << x << " | "
#define dbg(x) cerr << #x << " = " << x << "\n"

#define Algerian ios::sync_with_stdio(0);
#define OI cin.tie(NULL);


int main() {
    Algerian OI

    ll n, m;
    cin >> n >> m;

    vector<vector<ll>> adj(n);
    for (ll i = 0; i < n; i++) {
        ll u, v;
        cin >> u >> v;
        adj[u].push_back(v);
        adj[v].push_back(u);
    }

    cout << "3\n";
    for (ll i = 0; i < n; i++) cout << 0 << " \n"[i == n - 1];
    cout << "1 1 ";
    for (ll i = 2; i < n; i++) cout << 0 << " \n"[i == n - 1];
    for (ll i = 0; i < n; i++) cout << 0 << " \n"[i == n - 1];

    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...