Submission #956935

# Submission time Handle Problem Language Result Execution time Memory
956935 2024-04-02T17:30:43 Z LucaIlie Newspapers (CEOI21_newspapers) C++17
0 / 100
0 ms 348 KB
#include <bits/stdc++.h>

using namespace std;

const int MAX_N = 1e3;
vector<int> adj[MAX_N + 1];

int main() {
    int n, m;

    cin >> n >> m;
    for ( int i = 0; i < m; i++ ) {
        int u, v;
        cin >> u >> v;
    }

    if ( m == n - 1 )
        cout << "YES\n0\n";
    else
        cout << "NO\n";

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Integer parameter [name=k] equals to 0, violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Integer parameter [name=k] equals to 0, violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Integer parameter [name=k] equals to 0, violates the range [1, 5]
2 Halted 0 ms 0 KB -