QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#317005#8041. Life is Hard and Undecidable, but...ship2077WA 0ms3776kbC++14340b2024-01-28 11:14:342024-01-28 11:14:35

Judging History

This is the latest submission verdict.

  • [2024-01-28 11:14:35]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3776kb
  • [2024-01-28 11:14:34]
  • Submitted

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

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3776kb

input:

1

output:

1
0 0

result:

wrong answer Coordinate too small