Submission #845710

# Submission time Handle Problem Language Result Execution time Memory
845710 2023-09-06T15:02:12 Z vjudge1 Konstrukcija (COCI20_konstrukcija) C++17
15 / 110
1 ms 348 KB
#include <bits/stdc++.h>
#define fast cin.tie(0)->sync_with_stdio(0);
#define int long long
#define inf ((int)1e18)
using namespace std;

int32_t main(){
	fast
	int k;
	cin>>k;
	k++;
	cout<<k + 2<<" "<<k * 2<<"\n";
	for(int i = 0; i < k; i++) {
		cout<<1<<" "<<i + 2<<"\n";
	}
	for(int i = 0; i < k; i++) {
		cout<<i + 2<<" "<<k + 2<<"\n";
	}
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Correct.
2 Correct 0 ms 344 KB Correct.
3 Correct 0 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 0 ms 344 KB Correct.
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Correct.
2 Correct 0 ms 344 KB Correct.
3 Correct 0 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 0 ms 344 KB Correct.
6 Incorrect 0 ms 344 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Correct.
2 Correct 0 ms 344 KB Correct.
3 Correct 0 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 0 ms 344 KB Correct.
6 Incorrect 0 ms 344 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
7 Halted 0 ms 0 KB -