Accepted
Code
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define bug(a) cout<<#a<<" : "<<a<<endl;
#define bug2(a,b) cout<<#a<<" : "<<a<<"\t"<<#b<<" : "<<b<<endl;
#define yes cout<<"Yes\n";
#define no cout<<"No\n";
signed main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t=1;
// cin>>t;
int cs=1;
while(t--){
// cout<<"Case "<<cs++<<": \n";
int n;cin>>n;
while(1){
if(n%2==0)break;
n--;
}
cout<<n<<endl;
}
return 0;
}
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:46:33
- Judged At
- 2024-12-09 04:46:33
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 584.0 KiB