3 条题解

  • 2
    @ 2026-5-30 14:59:10
    using namespace std;
    
    int main() {
    	long long a, b;
    	cin >> a >> b;
    	if (a > 1 || a < -1 || b > 1 || b < -1) {
    		cout << "no";
    	} else
    		cout << "yes";
    	return 0;
    }
    
    
    • 0
      @ 2026-5-31 11:03:36

      #include <bits/stdc++.h> using namespace std;

      int main() { long long a, b; cin >> a >> b; if (a > 1 || a < -1 || b > 1 || b < -1) { cout << "no"; } else cout << "yes"; return 0; }

      • -2
        @ 2026-5-30 8:25:05

        #include<bits/stdc++.h> using namespace std; int main(){ long long a,b; cin>>a>>b; if(a>1||a<-1||b>1||b<-1){ cout<<"no"; return 0; } cout<<"yes"; return 0; }

        • 1

        信息

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