3 solutions
- 1
Information
- ID
- 6882
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 1
- Tags
- # Submissions
- 11
- Accepted
- 9
- Uploaded By
#include <bits/stdc++.h>
using namespace std;
int main(){
char a;
cin>>a;
int b=a;
if(a%2==0) cout<<"NO";
else cout<<"YES";
return 0;
}
#include<bits/stdc++.h>
using namespace std;
const int maxn = 114514;
int main(){
char a;
cin >> a;
int b;
b = (int)a;
// cout << b;
if (b % 2){
cout << "YES";
}
else cout << "NO";
return 0;
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.