QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#539518 | #8934. Challenge NPC | ucup-team3282# | WA | 52ms | 5136kb | C++14 | 639b | 2024-08-31 15:01:33 | 2024-08-31 15:01:33 |
Judging History
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;
}
詳細信息
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]