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
2022-02-28 16:40:38
#include<stdio.h>
main()
{ int a;
scanf("%d",&a);
if(1<=a&&a<=100)
if(a>89)
printf("A");
else
if(79<a&&a<=89)
printf("B");
else
if(69<a&&a<=79)
printf("C");
else
if(59<a&&a<=69)
printf("D");
else
if(1<=a&&a<=59)
printf("F");
return 0;
}
2021-11-20 16:28:24
duu sonsood hiiwel iluu sain hiih um bna
2021-10-19 12:48:55
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if (a >= 89) {
System.out.println("A");
} else if (a >= 79) {
System.out.println("B");
} else if (a >= 69) {
System.out.println("C");
} else if (a >= 59) {
System.out.println("D");
} else {
System.out.println("F");
}
}
2021-09-28 14:49:57
#include <stdio.h>

int main()
{
int x;
scanf("%d", &x);

if(100<=x && x>=89)
printf("A");
else if(88>=x && x>=79)
printf("B");
else if(78>=x && x>=69)
printf("C");
else if(68>=x && x>=59)
printf("D");
else if(59>x)
printf("F");

}
2021-03-28 15:08:38
#include<stdio.h>
#include<stdlib.h>
#include <iostream>
#include <cmath>
main() {

int a;
scanf("%d",&a);
if (a<=100&&a>=89)
printf("A");
if (a<=88&&a>=79)
printf("B");
if (a<=78&&a>=69)
printf("C");
if (a<=68&&a>=59)
printf("D");
if (a<58)
printf("F"); } //84 gengvvvt B gn

Last edit: 2021-03-28 15:23:48
2021-03-07 13:33:20


Last edit: 2021-03-07 13:33:43
2020-12-10 11:02:23
https://www.y8.com/games/city_car_stunt_3
2020-11-22 05:24:54
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
if (a<=100)
if (a>=89)
cout<<"A";
if (a<=88)
if (a>=79)
cout<<"B";
if (a<=78)
if (a>=69)
cout<<"C";
if (a<=68)
if (a>=59)
cout<<"D";
if (a<58)
cout<<"F";
return 0;
}
yg zov bodolt
2020-11-06 13:37:04
int a;
scanf("%d",&a);
if (a<=100)
if (a>=89)
printf("A");
if (a<=88)
if (a>=79)
printf("B");
if (a<=78)
if (a>=69)
printf("C");
if (a<=68)
if (a>=59)
printf("D");
if (a<58)
printf("F"); HUULTSGAA
2020-10-30 01:43:12
#include <iostream>
using namespace std;
int main(){
int a ;
cin>>a;
if(a<=100){
if(a>=90){
cout<<"A";
}
}
if(a<=89){
if(a>=80){
cout<<"B";
}
}
if(a<=79){
if(a>=70){
cout<<"C";
}
}
if(a<=69){
if(a>=60){
cout<<"D";
}
}
if(a<=59){
cout<<"F";
}
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.