利润计算 -编译通过无误 摘要:解题思路:按照题目意思逐步写代码即可注意事项:参考代码:#include<stdio.h>int main(){ int n,m;//n为利润,m为应发奖金 scanf("%d",&n); if(n<…… 题解列表 2021年11月28日 0 点赞 0 评论 508 浏览 评分:0.0
C语言字符串反转(全网最短了) 摘要:解题思路:简单粗暴直接反转注意事项:从len-1开始反循环遍历参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; …… 题解列表 2021年11月28日 0 点赞 0 评论 582 浏览 评分:0.0
优质题解 实现自定义函数(超级详细) 摘要:解题思路: 首先通过拆分,可分为以下几步: 1.实现fact()函数 ,完成阶乘 阶乘可以看成1*2*3*..*n, 其中由1到n可以借用循环变量,…… 题解列表 2021年11月29日 0 点赞 13 评论 4310 浏览 评分:9.0
还是用列表来解决 摘要:解题思路:注意事项:参考代码:n = int(input())fenzi = [2]fenmu = [1]for i in range(1,n+1): fenzi.append(fenzi[i-…… 题解列表 2021年11月29日 0 点赞 0 评论 460 浏览 评分:0.0
1143: C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,flag=0; scanf("%d",&n); for(int i=2;i…… 题解列表 2021年11月29日 0 点赞 0 评论 658 浏览 评分:9.9
c语言萌新,简单易懂,希望有所帮助 摘要:解题思路:null注意事项:null参考代码:#include<stdio.h>int main(){ int str[20],i,len=0;double sum=0,avar=0; f…… 题解列表 2021年11月29日 0 点赞 0 评论 822 浏览 评分:9.9
又是用列表解决 摘要:解题思路:注意事项:参考代码:M,N = map(int,input().split())list = [M]for i in range(1,N+1): list.append(0.5*lis…… 题解列表 2021年11月29日 0 点赞 0 评论 430 浏览 评分:0.0
注意循环层数,在输入数组元素时就判断是否重复 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class SuiJi { public static v…… 题解列表 2021年11月29日 0 点赞 0 评论 480 浏览 评分:0.0
列表是无敌的 摘要:解题思路:注意事项:参考代码:a = int(input())b = []b.append(a)while True: c = (b[-1]+a/b[-1])/2 b.append(c) …… 题解列表 2021年11月29日 0 点赞 0 评论 555 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数-题解 摘要:类似哈希表的线性探测法,初始每个数组元素为0,每得到一个值就使对应的为1,这样就能避免重复的元素的(虽然这题没有),最后再扫描数组中非0的个数 ```c #include int main() …… 题解列表 2021年11月29日 0 点赞 0 评论 857 浏览 评分:0.0