1 条题解

  • 0
    @ 2026-9-18 23:39:11

    双关比较 题解

    题目要求:输入两个整数 score1 score2,表示两科成绩。两科都不低于 60 时输出 PASS,否则输出 RETRY。

    所需知识点:

    • 比较(==)
    • 输出(cout)
    完整代码;
    #include<iostream>
    using namespace std;
    int score1, score2;
    int main(){
    	cin >> score1 >> score2;
    	if(score1>=60&&score2>=60)cout<<"PASS";
    	else cout<<"RETRY";
    	return 0;
    }
    

    制作不易点个赞吧 Q w Q meow~

    • 1

    信息

    ID
    56
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    4
    已通过
    3
    上传者