QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#541848#8934. Challenge NPCucup-team3474#WA 21ms8308kbC++20674b2024-08-31 21:09:432024-08-31 21:09:43

Judging History

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

  • [2024-08-31 21:09:43]
  • 评测
  • 测评结果:WA
  • 用时:21ms
  • 内存:8308kb
  • [2024-08-31 21:09:43]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
const int N=1919810;
typedef long long ll;
typedef pair<ll,ll> PII;
ll n,m,k;
ll a[N],b[N];
char s[N];

typedef struct{
    int x,y,z;
}Node;
Node e[N];
vector<PII> v;

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cin>>k;
    n=1024;
    for(int i=1;i<=n;i++){
        int bg;
        if(i&1) bg=2;
        else bg=1;
        for(int j=bg;j<=i;j+=2) v.push_back({j,i});

    }
    cout<<n<<" "<<v.size()<<" "<<2<<endl;
    for(int i=1;i<=n;i++){
        if(i&1) cout<<1<<" ";
        else cout<<2<<" ";
    }
    cout<<endl;
    for(auto [x,y]:v) cout<<x<<" "<<y<<"\n";
    
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 21ms
memory: 8308kb

input:

1

output:

1024 262144 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 1 2 1 2 1 ...

result:

wrong answer The graph is not correct