Submission #532460

# Submission time Handle Problem Language Result Execution time Memory
532460 2022-03-02T23:02:59 Z qwerasdfzxcl Newspapers (CEOI21_newspapers) C++14
0 / 100
1 ms 204 KB
#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\n0\n");
    else printf("NO\n");
    return 0;
}

Compilation message

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 time Memory Grader output
1 Incorrect 1 ms 204 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 1 ms 204 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 1 ms 204 KB Integer parameter [name=k] equals to 0, violates the range [1, 5]
2 Halted 0 ms 0 KB -