QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#588259#9175. Geometry HackingyhdddAC ✓0ms3836kbC++20861b2024-09-25 08:15:492024-09-25 08:15:49

Judging History

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

  • [2024-09-25 08:15:49]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3836kb
  • [2024-09-25 08:15:49]
  • 提交

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,我给组数据试试?

详细

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