QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#317005 | #8041. Life is Hard and Undecidable, but... | ship2077 | WA | 0ms | 3776kb | C++14 | 340b | 2024-01-28 11:14:34 | 2024-01-28 11:14:35 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n;
int read(){
int x=0;char ch=getchar();
while (!isdigit(ch)) ch=getchar();
while (isdigit(ch)) x=x*10+ch-48,ch=getchar();
return x;
}
int main(){ n=read()-1;
printf("%d\n",n<<1|1);
for (int i=-n;i<=n;i++)
printf("%d %d\n",i,i);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3776kb
input:
1
output:
1 0 0
result:
wrong answer Coordinate too small