Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7117 - Тоон үнэлгээнээс үсгэнд

Өгөгдсөн тоон үнэлгээг үсгэн үнэлгээнд шилжүүл.

Input

Тоон үнэлгээ 100-аас ихгүй эерэг бүхэл тоогоор өгөгдөнө.

Output

Тоон үнэлгээ 89-өөс их бол А, 79-өөс их В, 69-өөс их бол С, 59-өөс их бол D бусад тохиолдолд F үсгэн дүнг хэвлэ.

Example

Input:
84

Output:
В

Нэмсэн:Bataa
Огноо:2011-06-20
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2025-04-11 17:09:08
if n>89 :
print("A")
elif n>79 :
print("B")
elif n>69 :
print("C")
elif n>59 :
print("D")
else :
print("F")
2025-02-26 06:51:05
int main() {
int n;
cin>>n;
if(n>=89){
cout<<"A";
return 0;
}
if(n>=79){
cout<<"B";
return 0;
}
if(n>=69){
cout<<"C";
return 0;
}
if(n>=59){
cout<<"D";
return 0;
}
else{
cout<<"F";
}
}
2025-02-11 03:48:38
z

Last edit: 2025-02-11 03:48:59
2025-02-04 02:46:08
247
2024-12-03 10:51:52
hhhhhhaaa

Last edit: 2024-12-03 10:52:08
2024-11-06 12:26:50

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀⣀⣀⡄⢦⡤⠠⠤⠤⠤⠶⡦⢤⡀⠀⠀⠀⣤⢴⡞⠚⣖⠒⠒⠒⠒⠒⠂⠠⠤⠄⢠
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⣺⡽⠛⠉⠙⢋⣼⣷⡾⢳⡀⠀⠀⠀⠀⢠⣦⣌⠳⡄⠀⣼⣿⢷⡶⠾⠆⣰⡾⠿⠻⠾⠟⠚⠓⡼
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⢾⠁⡜⠁⣀⠄⢀⣴⠋⢰⣿⣍⡂⠁⠀⣠⠟⠀⠸⡌⠛⢟⣿⣷⠿⣇⢀⣤⣀⣀⣍⡉⠠⣄⣠⣤⣄⣍⠈
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡃⠀⢸⡴⠊⠀⢠⠋⡇⠀⢠⡿⠳⡁⠀⠀⠻⢖⣠⠀⠹⠲⣈⣿⣯⠀⢸⠈⢙⡉⠉⠉⠉⠀⠈⠠⣤⠀⠠⠖
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡏⡷⠀⠘⠀⠀⠀⠇⠀⠁⠀⠘⢿⣦⠀⠀⠀⠀⠀⣹⣦⣄⠀⠹⣿⠟⠠⢬⡇⠘⡷⠶⠆⠰⠟⠟⠛⠃⢀⣰⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠶⣿⠷⣄⠀⠀⠀⣈⡄⠀⠀⠀⠀⡸⢙⣦⣤⣤⣴⣚⡛⠙⠚⢷⣶⠁⠀⠀⠀⠙⠤⠒⠓⠓⠒⠒⠊⢉⣉⠥⠤⠂
⠀⠀⠀⠀⠤⠀⠀⠀⣀⣬⣦⣼⡙⡆⠀⠙⡏⠀⠀⠀⣀⡴⠟⠛⠛⠛⠛⠻⠿⣿⣶⣬⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠉⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣠⣴⣾⣿⠿⠛⠳⡇⠘⠦⣀⣈⣷⣠⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀
⠀⠀⠀⣠⣿⣿⠟⠋⠀⢀⡀⠤⠙⢛⣷⠾⠛⠻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣷⡀⠀⠀⣀⡤⢤⣀⣀⠘⡄⠀⣤⣀⣀
⠀⠀⣴⣿⡿⠁⠀⢀⠔⠉⠀⠀⠀⣾⣃⣀⣀⣤⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣟⣛⣿⡀⠘⠯⠽⠷⣿⣿⠋⠀⠉
⠀⢸⣿⡟⠀⠀⢠⠎⠀⠀⠀⠀⠀⠻⣷⣿⣟⣹⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣷⠀⠙⡆⠀⠀⢾⠻⣏⠀⠀⠀
⠀⣾⡿⠖⠀⠀⠊⠀⠀⠀⠀⠀⠀⠀⠈⠙⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⡁⡄⠀⡇⠀⣰⡏⠀⣿⢆⠀⠀
⠀⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠀⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣷⣀⣴⣷⣴⣿⠟⠉⠹⠾⠟⠛
⠀⢹⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣆⠀⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡏⠉⠭⠤⠤⠴⠒⠒⢒⠒⠋⠉
⠀⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣄⠘⣆⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣟⣀⣀⣀⠤⠤⠤⢴⡶⠟⠒⠚⠛
⠀⠘⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⢬⡾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠁⠀⠀⠀⠀⢠⡖⠉⠀⠀⠀⠀⠀
⠀⠀⠈⢷⠀⠀⠀⠀⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⢳⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠈⢧⠀⠀⠀⠀⠑⢤⡀⠀⠀⠀⠀⠀⠀⠀⠘⡄⠀⠀⠀⠀⠀⡠⠀⠀⠀⠀⠀⠀⠀⠀⡜⠀⠀⣀⣀⣀⣀⠠⠼⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠈⠳⡀⠀⠀⠀⠀⠉⠲⢄⡀⠀⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⣰⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢻⢦⡀⠀⠀⠀⠀⠀⠈⠒⠄⠀⠀⠀⣸⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣈⡇⠙⢦⣀⠀⠀⠀⠀⠀⠀⢀⣠⠼⢻⢻⣟⠲⢤⣤⣤⣤⣤⡤⠤⠖⢻⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⢀⡠⠔⠚⠉⠀⢱⠀⠈⣿⣷⡤⢤⡤⠴⠾⡛⠁⣴⠃⣸⣿⡗⠀⠀⠀⠀⠀⠀⠀⠀⢨⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠉⠀⠀⠀⠀⠀⠀⠸⡄⠀⣿⠈⣷⣄⣀⠀⠀⠙⠞⠁⡼⣻⣿⣧⡰⡄⠀⠀⠀⢀⣤⣴⣟⣹⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
2024-10-28 16:48:14
#include <bits/stdc++.h>
using namespace std ;
int main (){
int a, A,B,C,F,D;
cin>>a;
if (a>=89){
cout<<"A"<<endl;
}else{
if(a>=79){
cout<<"B"<<endl;
}else{
if(a>=69){
cout<<"C"<<endl;
}else{
if(a>=59){
cout<<"D"<<endl;
}else{
if(a>=0){
cout<<"F"<<endl;
}
}
}
}
}















return 0;

} huultsgaa huurnuude
2024-10-07 13:48:45
#include <iostream>
using namespace std;

int main() {
int n;
cin>>n;
if(n>=89){
cout<<"A";
return 0;
}
if(n>=79){
cout<<"B";
return 0;
}
if(n>=69){
cout<<"C";
return 0;
}
if(n>=59){
cout<<"D";
return 0;
}
else{
cout<<"F";
}
}
sigma
2024-10-07 13:10:28
cock

Last edit: 2024-10-07 13:13:56
2024-05-27 06:20:39
I got lego pen :D
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.