题解列表

筛选

编写题解 2788: 晶晶赴约会,python超简单

摘要:解题思路:用列表注意事项:无参考代码:# 获取用户输入的日期(星期几)day = int(input())# 定义一个列表,包含晶晶的上课日busy_days = [1, 3, 5]# 判断输入的日期……

成绩评定用if的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x>=90) printf("A\n"); else if……

丢掉大脑!无脑分糖果!

摘要:解题思路:把糖果数目放到列表里,用最大值最小值判断是否全部相等注意事项:参考代码:n = int(input())list0 = list(map(int,input().split()))sum =……

2811 救援(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n,a,b,c;    double t1,t=0.0;    s……

使用sort,lamba和二维列表,简单易懂

摘要:解题思路:注意事项:参考代码:# 读取输入n = int(input())students = []  # 学生列表,每个元素为一个列表:[学号, 语文成绩, 总成绩]for i in range(n……

2812 (C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    double a,b,i,c=0;    scanf("%lf", &a);    b=a;    for……