5 条题解
-
2冉徵羽 LV 8 @ 2017-09-22 16:11:49
n=int(input())
if n>=90:
print("A")
elif n>=80:
print("B")
elif n>=70:
print("C")
elif n>=60:
print("D")
else:
print("E")
不要感谢我,我是雷锋。
(PS:记得把我删掉!) -
02019-04-14 09:26:20@
随随便便写个c++版玩玩
代码如下#include <iostream>
using namespace std;
int main()
{
int score;
cin >> score;
if(score >= 90)
{
cout << 'A';
}
else if(score >= 80 && score < 90)
{
cout << 'B';
}
else if(score >= 70 && score < 80)
{
cout << 'C';
}
else if(score >= 60 && score < 70)
{
cout << 'D';
}
else
{
cout << 'E';
}
return 0;
} -
02019-03-16 22:22:48@
a=int(input())
if a>=90:
print('A')
if a<=89 and a>=80:
print('B')
if a<=79 and a>=70:
print('C')
if a<=69 and a>=60:
print('D')
if a<60:
print('E') -
02017-09-21 11:12:19@
score=float(input())
if(score>= and score<=):
print("")
elif(<=score<):
print("")
elif(<=score<):
print("")
elif(<=score<):
print("")
else:
print("") -
-12019-02-27 20:25:37@
先拿C++写了一个确认正确再写的Python2333。
C++:#include<iostream>
using namespace std;
int main(){
int x;
cin>>x;
if(x>=90) cout<<"A";
else if(x>=80) cout<<"B";
else if(x>=70) cout<<"C";
else if(x>=60) cout<<"D";
else cout<<"E";
return 0;
}Python:
x=int(input())
if x>=90:
print('A')
elif x>=80:
print('B')
elif x>=70:
print('C')
elif x>=60:
print('D')
else:
print('E')
- 1
信息
- 难度
- 2
- 分类
- (无)
- 标签
- (无)
- 递交数
- 3094
- 已通过
- 815
- 通过率
- 26%
- 被复制
- 2
- 上传者