理解为什么short类型溢出后的值为-32768 摘要:解题思路:1)占位符%d %d 就表示一定是整数,那就一定是int 和 short2)short型数据的范围是-32768 ~ 32767, int型数据范围远大于此。因此正常输出的一定是int型,而…… 题解列表 2024年01月03日 4 点赞 0 评论 2847 浏览 评分:9.2
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年01月05日 0 点赞 0 评论 320 浏览 评分:9.2
3211: 蓝桥杯2024年第十五届省赛真题-宝石组合 摘要:解题思路:https://zhuanlan.zhihu.com/p/692286717参考代码:#include <bits/stdc++.h> using namespace std; co…… 题解列表 2024年04月14日 1 点赞 0 评论 2563 浏览 评分:9.2
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路以及注意事项:1. 小方是自己定义了gcd()函数来求最大公因数(最大公因数就是像12和18的最大公因数是6,两数除它都是整除)。2. gcd()函数用到了函数的递归调用,可能相对有点…… 题解列表 2017年06月10日 39 点赞 30 评论 4562 浏览 评分:9.3
拆分位数 (C语言代码) 摘要:#include<stdio.h> int main() { int a,b,c,x; scanf("%d",&x); a =  题解列表 2017年06月30日 19 点赞 3 评论 1942 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:#include<string.h> #include<stdio.h> int main(void) { char s1[100]; char s2[100]; char s3[1…… 题解列表 2017年07月03日 31 点赞 3 评论 2786 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题11.8 (C++代码) 摘要:#include<stdio.h> #include<stdlib.h> typedef struct students { int num ; int score; s…… 题解列表 2017年07月04日 8 点赞 0 评论 2024 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题1.6 (C++代码) 摘要:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){ …… 题解列表 2017年07月07日 3 点赞 5 评论 1392 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max…… 题解列表 2017年07月12日 1 点赞 0 评论 1055 浏览 评分:9.3
C二级辅导-阶乘数列 (C++代码) 摘要:解题思路:正常求阶乘,再求和即可,,当然直接输出结果有时可以的,嗯,就是这样。。。(下面有彩蛋hhhhh)注意事项:注意计算时的逻辑,当然还有格式,,直接输出的话——需要注意格式:“2.74e+32\…… 题解列表 2017年07月28日 5 点赞 7 评论 2250 浏览 评分:9.3