首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
mlx
2026年2月4日 21:06
成绩的等级 题解:
P1038
回复 0
|
赞 2
|
浏览 232
#include<iostream> using namespace std; int n; int main() { cin>>n; if(n<60) cout<<"E"<<endl; else if(n<=69) cout<<"D"<<endl; else if(n<=79) cout<<"C"<<endl; else if(n<=89) cout<<"B"<<endl; ...
xsw
2026年1月31日 10:02
成绩的等级 题解:
P1038
回复 0
|
赞 0
|
浏览 144
#include<iostream> using namespace std; int main() { int x; cin >> x; if (x > 90) cout << 'A' << endl; else if (x >= 80) cout << 'B' << endl; else if (x >= 70) cout << 'C' << endl; else if (x >= 60) cout <<...
曾不会
2026年1月26日 16:41
成绩的等级 题解:
P1038
回复 0
|
赞 2
|
浏览 269
这题作为复试题会不会太简单了 #include<stdio.h> int main() { int n; scanf("%d",&n); if(n>=90) { printf("A");  ...
yauqq
2026年1月23日 15:40
成绩的等级 题解:
P1038
回复 0
|
赞 1
|
浏览 231
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin >> n){ if(n >= 90) cout <<"A" <<endl; else if(n >= 80) cout << "B" <<endl; else if(n >= 70) cout << "C"<<endl; else if(n >= 60) ...
无名1
2025年6月23日 18:00
成绩的等级 题解:C++
P1038
回复 0
|
赞 2
|
浏览 678
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n>=90){ cout<<"A"<<endl; }else if(n>=80){ cout<<"B"<<endl; }else if(n>=70){ cout<<"C"<<endl; }else if(n>=60){ cout<<"D"<<...
jisuanji111
2025年2月18日 15:46
成绩的等级 题解:
P1038
回复 0
|
赞 2
|
浏览 1.5k
# include <bits/stdc++.h> using namespace std; int main(){ int score; cin >> score; if (score >= 90) cout << "A"; else if (score >= 80) &nb...
Candour
2024年5月4日 00:54
成绩的等级(选择分支结构) 题解:
P1038
回复 0
|
赞 4
|
浏览 1.4k
#include<bits/stdc++.h> using namespace std; int s; int main() { cin >> s; if(s >= 90) puts("A"); else if(s >= 80) puts("B"); else if(s >= 70) puts("C"); else if(s >= 60) puts("D"); else puts("E"); return 0; } &n...
carrot_huan
2024年2月7日 14:44
成绩的等级 题解:
P1038
回复 0
|
赞 2
|
浏览 1.5k
#include<bits/stdc++.h> using namespace std; int main() { int d; cin >> d; char r = 'A'; if (d >= 90) cout << r; else if (d >...
旅人丶oc
2023年3月24日 19:19
初学switch
P1038
回复 0
|
赞 21
|
浏览 3.6k
#include<stdio.h> int main(){ int n,x; scanf("%d",&n); x=n/10; //取十位数目的是获得0~9的自然数,然后对号入case switch(x){ &...
Hegel
2023年3月20日 21:15
成绩分级
P1038
回复 0
|
赞 3
|
浏览 3.1k
#include <iostream> using namespace std; int main() { int n; cin >> n; switch (n / 10) { case 10: cout << "A" << endl; break; case 9: cout << "A" << endl; break; case 8: cout << "B" << endl; break; case 7: co...
1
2
题目
成绩的等级
题解数量
16
发布题解
在线答疑
热门题解
1
初学switch
2
C语言
3
成绩的等级(选择分支结构) 题解:
4
成绩分级
5
成绩的等级 题解:C++
6
成绩的等级 题解:
7
成绩的等级 题解:
8
成绩的等级 题解:
9
成绩的等级 题解:
10
1038