這裏是我的代碼回溯(最近最後一次通話)的EOFError
t=input()
for q in range(t):
s=raw_input()
m,n=s.split(' ')
ans = (m*n)*(m*n-1)
if(m>1 and n>1):
ans -= 4*(n-1)(m-2) + 4*(m-1)*(n-2)
print ans
它錯誤
Traceback (most recent call last):
Line 1, in <module>
t=raw_input()
EOFError
我到底做錯了什麼?請告訴我 這裏的鏈接
鍵盤有標準輸入任何選項,試試http://ideone.com/z328vR。在你的系統上,運行文件或使用shell重定向後手動輸入這些項目:'python file.py
2014-09-24 11:11:58
..並且你不能多個兩個字符串,所以首先將m和n轉換爲整數。 – 2014-09-24 11:14:03
下一次使用* real * python解釋器而不是隨機在線服務。 – Bakuriu 2014-09-24 11:14:21