QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#512876#9175. Geometry Hackingucup-team1525#AC ✓15ms10928kbPython3285b2024-08-10 16:09:222024-08-10 16:09:28

Judging History

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

  • [2024-08-10 16:09:28]
  • 评测
  • 测评结果:AC
  • 用时:15ms
  • 内存:10928kb
  • [2024-08-10 16:09:22]
  • 提交

answer

k = int(input())

def print_polygon(base):
    print(len(base))
    for x, y in base:
        print(x, y)

small3 = [[0, 1], [-1, -1], [1, 0], [3, -1]]


for i in range(3, k + 3):
    small3[3] = [i, -i + 2]
    print_polygon(small3)
        
'''
1, 0
4, -1
-1, 1
'''

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 9ms
memory: 10580kb

input:

2

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2

result:

ok Everything ok

Test #2:

score: 0
Accepted
time: 14ms
memory: 10644kb

input:

1

output:

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

result:

ok Everything ok

Test #3:

score: 0
Accepted
time: 14ms
memory: 10772kb

input:

1000

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2
4
0 1
-1 -1
1 0
5 -3
4
0 1
-1 -1
1 0
6 -4
4
0 1
-1 -1
1 0
7 -5
4
0 1
-1 -1
1 0
8 -6
4
0 1
-1 -1
1 0
9 -7
4
0 1
-1 -1
1 0
10 -8
4
0 1
-1 -1
1 0
11 -9
4
0 1
-1 -1
1 0
12 -10
4
0 1
-1 -1
1 0
13 -11
4
0 1
-1 -1
1 0
14 -12
4
0 1
-1 -1
1 0
15 -13
4
0 1
-1 -1
1 0
1...

result:

ok Everything ok

Test #4:

score: 0
Accepted
time: 10ms
memory: 10928kb

input:

500

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2
4
0 1
-1 -1
1 0
5 -3
4
0 1
-1 -1
1 0
6 -4
4
0 1
-1 -1
1 0
7 -5
4
0 1
-1 -1
1 0
8 -6
4
0 1
-1 -1
1 0
9 -7
4
0 1
-1 -1
1 0
10 -8
4
0 1
-1 -1
1 0
11 -9
4
0 1
-1 -1
1 0
12 -10
4
0 1
-1 -1
1 0
13 -11
4
0 1
-1 -1
1 0
14 -12
4
0 1
-1 -1
1 0
15 -13
4
0 1
-1 -1
1 0
1...

result:

ok Everything ok

Test #5:

score: 0
Accepted
time: 11ms
memory: 10888kb

input:

399

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2
4
0 1
-1 -1
1 0
5 -3
4
0 1
-1 -1
1 0
6 -4
4
0 1
-1 -1
1 0
7 -5
4
0 1
-1 -1
1 0
8 -6
4
0 1
-1 -1
1 0
9 -7
4
0 1
-1 -1
1 0
10 -8
4
0 1
-1 -1
1 0
11 -9
4
0 1
-1 -1
1 0
12 -10
4
0 1
-1 -1
1 0
13 -11
4
0 1
-1 -1
1 0
14 -12
4
0 1
-1 -1
1 0
15 -13
4
0 1
-1 -1
1 0
1...

result:

ok Everything ok

Test #6:

score: 0
Accepted
time: 15ms
memory: 10764kb

input:

420

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2
4
0 1
-1 -1
1 0
5 -3
4
0 1
-1 -1
1 0
6 -4
4
0 1
-1 -1
1 0
7 -5
4
0 1
-1 -1
1 0
8 -6
4
0 1
-1 -1
1 0
9 -7
4
0 1
-1 -1
1 0
10 -8
4
0 1
-1 -1
1 0
11 -9
4
0 1
-1 -1
1 0
12 -10
4
0 1
-1 -1
1 0
13 -11
4
0 1
-1 -1
1 0
14 -12
4
0 1
-1 -1
1 0
15 -13
4
0 1
-1 -1
1 0
1...

result:

ok Everything ok

Test #7:

score: 0
Accepted
time: 12ms
memory: 10628kb

input:

69

output:

4
0 1
-1 -1
1 0
3 -1
4
0 1
-1 -1
1 0
4 -2
4
0 1
-1 -1
1 0
5 -3
4
0 1
-1 -1
1 0
6 -4
4
0 1
-1 -1
1 0
7 -5
4
0 1
-1 -1
1 0
8 -6
4
0 1
-1 -1
1 0
9 -7
4
0 1
-1 -1
1 0
10 -8
4
0 1
-1 -1
1 0
11 -9
4
0 1
-1 -1
1 0
12 -10
4
0 1
-1 -1
1 0
13 -11
4
0 1
-1 -1
1 0
14 -12
4
0 1
-1 -1
1 0
15 -13
4
0 1
-1 -1
1 0
1...

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed