Submission #1058587

# Submission time Handle Problem Language Result Execution time Memory
1058587 2024-08-14T11:20:58 Z kachim2 Make them Meet (EGOI24_makethemmeet) C++17
0 / 100
1 ms 348 KB
#include<bits/stdc++.h>
using namespace std;
vector<vector<int>> graph;

int main(){
    int n, m;
    cin >> n >> m;
    graph.resize(n);
    for(int i = 0; i < m; i++){
        int x, y;
        cin >> x >> y;
        graph[x].push_back(y);
        graph[y].push_back(x);
    }
    cout << 3 << '\n';
    cout << 1 << ' ' << 1;
    for(int i = 2; i < n; i++){
        cout << 1 << ' ';
    }
    cout << '\n';
    cout << 0 << ' ' << 0;
    for(int i = 2; i < n; i++){
        cout << 1 << ' ';
    }
    cout << '\n';
        cout << 1 << ' ' << 1;
    for(int i = 2; i < n; i++){
        cout << 1 << ' ';
    }

    
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Color out of bounds: 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Color out of bounds: 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Color out of bounds: 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Color out of bounds: 11
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Color out of bounds: 11
3 Halted 0 ms 0 KB -