整数大小比较 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int x,y; scanf("%d %d",&x,&y); if(x>y){ printf(">"); …… 题解列表 2022年10月26日 0 点赞 2 评论 1050 浏览 评分:6.0
三目运算整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a==b) print…… 题解列表 2022年12月12日 0 点赞 0 评论 862 浏览 评分:9.3
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long x,y; char a; scanf("%lld%lld",&x,&…… 题解列表 2022年12月30日 0 点赞 0 评论 601 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a>b) printf(">"); else …… 题解列表 2023年03月07日 0 点赞 0 评论 473 浏览 评分: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 评论 522 浏览 评分:0.0
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a>b){ …… 题解列表 2023年03月24日 0 点赞 0 评论 543 浏览 评分:0.0
注意题干易错点 要求一个无符号数与有符号数进行比较 解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果直接简单认为xy都为Int型数据,在无符号数据超过2的31次方-1时, 题解列表 2023年05月25日 0 点赞 0 评论 1054 浏览 评分:9.9
比较数的大小 摘要:解题思路:注意事项:数据的范围参考代码:#include <stdio.h>int main(){ unsigned a; int b; scanf("%u %d",&a,&b); …… 题解列表 2023年07月13日 0 点赞 0 评论 537 浏览 评分:0.0
题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; int ret; do{ ret = scanf("%d %…… 题解列表 2023年08月17日 0 点赞 0 评论 456 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项: = 是赋值,==是等于。参考代码:、#include<stdio.h>int main(){ int a,b; scanf("%d %d…… 题解列表 2023年10月08日 0 点赞 0 评论 482 浏览 评分:0.0