1 条题解

  • 0
    @ 2023-3-13 11:07:16

    C :

    #include<stdio.h>
    int main(){
    	int x;
    	scanf("%d",&x);
    	if(x%2==0){
    		printf("%s","y e s");
    	}else{
    		printf("%s","n o");
    	}
    	return 0;
    } 
    

    C++ :

    #include<iostream>
    using namespace std;
    int main(){
    	int x;
    	cin>>x;
    	if(x%2==0){
    		cout<<"y e s"<<endl;
    	}else{
    		cout<<"n o"<<endl;
    	}
    }
    
    	
    
    

    Python :

    r = int(input())
    if r % 2 == 0 :
       print('y e s') 
    else:
        print('n o') 
    
    • 1

    信息

    ID
    1289
    时间
    1000ms
    内存
    16MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者