编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) if x>y: print('>') elif x==y: print(…… 题解列表 2022年10月18日 0 点赞 0 评论 1032 浏览 评分:9.9
整数大小比较 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int x,y; scanf("%d %d",&x,&y); if(x>y){ printf(">"); …… 题解列表 2022年10月26日 0 点赞 2 评论 768 浏览 评分:6.0
2782: 整数大小比较 摘要:while 1: try: while 1: x,y = map(int,input().strip().split()) if (x …… 题解列表 2022年11月27日 0 点赞 0 评论 183 浏览 评分:0.0
三目运算整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a==b) print…… 题解列表 2022年12月12日 0 点赞 0 评论 490 浏览 评分:9.3
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long x,y; char a; scanf("%lld%lld",&x,&…… 题解列表 2022年12月30日 0 点赞 0 评论 213 浏览 评分:0.0
2782: 整数大小比较 摘要:```cpp #include using namespace std; int main() { int x,y; cin>>x>>y; if(x>y) …… 题解列表 2023年01月11日 0 点赞 0 评论 357 浏览 评分:9.9
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a>b) printf(">"); else …… 题解列表 2023年03月07日 0 点赞 0 评论 134 浏览 评分:0.0
逻辑表达式与条件分支--5.整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a>b){ …… 题解列表 2023年03月24日 0 点赞 0 评论 106 浏览 评分:0.0
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a>b){ …… 题解列表 2023年03月24日 0 点赞 0 评论 122 浏览 评分:0.0
注意题干易错点 要求一个无符号数与有符号数进行比较 摘要:解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果…… 题解列表 2023年05月25日 0 点赞 0 评论 586 浏览 评分:9.9