6 条题解

  • 0
    @ 2024-9-15 14:24:28

    满分题解:

    #include<bits/stdc++.h> 
    using namespace std; 
    int main(){ 
      int a,b; 
      cin>>a>>b; 
      if(abs(a%2)==1 and abs(b%2)==1) 
      cout<<2; 
      else if(abs(a%2)==1 or abs(b%2)==1) 
      cout<<1; 
      else cout<<0; 
      return 0; }
    

    信息

    ID
    586
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    递交数
    39
    已通过
    26
    上传者