제출 #897432

#제출 시각아이디문제언어결과실행 시간메모리
897432NeroZeinNewspapers (CEOI21_newspapers)C++17
4 / 100
1 ms348 KiB
#include "bits/stdc++.h"
using namespace std;

#ifdef Nero
#include "Deb.h"
#else
#define deb(...)
#endif

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  for(int i = 0; i < m; ++i) {
    int x, y;
    cin >> x >> y;
  }
  if (m >= n) {
    cout << "NO" << '\n';
    return 0; 
  }
  cout << "YES" << '\n';
  cout << 1 << '\n';
  cout << 1 << '\n';
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...