QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#535655#5255. Greedy DrawerschimeraAC ✓15ms10740kbPython3470b2024-08-28 12:05:162024-08-28 12:05:16

Judging History

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

  • [2024-08-28 12:05:16]
  • 评测
  • 测评结果:AC
  • 用时:15ms
  • 内存:10740kb
  • [2024-08-28 12:05:16]
  • 提交

answer

N = int(input())

notebooks = []
drawers = []

N1 = 50
for i in range(N1-1):
    notebooks.append((100,100))
    drawers.append((100,100))
notebooks.append((100,100))
drawers.append((100,101))

N -= N1

for x in range(30):
    notebooks.append((5+x, 101))
    drawers.append((5+x,101))

N -= 30

for z in range(N):
    notebooks.append((1,1))
    drawers.append((1,1))

for ab in notebooks:
    print(*ab)
for xy in drawers:
    print(*xy)


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 10604kb

input:

150

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #2:

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

input:

151

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #3:

score: 0
Accepted
time: 9ms
memory: 10720kb

input:

152

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #4:

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

input:

153

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #5:

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

input:

154

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #6:

score: 0
Accepted
time: 8ms
memory: 10664kb

input:

155

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #7:

score: 0
Accepted
time: 9ms
memory: 10624kb

input:

156

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #8:

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

input:

157

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #9:

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

input:

158

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #10:

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

input:

159

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #11:

score: 0
Accepted
time: 9ms
memory: 10560kb

input:

160

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #12:

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

input:

161

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #13:

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

input:

162

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #14:

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

input:

163

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #15:

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

input:

164

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #16:

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

input:

165

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #17:

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

input:

166

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #18:

score: 0
Accepted
time: 5ms
memory: 10736kb

input:

167

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #19:

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

input:

168

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy

Test #20:

score: 0
Accepted
time: 9ms
memory: 10696kb

input:

250

output:

100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 100
100 ...

result:

ok you killed Janko's strategy