QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#628225#8934. Challenge NPCucup-team1266#WA 17ms3640kbC++20703b2024-10-10 19:12:062024-10-10 19:12:07

Judging History

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

  • [2024-10-10 19:12:07]
  • 评测
  • 测评结果:WA
  • 用时:17ms
  • 内存:3640kb
  • [2024-10-10 19:12:06]
  • 提交

answer

#include<bits/stdc++.h>
#define ll long long
using ull = unsigned long long;
#define pii array<ll,2>
#define endl '\n'
using namespace std;
const int N=4e5+5;

int k;
void solve(){
    cin >> k;
    cout<<1024<<' '<<524288<<' '<<2<<endl;
    for(int i=1;i<=1024;i++) cout<<(i%2)+1<<' ';
    for(int i=1;i<=1024;i++){
        if(i%2==1){
            for(int j=2;j<=i;j+=2){
                cout<<i<<' '<<j<<endl;
            }
        }
        else{
            for(int j=1;j+1<i;j+=2){
                cout<<i<<' '<<j<<endl;
            }
        }
    }
}
signed main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    // int T=1;cin>>T;while(T--) 
    solve();
}

详细

Test #1:

score: 0
Wrong Answer
time: 17ms
memory: 3640kb

input:

1

output:

1024 524288 2
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 ...

result:

wrong answer Integer parameter [name=m] equals to 524288, violates the range [0, 523776]