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
2020-08-07 06:34:32
hha boi
2020-08-07 06:34:14
sonin uuganaa hha
2020-08-07 06:34:12
uugnaa shuu
2020-08-07 06:33:21
sonin uugna
2019-10-29 03:53:21
#include <iostream>

using namespace std;

int main(){
int a;
cin>>a;
if(a>89){
cout<<"A"<<endl;
}
if(79<a && a<90){
cout<<"B"<<endl;
}
if(69<a && a<80){
cout<<"C"<<endl;
}
if(59<a && a<70){
cout<<"D"<<endl;
}
if(a<59){
cout<<"F"<<endl;
}
return 0;
}
2019-10-27 10:54:51
#include <bits/stdc++.h>
using namespace std;
int main () {
int a;
cin>>a;
if(a>89&&a<=100) printf("A");
if(a>79&&a<90) printf("B");
if(a>69&&a<80) printf("C");
if(a>59&&a<70) printf("D");
if(a>=0&&a<60) printf("F");
}
2019-10-13 03:43:30
#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a>89)
{
printf("A");
}
else
{
if(a>79)
{
printf("B");
}
else
{

if(a>69)
{
printf("C");
}
else
{
if(a>59)
{
printf("D");
}
else
{
if(a<60)
{
printf("F");
}
}
}
}
}
}
2019-07-19 08:06:03
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout << ((a < 70) ? " D " : ((a < 80) ? " C " : ((a < 90) ? " B " : ((a >= 90) ? " A " : " "))));
return 0;
}
2019-04-01 05:50:29
#include <iostream>
using namespace std;

int main() {

int a;
cin>>a;
a=a/10;
switch(a){
case 1: cout<<"F"; break;
case 2: cout<<"F"; break;
case 3: cout<<"F"; break;
case 4: cout<<"F"; break;
case 5: cout<<"F"; break;
case 6: cout<<"D"; break;
case 7: cout<<"C"; break;
case 8: cout<<"B"; break;
case 9: cout<<"A"; break;
case 10: cout<<"A"; break;
default: cout<<"\n";
}

return 0;
}
2019-03-22 12:00:14
EZ2 HH
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.