2 条题解

  • 1
    @ 2024-7-25 12:54:29

    参考答案:

    #include<iostream>
    
    using namespace std;
    
    int main()
    {
        int a, b, c;
    
        cin >> a >> b >> c;
        if ((c - (abs(a) + abs(b))) % 2 == 0 && c >= (abs(a) + abs(b))) cout << "Yes";
        else cout << "No";
    
        return 0;
    }
    
    • 0
      @ 2025-10-17 9:56:52

      Python:

      a, b, n = map(int,input().split())
      min_step = abs(a) + abs(b)
      if n >= min_step and (n - min_step)%2 == 0:
          print("Yes")
      else:
          print("No")
      
      • 1

      信息

      ID
      57
      时间
      1000ms
      内存
      256MiB
      难度
      8
      标签
      递交数
      20
      已通过
      5
      上传者