Submission #783323

#TimeUsernameProblemLanguageResultExecution timeMemory
783323vh50Newspapers (CEOI21_newspapers)C++17
0 / 100
1 ms212 KiB
#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 (stderr)

newspapers.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...