HashMap中方法getOrDefault 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; import java.util.Map; import java.util.HashMap; public c…… 题解列表 2023年11月02日 0 点赞 0 评论 278 浏览 评分:9.9
2791题解(新手) 摘要:新手思路 ``` #include using namespace std; int main(){ int c = 0; int a; cin>>a; ch…… 题解列表 2023年11月02日 0 点赞 0 评论 276 浏览 评分:9.9
学习思想与方法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年11月02日 0 点赞 0 评论 235 浏览 评分:9.9
亲朋字符串(涉及到一个转换的问题) 摘要:问: int asciiSum=currentChar+nextChar;为什么是int类型而不是char类型,毕竟current和next都是char类型的啊?答:这是一个很好的…… 题解列表 2023年11月02日 1 点赞 0 评论 449 浏览 评分:9.9
3021:解决Pell数列的两种方法 摘要:解题思路:注意事项:递归题不给用递归不然会超时参考代码:递归法: #include<stdio.h>long long int pell(long long int n){ if(n==1) ret…… 题解列表 2023年11月03日 0 点赞 0 评论 684 浏览 评分:9.9
优质题解:N以内累加求和 摘要:``` #include using namespace std; int main(){ //下面是for循环 int n , sum = 0; cin>>n; for…… 题解列表 2023年11月03日 0 点赞 0 评论 378 浏览 评分:9.9
1141: C语言训练-百钱百坤问题 摘要:#百钱百鸡问题 ##我的代码如下 ``` #include using namespace std; int main(){ int x,y,z; …… 题解列表 2023年11月03日 0 点赞 2 评论 207 浏览 评分:9.9
判断能否被3、5、7整除 摘要: ``` #include using namespace std; int main() { int n; cin >> n; if (n % 3 == 0) cout …… 题解列表 2023年11月03日 0 点赞 0 评论 486 浏览 评分:9.9
平均值计算 摘要:解题思路:先把数输入,把输入的数求和,除以个数拿到平均值,找出比平均值大的数统计下来,然后输出注意事项:输入10个数参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2023年11月03日 0 点赞 0 评论 344 浏览 评分:9.9
参考c语言写的 摘要:def add(d, i, x, maxh): while i <= maxh + 1: d[i] += x i += i 题解列表 2023年11月03日 0 点赞 0 评论 263 浏览 评分:9.9