Accepted
Code
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define nl '\n'
#define f(i,s,n) for(int i = s; i < n; i++)
// #define int long long
void solve(){
int n;
cin>>n;
if(n&1){
cout<<n-1<<nl;
}
else {
cout<<n<<nl;
}
}
signed main() {
ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
int T = 1;
// cin>>T;
for(int tc = 1; tc <= T; tc++){
solve();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1124 Even Number
- Contest
- LU IUJPC : Sylhet Division 2024
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-12-09 04:47:18
- Judged At
- 2024-12-09 04:47:18
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 584.0 KiB