QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#507336 | #5255. Greedy Drawers | ucup-team1525# | AC ✓ | 16ms | 10764kb | Python3 | 948b | 2024-08-06 16:24:48 | 2024-08-06 16:24:48 |
Judging History
answer
n = int(input())
# for i in range(n-4):
# if (i==0 or i==n-5):
# print(300-i,699+i)
# print(300-i,699+i)
# print(300-i,699+i)
# print()
# for i in range(n-4):
# if (i==0 or i==n-5):
# print(300-i,700+i)
# print(300-i,700+i)
# print(300-i,700+i)
pyl = 0
for i in range(n//7):
print(300-pyl,699+pyl)
print(300-pyl,699+pyl)
print(300-pyl,699+pyl)
print(299-pyl,700+pyl)
print(298-pyl,701+pyl)
print(298-pyl,702+pyl)
print(298-pyl,702+pyl)
pyl += 5
for i in range(n%7):
print(1,1000)
print()
pyl = 0
for i in range(n//7):
print(300-pyl,699+pyl)
print(300-pyl,699+pyl)
print(300-pyl,700+pyl)
print(299-pyl,701+pyl)
print(298-pyl,702+pyl)
print(298-pyl,702+pyl)
print(298-pyl,702+pyl)
pyl += 5
for i in range(n%7):
print(1,1000)
详细
Test #1:
score: 100
Accepted
time: 14ms
memory: 10600kb
input:
150
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #2:
score: 0
Accepted
time: 16ms
memory: 10740kb
input:
151
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #3:
score: 0
Accepted
time: 11ms
memory: 10632kb
input:
152
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #4:
score: 0
Accepted
time: 15ms
memory: 10604kb
input:
153
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #5:
score: 0
Accepted
time: 15ms
memory: 10732kb
input:
154
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #6:
score: 0
Accepted
time: 15ms
memory: 10732kb
input:
155
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #7:
score: 0
Accepted
time: 12ms
memory: 10680kb
input:
156
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #8:
score: 0
Accepted
time: 9ms
memory: 10740kb
input:
157
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #9:
score: 0
Accepted
time: 9ms
memory: 10640kb
input:
158
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #10:
score: 0
Accepted
time: 15ms
memory: 10648kb
input:
159
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #11:
score: 0
Accepted
time: 9ms
memory: 10648kb
input:
160
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #12:
score: 0
Accepted
time: 14ms
memory: 10648kb
input:
161
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #13:
score: 0
Accepted
time: 12ms
memory: 10756kb
input:
162
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #14:
score: 0
Accepted
time: 7ms
memory: 10740kb
input:
163
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #15:
score: 0
Accepted
time: 14ms
memory: 10756kb
input:
164
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #16:
score: 0
Accepted
time: 7ms
memory: 10740kb
input:
165
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #17:
score: 0
Accepted
time: 11ms
memory: 10644kb
input:
166
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #18:
score: 0
Accepted
time: 11ms
memory: 10752kb
input:
167
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #19:
score: 0
Accepted
time: 15ms
memory: 10648kb
input:
168
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy
Test #20:
score: 0
Accepted
time: 15ms
memory: 10764kb
input:
250
output:
300 699 300 699 300 699 299 700 298 701 298 702 298 702 295 704 295 704 295 704 294 705 293 706 293 707 293 707 290 709 290 709 290 709 289 710 288 711 288 712 288 712 285 714 285 714 285 714 284 715 283 716 283 717 283 717 280 719 280 719 280 719 279 720 278 721 278 722 278 722 275 724 275 724 275 ...
result:
ok you killed Janko's strategy