9 条题解

  • 2
    @ 2026-6-12 20:37:08
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a, b;
    	cin >> a >> b ;
    	if (a < 60 && b >= 60 || b < 60 && a >= 60)
    		cout << "1";
    	else
    		cout << "0";
    	return 0;
    }
    
    
    

    67牛逼 six-seven

    • 0
      @ 2026-6-12 20:34:36

      #include using namespace std;

      int main() { int a, b; cin >> a >> b; if (a >= 60 && b < 60 || a < 60 && b >= 60) { cout << 1; } else { cout << 0; } return 0; }

      • 0
        @ 2026-5-30 21:20:56
        #include <bits/stdc++.h>
        using namespace std;
        
        int main() {
        int chinese, math;
            // 输入语文和数学成绩
            cin >> chinese >> math;
        
            // 判断:恰好一门不及格 输出1,否则0
            // 不及格 <60,恰好一门就是 一门<60、另一门>=60
            if ((chinese < 60 && math >= 60) || (math < 60 && chinese >= 60)) {
                cout << 1 << endl;
            } else {
                cout << 0 << endl;
            }
            return 0;
        }
        
        

        可直接运行。 点点赞吧! 我会继续发题解的。

        • -1
          @ 2026-5-24 10:47:32

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

          int main() { int a, b; cin >> a >> b; if (a >= 60 && b < 60 || b >= 60 && a < 60) { cout << "1"; } else { cout << "0"; }

          return 0;
          

          }

          • -2
            @ 2026-5-24 10:48:51

            #include using namespace std;

            int main() { int a, b; cin >> a >> b; if (a >= 60 && b < 60 || a < 60 && b >= 60) { cout << 1; } else { cout << 0; } return 0; }

            • -3
              @ 2026-5-24 11:35:13

              很简单自己想

              • -3
                @ 2026-5-24 10:45:06

                沙箱错误到底是啥

                • -5
                  @ 2026-5-24 10:37:14

                  #include using namespace std;

                  int main() { int a, b; cin >> a >> b; if (a >= 60 && b < 60 || b >= 60 && a < 60) { cout << "1"; } else { cout << "0"; }

                  return 0;
                  

                  }

                  • -7
                    @ 2026-5-24 10:47:50

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

                    int main() { int a, b; cin >> a >> b; if (a >= 60 && b < 60 || b >= 60 && a < 60) { cout << "1"; } else { cout << "0"; }

                    return 0;
                    

                    }

                    • 1

                    【条件】有一门课不及格的学生

                    信息

                    ID
                    30938
                    时间
                    1000ms
                    内存
                    256MiB
                    难度
                    6
                    标签
                    (无)
                    递交数
                    187
                    已通过
                    52
                    上传者