Submission #685006

# Submission time Handle Problem Language Result Execution time Memory
685006 2023-01-23T05:10:09 Z moonhero Newspapers (CEOI21_newspapers) C++14
0 / 100
1 ms 316 KB
#include<bits/stdc++.h>
using namespace std;
using ll = long long;

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int n, m; cin >> n >> m;
    for (int i = 1; i <= m; i++) {
        int u, v; cin >> u >> v;
    } if (n == 1 || n == 2) {
        cout << "YES\n";
        if (n == 1) cout << 1 << '\n' << 1 << '\n';
        else cout << 2 << '\n' << 1 << ' ' << 1 << '\n';
        return 0;
    }
    cout << "NO\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Incorrect 1 ms 212 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Incorrect 0 ms 212 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Incorrect 1 ms 212 KB Output isn't correct
4 Halted 0 ms 0 KB -