我正在尝试回答CodeForces上的1A-剧院广场问题。它一直告诉我:“测试1的运行时错误”
下面是我的代码:
n= int(input())
m= int(input())
a= int(input())
n1=1
n2=1
while n>a*n1:
n1=n1+1
break
while m>a*n2:
n2=n2+1
break
print (n1*n2)我还是一个初学者,所以如果你有任何意见或建议,我将不胜感激,并感谢你花时间通读我的问题。
https://stackoverflow.com/questions/38406856
复制相似问题