QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#694797#8934. Challenge NPC2018haha#WA 20ms5156kbC++17551b2024-10-31 18:40:462024-10-31 18:40:51

Judging History

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

  • [2024-10-31 18:40:51]
  • 评测
  • 测评结果:WA
  • 用时:20ms
  • 内存:5156kb
  • [2024-10-31 18:40:46]
  • 提交

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;
}

詳細信息

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]