2 条题解

  • 0
    @ 2023-7-14 22:11:06
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b;
    	cin>>a>>b;
    	if(a%2==0 and b%2==0){
    		cout<<2;
    	}else if(a%2==0 or b%2==0){
    		cout<<1;
    	}else{
    		cout<<0;
    	}
    	return 0;
    }
    

    信息

    ID
    613
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    55
    已通过
    25
    上传者