题解|c++ & python
2025-07-23 13:48:15
发布于:上海
0阅读
0回复
0点赞
c++解法
#include <bits/stdc++.h>
using namespace std;
int main(){
int x, y;
cin >> x >> y;
if(x > y)cout << '>';
else if(x == y)cout << '=';
else cout << '<';
return 0;
}
Python解法
x, y = map(int, input().split())
if x > y:
print('>')
elif x < y:
print('<')
else:
print('=')
这里空空如也
有帮助,赞一个