#31414: python為何不行


naup96321@apps.ntpc.edu.tw (楊皓宇)

School : 臺北市立成功高級中學
ID : 151862
IP address : [220.136.176.105]
Last Login :
2022-07-30 09:46:13
d277. 矩形对角线 | From: [220.136.176.105] | Post Date : 2022-07-29 08:50

a=int(input())
if a%2==0:
  print(a)
else:
  print(a-1)

 
#31417: Re: python為何不行


cges30901 (cges30901)

School : No School
ID : 30877
IP address : [59.115.40.119]
Last Login :
2022-09-26 19:58:53
d277. 矩形对角线 | From: [118.160.170.245] | Post Date : 2022-07-29 10:31

a=int(input())
if a%2==0:
  print(a)
else:
  print(a-1)


輸入多筆測資

 
ZeroJudge Forum