[编程入门]成绩评定-题解(Python代码) 摘要:解题思路:用if-elif-else结构注意事项:if,n开头都不要缩进。条件后要:else后也要:Python参考代码:n=int(input()) if n>100 or n<0: e…… 题解列表 2020年06月28日 0 点赞 0 评论 1718 浏览 评分:7.3
1008: [编程入门]成绩评定 摘要:解题思路:switch判断注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; …… 题解列表 2021年03月21日 0 点赞 0 评论 504 浏览 评分:7.3
【sor魔法再现】1008: 成绩评定---史上最最短AC代码,1行!python一题两解,"双一流"惊现江湖:字典推导,一键取值~lambda三元!直接打印 摘要:解题思路:【sor魔法再现】1008: 成绩评定---史上最最短AC代码,1行!python一题两解,"双一流"惊现江湖:字典推导,一键取值~lambda三元!直接打印注意事项:下面两行代码是两个独立…… 题解列表 2021年11月24日 0 点赞 0 评论 647 浏览 评分:7.3
if的运用比较简单,但是要注意格式 。 摘要:解题思路:if,分级注意事项:if后不加;小括号括起来条件,以防万一,最好加大括号。参考代码:#include<stdio.h>int main(){ int a; char A,B,C,D,…… 题解列表 2022年03月06日 0 点赞 1 评论 248 浏览 评分:7.3
[编程入门]成绩评定-题解(C语言代码) 摘要:成绩评定 switch (控制表达式){ case 常量: 语句 ...... case 常量: 语句 ...... default: 语句 …… 题解列表 2020年03月23日 0 点赞 0 评论 681 浏览 评分:7.0
[编程入门]成绩评定-题解(C++代码) 摘要:通俗易懂,当然还可以用其他的方法做会比我这个简单 代码如下:#include using namespace std; int main() { int a; cin>>…… 题解列表 2020年06月12日 0 点赞 0 评论 584 浏览 评分:7.0
1008: [编程入门]成绩评定(Python代码) 摘要:####**解题思路:** 1.**输入**百分制成绩 2.**判断**成绩等级 **if-elif-elif-elif-else** 3.**输出**等级 ####*…… 题解列表 2022年07月22日 0 点赞 0 评论 581 浏览 评分:7.0
[编程入门]成绩评定-题解(Python代码) 摘要:参考代码:grade = int(input())if grade >= 90: print('A')elif grade >= 80: print('B'…… 题解列表 2021年02月18日 0 点赞 0 评论 558 浏览 评分:6.7
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int score; char lever; scanf("%d",&score); switch(score/10){ case…… 题解列表 2017年07月16日 1 点赞 0 评论 1176 浏览 评分:6.0