Python字典映射 摘要:score = int(input())number = score//10switcher = { 10: 'A', 9: 'A', 8: '…… 题解列表 2021年12月10日 0 点赞 0 评论 213 浏览 评分:0.0
switch处理和if~else if的简化处理 摘要:解题思路:本题属于条件判断类型的题目。首先可以想到的是if~else if ,我们既可以把条件设置为(<=xx&&>xx),再思考可以知道当我们设置了一个条件后,下面的条件就已经隐含了它的范围在上述条…… 题解列表 2022年01月21日 0 点赞 0 评论 208 浏览 评分:0.0
成绩评定 from beiqiao (C++) 摘要:#include<iostream> using namespace std; int main() { int grade; cin>>grade; switch(grade/10…… 题解列表 2022年01月23日 0 点赞 0 评论 152 浏览 评分:0.0
[编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d", &x); if (x >= 90) printf("A"); else…… 题解列表 2022年01月29日 0 点赞 0 评论 193 浏览 评分:0.0
[编程入门]成绩评定的三种方法 摘要:解题思路: 1. 先看题目,找出适合的方法,比如这的题目就和条件有关(分数和评级有关),因此可以使用if条件语句,if else嵌套,Switch语句来做此题. …… 题解列表 2022年04月01日 0 点赞 0 评论 344 浏览 评分:0.0
C语言Visual studio写法成绩评定题解{新手向} 摘要:解题思路:用else if注意事项:因为本人使用的Visual studio2022版本 在VS里 scanf是不允许被直接打出 需要加个_s 答题时删掉_s即可 答案以我VS写出来的为主 若有错误指…… 题解列表 2022年04月05日 0 点赞 0 评论 616 浏览 评分:0.0
1008: [编程入门]成绩评定 摘要:#include<stdio.h> int main() { int i; scanf("%d",&i); if(i>=90){printf("A");} …… 题解列表 2022年05月06日 0 点赞 0 评论 328 浏览 评分:0.0
1008: [编程入门]成绩评定 摘要:解题思路:这题直接暴力好吧注意事项:要加=,输出是大写参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n;…… 题解列表 2022年05月06日 0 点赞 0 评论 228 浏览 评分:0.0
[编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d",&n); if…… 题解列表 2022年05月07日 0 点赞 0 评论 220 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:#include <iostream> using namespace std; int a; int main() { cin>>a; switch(a/10){ case 10:co…… 题解列表 2022年05月07日 0 点赞 0 评论 183 浏览 评分:0.0