Submission #6385128


Source Code Expand

Copy
#include<bits/stdc++.h>
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define fd(i,a,b) for(int i=a;i>=b;i--)
using namespace std;

typedef long long LL;

const int maxn=2e5+5;

int n;

int main()
{
	scanf("%d",&n);
	if (n==1 || !(n&1)) {puts("No"); return 0;}
	
	puts("Yes");
	for(int i=2; i<=n; i+=2)
	{
		printf("%d %d\n",i,i+1);
		printf("%d %d\n",i+1,1);
		printf("%d %d\n",1,n+i);
		printf("%d %d\n",n+i,n+i+1);
	}
	printf("3 4\n");
}

Submission Info

Submission Time
Task C - Skolem XOR Tree
User kqp
Language C++14 (GCC 5.4.1)
Score 0
Code Size 459 Byte
Status WA
Exec Time 30 ms
Memory 2304 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:14:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
                ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 700
Status
AC × 1
WA × 1
AC × 17
WA × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt
Case Name Status Exec Time Memory
hand_01.txt WA 1 ms 256 KB
hand_02.txt WA 1 ms 256 KB
hand_03.txt WA 1 ms 256 KB
hand_04.txt WA 1 ms 256 KB
hand_05.txt WA 1 ms 256 KB
hand_06.txt WA 1 ms 256 KB
hand_07.txt WA 1 ms 256 KB
sample_01.txt WA 1 ms 256 KB
sample_02.txt AC 1 ms 256 KB
test_01.txt AC 1 ms 256 KB
test_02.txt AC 1 ms 256 KB
test_03.txt AC 1 ms 256 KB
test_04.txt AC 1 ms 256 KB
test_05.txt AC 1 ms 256 KB
test_06.txt AC 1 ms 256 KB
test_07.txt AC 1 ms 256 KB
test_08.txt AC 1 ms 256 KB
test_09.txt AC 1 ms 256 KB
test_10.txt AC 1 ms 256 KB
test_11.txt AC 1 ms 256 KB
test_12.txt AC 1 ms 256 KB
test_13.txt AC 1 ms 256 KB
test_14.txt AC 1 ms 256 KB
test_15.txt AC 1 ms 256 KB
test_16.txt AC 1 ms 256 KB
test_17.txt WA 1 ms 256 KB
test_18.txt WA 30 ms 2304 KB
test_19.txt WA 1 ms 256 KB
test_20.txt WA 28 ms 2304 KB
test_21.txt WA 1 ms 256 KB
test_22.txt WA 1 ms 256 KB
test_23.txt WA 1 ms 256 KB
test_24.txt WA 12 ms 1024 KB
test_25.txt WA 8 ms 640 KB
test_26.txt WA 1 ms 256 KB
test_27.txt WA 1 ms 256 KB
test_28.txt WA 21 ms 1792 KB