编写题解 2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int x,n;cin>>x>>n;double s=x*1.…… 题解列表 2024年06月02日 0 点赞 0 评论 186 浏览 评分:0.0
算法思维弱,尽力了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void sc (int a,int b, int c){ cout << a…… 题解列表 2024年06月03日 0 点赞 0 评论 236 浏览 评分:0.0
[ 指针 ]自定义函数之数字后移 摘要:解题思路:类似循环链表,用指针指向数组尾,在把数据后拉注意事项:参考代码:#includevoid Sort(int *a,int n,int s);void Input(int *a,int n);…… 题解列表 2024年06月03日 0 点赞 0 评论 151 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年06月03日 0 点赞 0 评论 275 浏览 评分:0.0
自由下落的距离计算(c语言) 摘要:解题思路:注意事项:这个共经过多少米是指从开始到落地所经过的点,而非到落地反弹后的点参考代码:#include <stdio.h> int main(){ int n; float high…… 题解列表 2024年06月03日 0 点赞 0 评论 116 浏览 评分:0.0
猴子吃桃的问题(c语言) 摘要:注意事项:猴子是先吃一半再吃一个,所以我们需要先加一个再乘二。参考代码:#include <stdio.h> int main(){ int n,sum=1; scanf("%d",&n);…… 题解列表 2024年06月03日 0 点赞 0 评论 276 浏览 评分:0.0
迭代法求平方根(c语言) 摘要:解题思路和注意事项:迭代法公式:求a的平方根的迭代公式为: X[n+1]=(X[n]+a/X[n])/2 要求前后两次求出的差的绝对值少于0.00001。迭代法是不断重复,每次迭代出的值是不断逼近所求…… 题解列表 2024年06月03日 0 点赞 0 评论 237 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:def lmjp(a,b): print(a+b)a = input()b = input()lmjp(a,b)…… 题解列表 2024年06月03日 0 点赞 0 评论 180 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def tiqu(a): for i in a: if i in b: print(i,end='')a = i…… 题解列表 2024年06月03日 0 点赞 0 评论 112 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fenli(a): for i in a: print(i,end=' ')a = input()fenli(a)…… 题解列表 2024年06月03日 0 点赞 0 评论 256 浏览 评分:0.0