Submission #532461

#TimeUsernameProblemLanguageResultExecution timeMemory
532461qwerasdfzxclNewspapers (CEOI21_newspapers)C++14
4 / 100
1 ms296 KiB
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    if (m==n-1) printf("YES\n1\n1\n");
    else printf("NO\n");
    return 0;
}

Compilation message (stderr)

newspapers.cpp: In function 'int main()':
newspapers.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |     scanf("%d %d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...