[编程入门]猴子吃桃的问题(C语言代码)简单易懂 摘要:解题思路: 一天吃剩的加一再乘二就变成吃之前的注意事项:控制for循环次数参考代码:#include<stdio.h>int main(){ int n,a=1,h=2; scanf("%d",&n)…… 题解列表 2021年11月05日 0 点赞 0 评论 676 浏览 评分:9.9
用c lass 和 循环一维 摘要:解题思路:注意事项:参考代码:class people: def __init__(self,num): self.num=num self.J=Truen=int(…… 题解列表 2021年11月05日 0 点赞 0 评论 901 浏览 评分:9.9
[编程入门]三个数字的排序------(Python) 摘要:利用Python函数: sort-----对列表进行排序 ```python team=list(map(int,input().split())) team.sort() for i in…… 题解列表 2021年11月05日 0 点赞 0 评论 1136 浏览 评分:9.9
简单易懂的sn求和 摘要:解题思路:如下代码注意事项:参考代码:#include<stdio.h>#include<math.h>int main() { int a, s, n, i, b; a = 2; s = 0;…… 题解列表 2021年11月05日 0 点赞 0 评论 462 浏览 评分:9.9
二级c语言-平均值计算--用Python求解----(Python) 摘要:通过sum函数求和用len计算个数同过for循环遍历判断大于平均值加1 ```python t=list(map(int,input().split())) n=0 avg=sum(t)/le…… 题解列表 2021年11月05日 0 点赞 0 评论 1500 浏览 评分:9.9
二级c语言-计负均正--用Python求解----(Python) 摘要:遍历列表统计大于0的个数求平均值小于0的个数 ```python t=list(map(int,input().split())) s=list(map(int,input().split())…… 题解列表 2021年11月05日 0 点赞 0 评论 955 浏览 评分:9.9
复习一下switch分支语句 摘要:解题思路:注意事项:参考代码:#include<iostream>int s(double );int main(){ using std::cout; using std::cin; doub…… 题解列表 2021年11月06日 0 点赞 0 评论 674 浏览 评分:9.9
1121: C语言训练-8除不尽的数 摘要:解题思路:if语句注意事项:参考代码:#include<stdio.h>int main(){ int n; for(n=9;n<2000;n++) { if(n%8==1) i…… 题解列表 2021年11月06日 0 点赞 0 评论 708 浏览 评分:9.9
1087我的主宰好困C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a,b;while (~scanf("%d %d",&a,&b)) { if (a!=0||b!=0…… 题解列表 2021年11月06日 0 点赞 1 评论 649 浏览 评分:9.9
对于初学者来说这个比较合适 摘要:解题思路:注意事项:参考代码#include<math.h>int main(){ double M,N; double h,s; scanf("%lf%lf",&M,&N); h=pow(0.5,N…… 题解列表 2021年11月06日 0 点赞 0 评论 463 浏览 评分:9.9