#23793: ans


ce5324 (伃)

學校 : 臺北市私立延平高級中學
編號 : 128513
來源 : [219.70.166.115]
最後登入時間 :
2021-06-06 21:44:53
d277. 矩形对角线 | From: [111.235.252.96] | 發表日期 : 2020-12-17 17:08

#include <iostream> 
using namespace std;
int main()
{
	int n;
	while(cin>>n)
if((n%2)==1){
cout<<n-1<<endl;}
else{
cout<<n<<endl;}
return 0;
}
 
ZeroJudge Forum