题目 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split())x = []s = ma = 0for i in range(n): m = m / 2 x.ap…… 题解列表 2024年03月18日 0 点赞 1 评论 527 浏览 评分:6.0
百鸡百钱 捆绑销售 容易理解 #includeintmain(){intcock=100/5;//100块能买20只公鸡inthen=100/3;//100块可以买33只母鸡intchicken=100;//假设将三只雏鸡捆一起卖那么100块可以买100捆inti,j,k;for(i=0;i 题解列表 2024年03月18日 1 点赞 0 评论 840 浏览 评分:9.9
java实现哥德巴赫曾猜测凑字数凑字数凑字数凑字数凑字数凑字数 摘要:解题思路:利用欧几里得算法求素数,然后得到素数的列表,然后使用循环求出总结果注意事项:参考代码:import java.util.*; public class Main { publ…… 题解列表 2024年03月18日 0 点赞 0 评论 587 浏览 评分:0.0
2812 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,i,c=0; scanf("%lf", &a); b=a; for…… 题解列表 2024年03月18日 0 点赞 0 评论 502 浏览 评分:0.0
使用sort,lamba和二维列表,简单易懂 摘要:解题思路:注意事项:参考代码:# 读取输入n = int(input())students = [] # 学生列表,每个元素为一个列表:[学号, 语文成绩, 总成绩]for i in range(n…… 题解列表 2024年03月18日 0 点赞 0 评论 505 浏览 评分:0.0
2811 救援(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,b,c; double t1,t=0.0; s…… 题解列表 2024年03月18日 0 点赞 0 评论 597 浏览 评分:0.0
[编程入门]利润计算注意前面的计算要进行叠加,,, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); if(i<=100000) j=0.1*i; if(i…… 题解列表 2024年03月18日 0 点赞 0 评论 485 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or …… 题解列表 2024年03月18日 0 点赞 0 评论 422 浏览 评分:0.0
丢掉大脑!无脑分糖果! 解题思路:把糖果数目放到列表里,用最大值最小值判断是否全部相等注意事项:参考代码:n=int(input())list0=list(map(int,input().split()))sum=0whilemax(list0)-min(list0)!=0:list1=[]foriinrange(n-1): 题解列表 2024年03月18日 0 点赞 0 评论 593 浏览 评分:0.0
成绩评定用if的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x>=90) printf("A\n"); else if…… 题解列表 2024年03月18日 0 点赞 0 评论 734 浏览 评分:0.0