奇怪的事情总是有的
原题链接:451.千万别挂科2026-05-01 18:40:25
发布于:浙江
这道题经过测试发现:
测试数据中只有3个YES,居然有7个NO!
又发现:
1AC:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a >= 60 && b >= 60 && c >= 60 && d >= 60 && e >= 60) cout << "YES" <<endl;
else cout << "NO" <<endl;
return 0;
}
这个比较正常
2AC:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if (a >= 60 && c >= 60 && d >= 60 && e >= 60) cout << "YES" <<endl;//!!!
else cout << "NO" <<endl;
return 0;
}
3AC:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
if ( c >= 60 && d >= 60 && e >= 60) cout << "YES" <<endl;//!!!
else cout << "NO" <<endl;
return 0;
}
以上代码居然都可以对!
这里空空如也












有帮助,赞一个