3 solutions

  • 1
    @ 2024-7-20 20:51:53

    不必多写,可以写一起

    #include<bits/stdc++.h>
    using namespace std;
    char b;
    int main(){
    	cin>>b;
    	if((int)b%2)cout<<"YES";
    	else cout<<"NO";
    	return 0;
    }
    
    • 1
      @ 2024-7-15 20:43:20
      #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;
      }
      
      • 0
        @ 2024-9-15 11:38:06
        #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;
        }
        
        • 1

        Information

        ID
        6882
        Time
        1000ms
        Memory
        128MiB
        Difficulty
        1
        Tags
        # Submissions
        11
        Accepted
        9
        Uploaded By