Submission #912068

#TimeUsernameProblemLanguageResultExecution timeMemory
912068juliany2Newspapers (CEOI21_newspapers)C++17
4 / 100
1 ms500 KiB
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(x) (x).begin(), (x).end()


int main() {
    cin.tie(0)->sync_with_stdio(false);

    int n, m;
    cin >> n >> m;

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

    return 0;
}

#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...