2 条题解

  • 1
    @ 2025-2-6 1:29:13

    if 判断,秒了

    #include <bits/stdc++.h>
    using namespace std;
    int a, b, c;
    int main() {
        cin >> a >> b >> c;
        if (a + b > c && a + c > b && b + c > a) cout << 1;
        else cout << 0;
        return 0;
    }
    
    • 0
      @ 2024-12-12 18:57:51

      #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if (a+b>=c and a+c>=b and b+c>=a) {cout<<1;} else {cout<<0;} return 0; } //自己换行

      • 1

      信息

      ID
      4500
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      (无)
      递交数
      81
      已通过
      59
      上传者