答案(两种)

于墨轩  •  27天前


#include <iostream> 
using namespace std; 
int main() { 
    
   int M; 
   cin >> M; 
   cout << (M % 2 == 1 ? 1 : 0) << endl; 
    
   return 0; 






#include <iostream> 
using namespace std; 
int main() { 
    
   int M; 
   cin >> M; 
   cout << (M & 1) << endl; 

   return 0;


评论:

 


张晓冉  •  18天前

666

 


张晓冉  •  18天前