QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#628225 | #8934. Challenge NPC | ucup-team1266# | WA | 17ms | 3640kb | C++20 | 703b | 2024-10-10 19:12:06 | 2024-10-10 19:12:07 |
Judging History
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();
}
Details
Tip: Click on the bar to expand more detailed information
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]