2791题解(新手) 摘要:新手思路 ``` #include using namespace std; int main(){ int c = 0; int a; cin>>a; ch…… 题解列表 2023年11月02日 0 点赞 0 评论 302 浏览 评分:9.9
学习思想与方法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年11月02日 0 点赞 0 评论 259 浏览 评分:9.9
亲朋字符串(涉及到一个转换的问题) 摘要:问: int asciiSum=currentChar+nextChar;为什么是int类型而不是char类型,毕竟current和next都是char类型的啊?答:这是一个很好的…… 题解列表 2023年11月02日 1 点赞 0 评论 489 浏览 评分:9.9
3021:解决Pell数列的两种方法 摘要:解题思路:注意事项:递归题不给用递归不然会超时参考代码:递归法: #include<stdio.h>long long int pell(long long int n){ if(n==1) ret…… 题解列表 2023年11月03日 0 点赞 0 评论 722 浏览 评分:9.9
优质题解:N以内累加求和 摘要:``` #include using namespace std; int main(){ //下面是for循环 int n , sum = 0; cin>>n; for…… 题解列表 2023年11月03日 0 点赞 0 评论 405 浏览 评分:9.9
1141: C语言训练-百钱百坤问题 摘要:#百钱百鸡问题 ##我的代码如下 ``` #include using namespace std; int main(){ int x,y,z; …… 题解列表 2023年11月03日 0 点赞 2 评论 227 浏览 评分: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 评论 518 浏览 评分:9.9
平均值计算 摘要:解题思路:先把数输入,把输入的数求和,除以个数拿到平均值,找出比平均值大的数统计下来,然后输出注意事项:输入10个数参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2023年11月03日 0 点赞 0 评论 380 浏览 评分:9.9
参考c语言写的 摘要:def add(d, i, x, maxh): while i <= maxh + 1: d[i] += x i += i 题解列表 2023年11月03日 0 点赞 0 评论 293 浏览 评分:9.9
A+B python题解 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())print(a+b)//说什么内容字数太少,本来以为会考什么数字太长需要用到数组啥的,没想到这么简单…… 题解列表 2023年11月03日 0 点赞 0 评论 748 浏览 评分:9.9