Submission #783323

# Submission time Handle Problem Language Result Execution time Memory
783323 2023-07-14T20:44:53 Z vh50 Newspapers (CEOI21_newspapers) C++17
0 / 100
1 ms 212 KB
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
using namespace std;
int n, m;
main()
{
	cin >> n >> m;
	if(n == 2)	cout << "YES" << endl << 2 << endl << "1 1" << endl;
	else if(n == 3)	cout << "YES" << endl << 2 << endl << "2 2" << endl;
	else cout << "NO" << endl;
	
}

Compilation message

newspapers.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -