7 solutions

  • 1
    @ 2024-1-27 11:31:47
    #include <iostream>
    #include <iomanip>
    using namespace std;
    
    int main()
    {
    	char a;
    	cin >> a;
    	if(int(a) % 2 == 0)
    		cout << "NO" << endl;
    	else
    		cout << "YES" << endl;
    //	cout << fixed << setprecision(3) << x * 100 << "%" << endl;
    //	return 0;
    }
    
    • 1
      @ 2023-10-4 15:11:11
      #include<iostream>
      #include<cstdio>
      using namespace std;
      int main()
      {
          char n;
          scanf("%c",&n);
          if(n%2==0)printf("NO\n");
            else printf("YES\n"); 
          return 0;
      }
      
      • 0
        @ 2025-1-26 16:43:39
        #include<bits/stdc++.h>
        using namespace std;
        bool ascll(char a){
           return int(a)%2;}
        char a;
        int main(){
           scanf("%c",&a);
           if(ascll(a)) cout<<"YES";
           else cout<<"NO";
           return 0;
        }
        
        • 0
          @ 2024-7-9 19:34:38

          #include<bits/stdc++.h> using namespace std; int main(){ char a; cin>>a; a=(int)a; if(a%2==0){ cout<<"NO"; } else cout<<"YES"; return 0; }

          • 0
            @ 2023-9-22 20:06:19

            #include using namespace std; int main(){ char a; cin>>a; int n=a; if(n%20)cout<<"NO"<<endl; if(n%21)cout<<"YES"<<endl; }

            • 0
              @ 2023-9-19 19:03:02
              #include <bits/stdc++.h>
              using namespace std;
              int main(int argc, char **argv){
              	char c;
              	cin >> c;
              	int a = (int)c;
              	if (a % 2 != 0){
              		cout << "YES";
              	}else {
              		cout << "NO";
              	}
              	return 0;
              }
              
              • -1
                @ 2024-1-26 11:50:35
                #include<bits/stdc++.h>
                #define ll long long
                using namespace std;
                char a;
                int main(){
                	cin>>a;
                	if(int(a)%2) cout<<"YES"<<"\n";
                	else cout<<"NO"<<"\n";
                	return 0;
                }
                
                • 1

                Information

                ID
                529
                Time
                1000ms
                Memory
                256MiB
                Difficulty
                3
                Tags
                # Submissions
                174
                Accepted
                97
                Uploaded By