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
2024-04-15 03:41:37
gangmemberiin baruun gar
2024-03-29 03:24:33
eeewwwwwwwwwwwwwwwww otgonbayraaaa
2024-03-29 03:24:18
otgonbayr mal untahaa boli zavaan yum be
2024-03-28 03:32:02
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a;

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 {
cout << "F" << endl;
}
}
}
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
anir
2024-03-21 03:28:21
RGB7117 - Тоон үнэлгээнээс үсгэнд
Өгөгдсөн тоон үнэлгээг үсгэн үнэлгээнд шилжүүл.

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

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

Example
Input:
84

Output:
В
2024-02-23 14:28:14
#include <iostream>
using namespace std;

int main() {

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

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";
}
}
2024-02-21 06:58:49
yuch oilgohgui bj olimpiadad orcih uyd
2024-01-25 05:51:31
olympiadtai humusdn az jargal huseye
2024-01-09 04:52:21
#include <bits/stdc++.h>
int a,b,c,d,m,i,e;
using namespace std;

int main() {
scanf("%d",&e); // cin>>a>>b>>c;
if(e>=89) {cout<<"A"<<endl;}
if(e>=79&e<89) {cout<<"B"<<endl;}
if(e>=69&e<79) {cout<<"C"<<endl;}
if(e>=59&e<69) {cout<<"D"<<endl;}
if(e<59) {cout<<"F"<<endl;}
//if (a==2) printf("Muu");
// else cout<<"Unasan"<<endl;
//if (a==3) printf("Dund");
// else cout<<"NO"<<endl;
//if (a==4) printf("Sain");
//if (a==5) printf("Onts");
// else cout<<"NO"<<endl;
//printf("%d",i);
return 0;
}
//Input:
//4
//Output:
//Tentssen
2024-01-02 07:33:30
#include<stdio.h>
int main () {
int a;
scanf("%d",&a);
switch(a/10){
case 9: printf("A"); break;
case 8: printf("B"); break;
case 7: printf("C"); break;
case 6: printf("D"); break;
default: printf("F"); break;

}
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.