QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#635194#9255. Python Programshiqiaqiaya#TL 14ms10592kbPython362b2024-10-12 19:15:312024-10-12 19:15:39

Judging History

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

  • [2024-10-12 19:15:39]
  • 评测
  • 测评结果:TL
  • 用时:14ms
  • 内存:10592kb
  • [2024-10-12 19:15:31]
  • 提交

answer

s = ''
for _ in range(5):
    s += input() + '\n'

exec(s)

详细

Test #1:

score: 100
Accepted
time: 14ms
memory: 10524kb

input:

ans=0
for a in range(1,3):
    for b in range(5,1,-2):
        ans+=b
print(ans)

output:

16

result:

ok single line: '16'

Test #2:

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

input:

ans=0
for q in range(100,50,-1):
    for i in range(q,77,20):
        ans+=i
print(ans)

output:

2092

result:

ok single line: '2092'

Test #3:

score: -100
Time Limit Exceeded

input:

ans=0
for i in range(1,1000000):
    for j in range(i,1,-1):
        ans+=j
print(ans)

output:


result: