记录详情

Runtime Error


  
# 状态 耗时 内存占用
#1 Runtime Error File "foo.py", line 13 print ans ^ SyntaxError: Missing parentheses in call to 'print' 26ms 3.203 MiB

代码

a = 4
b = 2
c = 1
ans = 0
while b > 0:
	if b%2==1:
		c = c*a
	a = a*a
	b /= 2
while c > 0:
	ans += c%10
	c /= 10
print ans

信息

递交者
类型
自测
题目
观铃题
语言
Python 3
递交时间
2017-05-03 14:55:09
评测时间
2017-05-03 14:55:09
评测机
分数
0
总耗时
26ms
峰值内存
3.203 MiB