QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#588259 | #9175. Geometry Hacking | yhddd | AC ✓ | 0ms | 3836kb | C++20 | 861b | 2024-09-25 08:15:49 | 2024-09-25 08:15:49 |
Judging History
answer
#include<bits/stdc++.h>
#define int long long
#define mod 998244353ll
#define pii pair<int,int>
#define fi first
#define se second
#define mems(x,y) memset(x,y,sizeof(x))
#define pb push_back
#define db double
using namespace std;
const int maxn=200010;
const int inf=1e18;
inline int read(){
int x=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=(x<<3)+(x<<1)+(ch-48);ch=getchar();}
return x*f;
}
bool Mbe;
int n;
void work(){
n=read();
for(int i=1;i<=n;i++){
printf("4\n-1 -1\n1 0\n%lld %lld\n0 1\n",i+2,-i);
}
}
// \
444
bool Med;
int T;
signed main(){
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
// ios::sync_with_stdio(0);
// cin.tie(0);cout.tie(0);
// cerr<<(&Mbe-&Med)/1048576.0<<" MB\n";
T=1;
while(T--)work();
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3772kb
input:
2
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1
result:
ok Everything ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
1
output:
4 -1 -1 1 0 3 -1 0 1
result:
ok Everything ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
1000
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1 4 -1 -1 1 0 5 -3 0 1 4 -1 -1 1 0 6 -4 0 1 4 -1 -1 1 0 7 -5 0 1 4 -1 -1 1 0 8 -6 0 1 4 -1 -1 1 0 9 -7 0 1 4 -1 -1 1 0 10 -8 0 1 4 -1 -1 1 0 11 -9 0 1 4 -1 -1 1 0 12 -10 0 1 4 -1 -1 1 0 13 -11 0 1 4 -1 -1 1 0 14 -12 0 1 4 -1 -1 1 0 15 -13 0 1 4 -1 -1 1 0 16 -1...
result:
ok Everything ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
500
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1 4 -1 -1 1 0 5 -3 0 1 4 -1 -1 1 0 6 -4 0 1 4 -1 -1 1 0 7 -5 0 1 4 -1 -1 1 0 8 -6 0 1 4 -1 -1 1 0 9 -7 0 1 4 -1 -1 1 0 10 -8 0 1 4 -1 -1 1 0 11 -9 0 1 4 -1 -1 1 0 12 -10 0 1 4 -1 -1 1 0 13 -11 0 1 4 -1 -1 1 0 14 -12 0 1 4 -1 -1 1 0 15 -13 0 1 4 -1 -1 1 0 16 -1...
result:
ok Everything ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
399
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1 4 -1 -1 1 0 5 -3 0 1 4 -1 -1 1 0 6 -4 0 1 4 -1 -1 1 0 7 -5 0 1 4 -1 -1 1 0 8 -6 0 1 4 -1 -1 1 0 9 -7 0 1 4 -1 -1 1 0 10 -8 0 1 4 -1 -1 1 0 11 -9 0 1 4 -1 -1 1 0 12 -10 0 1 4 -1 -1 1 0 13 -11 0 1 4 -1 -1 1 0 14 -12 0 1 4 -1 -1 1 0 15 -13 0 1 4 -1 -1 1 0 16 -1...
result:
ok Everything ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
420
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1 4 -1 -1 1 0 5 -3 0 1 4 -1 -1 1 0 6 -4 0 1 4 -1 -1 1 0 7 -5 0 1 4 -1 -1 1 0 8 -6 0 1 4 -1 -1 1 0 9 -7 0 1 4 -1 -1 1 0 10 -8 0 1 4 -1 -1 1 0 11 -9 0 1 4 -1 -1 1 0 12 -10 0 1 4 -1 -1 1 0 13 -11 0 1 4 -1 -1 1 0 14 -12 0 1 4 -1 -1 1 0 15 -13 0 1 4 -1 -1 1 0 16 -1...
result:
ok Everything ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
69
output:
4 -1 -1 1 0 3 -1 0 1 4 -1 -1 1 0 4 -2 0 1 4 -1 -1 1 0 5 -3 0 1 4 -1 -1 1 0 6 -4 0 1 4 -1 -1 1 0 7 -5 0 1 4 -1 -1 1 0 8 -6 0 1 4 -1 -1 1 0 9 -7 0 1 4 -1 -1 1 0 10 -8 0 1 4 -1 -1 1 0 11 -9 0 1 4 -1 -1 1 0 12 -10 0 1 4 -1 -1 1 0 13 -11 0 1 4 -1 -1 1 0 14 -12 0 1 4 -1 -1 1 0 15 -13 0 1 4 -1 -1 1 0 16 -1...
result:
ok Everything ok
Extra Test:
score: 0
Extra Test Passed