Pages

Friday, August 12, 2011

d277. 矩形对角线


#include
using namespace std;

int main()
{
int n;
while(cin >> n)
{
if(n%2==0)
cout << n << endl;
else
cout << n-1 << endl;
}
}

No comments:

Post a Comment