QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#739535#9175. Geometry Hackingucup-team134#AC ✓1ms4096kbC++14388b2024-11-12 22:03:272024-11-12 22:03:29

Judging History

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

  • [2024-11-12 22:03:29]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:4096kb
  • [2024-11-12 22:03:27]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int main(){
    int k;
    scanf("%i",&k);
    vector<pair<int,int>> poly={
        {0, -1},
        {1, 0},
        {4, -1},
        {-1, 1}
    };
    for(int i=1;i<=k;i++){
        poly[2]={i*2+2,-i};
        printf("%i\n",poly.size());
        for(auto p:poly)printf("%i %i\n",p.first,p.second);
    }
    return 0;
}

这程序好像有点Bug,我给组数据试试?

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3764kb

input:

2

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1

result:

ok Everything ok

Test #2:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

1

output:

4
0 -1
1 0
4 -1
-1 1

result:

ok Everything ok

Test #3:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

1000

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1
4
0 -1
1 0
8 -3
-1 1
4
0 -1
1 0
10 -4
-1 1
4
0 -1
1 0
12 -5
-1 1
4
0 -1
1 0
14 -6
-1 1
4
0 -1
1 0
16 -7
-1 1
4
0 -1
1 0
18 -8
-1 1
4
0 -1
1 0
20 -9
-1 1
4
0 -1
1 0
22 -10
-1 1
4
0 -1
1 0
24 -11
-1 1
4
0 -1
1 0
26 -12
-1 1
4
0 -1
1 0
28 -13
-1 1
4
0 -1
1 0
30...

result:

ok Everything ok

Test #4:

score: 0
Accepted
time: 1ms
memory: 4056kb

input:

500

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1
4
0 -1
1 0
8 -3
-1 1
4
0 -1
1 0
10 -4
-1 1
4
0 -1
1 0
12 -5
-1 1
4
0 -1
1 0
14 -6
-1 1
4
0 -1
1 0
16 -7
-1 1
4
0 -1
1 0
18 -8
-1 1
4
0 -1
1 0
20 -9
-1 1
4
0 -1
1 0
22 -10
-1 1
4
0 -1
1 0
24 -11
-1 1
4
0 -1
1 0
26 -12
-1 1
4
0 -1
1 0
28 -13
-1 1
4
0 -1
1 0
30...

result:

ok Everything ok

Test #5:

score: 0
Accepted
time: 1ms
memory: 4096kb

input:

399

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1
4
0 -1
1 0
8 -3
-1 1
4
0 -1
1 0
10 -4
-1 1
4
0 -1
1 0
12 -5
-1 1
4
0 -1
1 0
14 -6
-1 1
4
0 -1
1 0
16 -7
-1 1
4
0 -1
1 0
18 -8
-1 1
4
0 -1
1 0
20 -9
-1 1
4
0 -1
1 0
22 -10
-1 1
4
0 -1
1 0
24 -11
-1 1
4
0 -1
1 0
26 -12
-1 1
4
0 -1
1 0
28 -13
-1 1
4
0 -1
1 0
30...

result:

ok Everything ok

Test #6:

score: 0
Accepted
time: 0ms
memory: 3720kb

input:

420

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1
4
0 -1
1 0
8 -3
-1 1
4
0 -1
1 0
10 -4
-1 1
4
0 -1
1 0
12 -5
-1 1
4
0 -1
1 0
14 -6
-1 1
4
0 -1
1 0
16 -7
-1 1
4
0 -1
1 0
18 -8
-1 1
4
0 -1
1 0
20 -9
-1 1
4
0 -1
1 0
22 -10
-1 1
4
0 -1
1 0
24 -11
-1 1
4
0 -1
1 0
26 -12
-1 1
4
0 -1
1 0
28 -13
-1 1
4
0 -1
1 0
30...

result:

ok Everything ok

Test #7:

score: 0
Accepted
time: 0ms
memory: 4092kb

input:

69

output:

4
0 -1
1 0
4 -1
-1 1
4
0 -1
1 0
6 -2
-1 1
4
0 -1
1 0
8 -3
-1 1
4
0 -1
1 0
10 -4
-1 1
4
0 -1
1 0
12 -5
-1 1
4
0 -1
1 0
14 -6
-1 1
4
0 -1
1 0
16 -7
-1 1
4
0 -1
1 0
18 -8
-1 1
4
0 -1
1 0
20 -9
-1 1
4
0 -1
1 0
22 -10
-1 1
4
0 -1
1 0
24 -11
-1 1
4
0 -1
1 0
26 -12
-1 1
4
0 -1
1 0
28 -13
-1 1
4
0 -1
1 0
30...

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed