Submission #845595

# Submission time Handle Problem Language Result Execution time Memory
845595 2023-09-06T14:22:24 Z vjudge1 Konstrukcija (COCI20_konstrukcija) C++17
0 / 110
0 ms 348 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
const int N = 2e5 + 5, MOD = 1e9 + 7;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	int k;
	cin >> k;

	if(k == 0)
	{
		cout << 4 << " " << 3 << '\n';
		cout << 1 << " " << 2 << '\n';
		cout << 2 << " " << 3 << '\n';
		cout << 3 << " " << 4 << '\n';
		return 0;
	}

	cout << 2 * k << " " << k << '\n';

	for(int i = 1, flag = 1; i <= k; i++, flag = 1 - flag)
	{
		if(flag)
			cout << i << " " << i * 2 << '\n';
		else
			cout << i * 2 << " " << i << '\n';
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong answer.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Integer parameter [name=N] equals to -72, violates the range [1, 1000]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong answer.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Wrong answer.
2 Halted 0 ms 0 KB -