题解|c++ & python
2025-07-23 11:29:00
发布于:上海
0阅读
0回复
0点赞
c++解法
#include <bits/stdc++.h>
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;
}
Python解法
a,b = input().split()
a = int(a)
b = int(b)
if a >= 60 and b < 60 or a < 60 and b >= 60:
print('1')
else:
print('0')
这里空空如也
有帮助,赞一个