题解 2782: 整数大小比较 摘要:解题思路:无注意事项:要注意:c++中的“=”是“==”参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b;…… 题解列表 2023年12月09日 0 点赞 0 评论 331 浏览 评分:8.0
整数大小比较 摘要:参考代码:#include<stdio.h> int main() { int x,y; scanf("%d %d",&x,&y); if(x>y){ …… 题解列表 2023年11月29日 0 点赞 0 评论 199 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d %d", &x, &y); if(x>y) pri…… 题解列表 2023年11月12日 0 点赞 0 评论 243 浏览 评分:0.0
整数大小的比较 摘要:解题思路:注意事项:输出的是字符注意引号的使用参考代码:x,y=map(int,input().split())if x > y: print('>') elif …… 题解列表 2023年11月05日 0 点赞 0 评论 383 浏览 评分:9.9
Java简单版本 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年11月01日 0 点赞 0 评论 273 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long a,b; cin>…… 题解列表 2023年11月01日 0 点赞 0 评论 266 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项: = 是赋值,==是等于。参考代码:、#include<stdio.h>int main(){ int a,b; scanf("%d %d…… 题解列表 2023年10月08日 0 点赞 0 评论 239 浏览 评分:0.0
题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; int ret; do{ ret = scanf("%d %…… 题解列表 2023年08月17日 0 点赞 0 评论 256 浏览 评分:0.0
比较数的大小 摘要:解题思路:注意事项:数据的范围参考代码:#include <stdio.h>int main(){ unsigned a; int b; scanf("%u %d",&a,&b); …… 题解列表 2023年07月13日 0 点赞 0 评论 232 浏览 评分:0.0
注意题干易错点 要求一个无符号数与有符号数进行比较 摘要:解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果…… 题解列表 2023年05月25日 0 点赞 0 评论 753 浏览 评分:9.9