整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int x,y; scanf("%d %d",&…… 题解列表 2024年08月04日 0 点赞 1 评论 904 浏览 评分:10.0
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) if x>y: print('>') elif x==y: print(…… 题解列表 2022年10月18日 0 点赞 0 评论 1397 浏览 评分:9.9
优质题解,回归真神的初始途径 摘要:解题思路:a,b=map(int,input().split())if a>b: print(">")elif a==b: print("=")else: print("<")…… 题解列表 2024年07月23日 0 点赞 0 评论 949 浏览 评分:9.9
2782: 整数大小比较 摘要:```cpp #include using namespace std; int main() { int x,y; cin>>x>>y; if(x>y) …… 题解列表 2023年01月11日 0 点赞 0 评论 742 浏览 评分:9.9
题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月23日 0 点赞 0 评论 533 浏览 评分:9.9
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月11日 0 点赞 0 评论 568 浏览 评分:9.9
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; …… 题解列表 2023年12月11日 0 点赞 0 评论 599 浏览 评分:9.9
注意题干易错点 要求一个无符号数与有符号数进行比较 解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果直接简单认为xy都为Int型数据,在无符号数据超过2的31次方-1时, 题解列表 2023年05月25日 0 点赞 0 评论 1054 浏览 评分:9.9
整数大小的比较 摘要:解题思路:注意事项:输出的是字符注意引号的使用参考代码:x,y=map(int,input().split())if x > y: print('>') elif …… 题解列表 2023年11月05日 0 点赞 0 评论 670 浏览 评分:9.9
三目运算整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a==b) print…… 题解列表 2022年12月12日 0 点赞 0 评论 861 浏览 评分:9.3