QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#512876 | #9175. Geometry Hacking | ucup-team1525# | AC ✓ | 15ms | 10928kb | Python3 | 285b | 2024-08-10 16:09:22 | 2024-08-10 16:09:28 |
Judging History
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