QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#539518#8934. Challenge NPCucup-team3282#WA 52ms5136kbC++14639b2024-08-31 15:01:332024-08-31 15:01:33

Judging History

你现在查看的是最新测评结果

  • [2024-08-31 15:01:33]
  • 评测
  • 测评结果:WA
  • 用时:52ms
  • 内存:5136kb
  • [2024-08-31 15:01:33]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int n=1024;

vector<int> c;
vector<int> v[2];
vector<pair<int,int> > e;

int main(){
	ios::sync_with_stdio(0);
	v[0]={1,4};
	v[1]={2,3};
	e.push_back({1,2});
	e.push_back({3,4});
	c.resize(n+1);
	c[1]=c[4]=1;c[2]=c[3]=2;
	for(int i=5;i<=n;i+=2){
		for(int x:v[1])
			e.push_back({i,x});
		for(int x:v[0])
			e.push_back({i+1,x});
		c[i]=1;
		v[0].push_back(i);
		c[i+1]=2;
		v[1].push_back(i+1);
	}
	cout<<n<<' '<<e.size()<<endl;
	for(int i=1;i<=n;i++)
		cout<<c[i]<<' ';
	cout<<endl;
	for(auto t:e){
		cout<<t.first<<' '<<t.second<<endl;
	}
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 52ms
memory: 5136kb

input:

1

output:

1024 261632
1 2 2 1 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ...

result:

wrong answer Integer parameter [name=col] equals to 2, violates the range [1, 1]