답안 #999037

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
999037 2024-06-15T05:31:41 Z vjudge1 Konstrukcija (COCI20_konstrukcija) C++17
15 / 110
1 ms 348 KB
#include<iostream>

using namespace std;

int main()
{
  int k;
  cin >> k;
  if(k >= 1)
    {
      cout << k + 3 << ' ' << 2 * (k + 1) << endl;
      for(int i = 2; i < k + 3; i++)
	cout << 1 << ' ' << i << endl;
      for(int i = 2; i < k + 3; i++)
	cout << i << ' ' << k + 3 << endl;
    }
  else
    {
      int a = abs(k);
      cout << 6 + a << ' ' << 3 * a + 8 << endl;
      cout << "1 2\n";
      cout << "1 3\n";
      cout << "2 4\n";
      cout << "2 5\n";
      cout << "3 4\n";
      cout << "3 5\n";

      cout << 4 << ' ' << a + 6 << endl; 
      cout << 5 << ' ' << a + 6 << endl;

      for(int i = 6; i < a + 6; i++)
	{
	  cout << 1 << ' ' << i << endl;
	  cout << i << ' ' << 4 << endl;
	  cout << i << ' ' << 5 << endl;
	}


      
    }
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Correct.
2 Correct 0 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 0 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Wrong answer.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Correct.
2 Correct 0 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 0 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
6 Incorrect 0 ms 348 KB Wrong answer.
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Correct.
2 Correct 0 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 0 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
6 Incorrect 0 ms 348 KB Wrong answer.
7 Halted 0 ms 0 KB -