-1
當我在Codchef中編譯它時,此代碼給出運行時錯誤(NZEC)。代碼中的nzec錯誤,而在python中編寫代碼
test_cases = int(raw_input())
result = 0
def output(x):
if(x/2 >= 2):
global result;
result += x/2 - 1;
output(x-2);
else:
print result;
result = 0;
while(test_cases > 0):
base = int(raw_input());
output(base);
test_cases = test_cases - 1;