Submission #710020

# Submission time Handle Problem Language Result Execution time Memory
710020 2023-03-15T03:37:12 Z willychan Konstrukcija (COCI20_konstrukcija) C++14
15 / 110
1 ms 340 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
//#include<bits/extc++.h>
//__gnu_pbds




int main(){
	ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	int k;cin>>k;
	int a = abs(k);
	a++;
	int n = a+2;
	cout<<n<<" "<<2*a<<"\n";
	for(int i=2;i<=a+1;i++){
		cout<<1<<" "<<i<<"\n";
		cout<<i<<" "<<n<<"\n";
	}

	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Correct.
2 Correct 0 ms 212 KB Correct.
3 Correct 1 ms 212 KB Correct.
4 Correct 0 ms 340 KB Correct.
5 Correct 1 ms 212 KB Correct.
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Wrong answer.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Correct.
2 Correct 0 ms 212 KB Correct.
3 Correct 1 ms 212 KB Correct.
4 Correct 0 ms 340 KB Correct.
5 Correct 1 ms 212 KB Correct.
6 Incorrect 0 ms 212 KB Wrong answer.
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Correct.
2 Correct 0 ms 212 KB Correct.
3 Correct 1 ms 212 KB Correct.
4 Correct 0 ms 340 KB Correct.
5 Correct 1 ms 212 KB Correct.
6 Incorrect 0 ms 212 KB Wrong answer.
7 Halted 0 ms 0 KB -