比赛链接:ABC367
额,迟到了一个月的题解。
水题。
#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
for(int i=B;;i++){
if(i==24)
i=0;
if(i==A){
cout<<"NO"<<endl;
return 0;
}
if(i==C){
cout<<"YES"<<endl;
return 0;
}
}
}
这么 rz 的题我居然还能 WA 两次,wssb。
#include <bits/stdc++.h>
using namespace std;
i