#23793: ans


ce5324 (伃)

School : 臺北市私立延平高級中學
ID : 128513
IP address : [219.70.166.115]
Last Login :
2021-06-06 21:44:53
d277. 矩形对角线 | From: [111.235.252.96] | Post Date : 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