QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#694797 | #8934. Challenge NPC | 2018haha# | WA | 20ms | 5156kb | C++17 | 551b | 2024-10-31 18:40:46 | 2024-10-31 18:40:51 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
int n=1024,c=2;
vector<pair<int,int>> e;
for(int i=3;i<=n;i+=2)
{
for(int j=1;j<i;j+=2)
{
e.push_back({i,j+1});
e.push_back({i+1,j});
}
}
cout<<n<<" "<<e.size()<<" "<<c<<"\n";
for(int i=1;i<=n;i++)
cout<<(i%2)<<" ";
cout<<"\n";
for(auto [u,v]:e)
cout<<u<<" "<<v<<"\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 20ms
memory: 5156kb
input:
1
output:
1024 261632 2 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 ...
result:
wrong answer Integer parameter [name=col] equals to 0, violates the range [1, 2]