宏定义和函数找最大值 摘要:解题思路:用三目运算符非常简单注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;#define max(a,b,c) (…… 题解列表 2022年05月12日 0 点赞 0 评论 353 浏览 评分:0.0
1202: 多输入输出练习1(20行) (不调API纯算法) ( 不用类型转换) 摘要:```java 对于这道题,就是只要找出一行中最大的数,我们只需要将最大的数放在一个变量(max)中,在循环中遇到更大的覆盖既可 循环中出现的i变量是为了初始化max,也就是默认第一个输入的数为最…… 题解列表 2022年05月12日 0 点赞 0 评论 713 浏览 评分:9.9
九九乘法表 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ for (int i = 1; i …… 题解列表 2022年05月12日 0 点赞 0 评论 421 浏览 评分:0.0
1055 二级C语言转换 摘要:```c #include int main(){ int n; scanf("%d",&n); printf("%o",n); return 0; } ``````c …… 题解列表 2022年05月12日 0 点赞 0 评论 378 浏览 评分:0.0
1251: 统计字母个数(hashMap解法 ) 摘要: 蛮简单的一题,可以用数组来处理,也可以用hashmap处理(PS:本人比较喜欢直观一点吧),用hashmap处理就当做复习一下hashmap的使用方法吧。 `…… 题解列表 2022年05月12日 0 点赞 0 评论 493 浏览 评分:9.9
Python解决字符统计问题——字典是个好东西 摘要:1. 首先输入: ```python a=input() ``` 然后把输入的东西循环处理: ```python d={} for i in a: d[i]=d.get(i,0…… 题解列表 2022年05月12日 0 点赞 0 评论 473 浏览 评分:0.0
欧几里得法求最大公倍数,最小公约数 摘要:解题思路:注意事项:参考代码://辗转相除法 #include<iostream>using namespace std;int gcd(int a,int b){ if(a%b==0) retur…… 题解列表 2022年05月12日 0 点赞 0 评论 355 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 (Java代码) 摘要:解题思路:把不等于0的存入数组(感觉直接输出也行,不过Java也不在乎什么内存)注意事项:参考代码:import java.util.Scanner; public class Main { …… 题解列表 2022年05月12日 0 点赞 0 评论 379 浏览 评分:0.0
最直接法判断 摘要:解题思路:这是最直接的思路,将数字分离,求立方和相加,判断是不是相等,即可注意事项:水仙花是三位数,就是100到999,指定了范围参考代码:#include<stdio.h>int main(){ i…… 题解列表 2022年05月12日 0 点赞 0 评论 1042 浏览 评分:9.9
C++处理数字位数与输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100…… 题解列表 2022年05月12日 0 点赞 0 评论 343 浏览 评分:0.0