QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#765368#9255. Python ProgramssmallC233#TL 15ms10592kbPython390b2024-11-20 14:04:382024-11-20 14:04:38

Judging History

This is the latest submission verdict.

  • [2024-11-20 14:04:38]
  • Judged
  • Verdict: TL
  • Time: 15ms
  • Memory: 10592kb
  • [2024-11-20 14:04:38]
  • Submitted

answer

code = ""

for i in range(5):
    code += input() + "\n"

# print(code)

exec(code)

詳細信息

Test #1:

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

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: 15ms
memory: 10496kb

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: