답안 #710020

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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;
}
# 결과 실행 시간 메모리 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.
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Wrong answer.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -