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.|

RGB7116 - 5-аас онц руу

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

Input

Тоон дүн нь 2,3,4,5-ын зөвхөн аль нэгээр өгөгдөнө.

Output

5 байвал "Onts", 4 байвал "Sain", 3 байвал "Dund", 2 байвал "Muu" гэж хэвлэ.

Example

Input:
4
Output:
Sain

Нэмсэн: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-05-06 06:59:31
#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, b, c, d;

cin >> a;
if (a == 5) {
cout << "Onts" << endl;
} else {
if (a == 4) {
cout << "Sain" << endl;
} else {
if (a == 3) {
cout << "Dund" << endl;
} else {
if (a == 2) {
cout << "Muu" << 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());
}
2025-03-30 09:56:21
murun homeless
2025-02-26 06:45:45
OOROOOOOOOO ZLLLLL
2024-12-11 12:47:59
if() { } elseif() { } else {}
2024-11-28 08:57:26
cc

Last edit: 2024-11-28 08:58:10
2024-11-28 08:56:42
.

Last edit: 2024-11-28 08:57:44
2024-11-25 06:14:50
#include <iostream>
using namespace std;

int main() {
int a;
cin>>a;
if(a==5){
cout<<"Onts"<<endl;
}
if(a==4){
cout<<"Sain"<<endl;
}
if(a==3){
cout<<"Dund"<<endl;
}
if(a==2){
cout<<"Muu"<<endl;
}
}
2024-11-21 13:57:49
zl2
2024-11-21 13:57:49
zl2
2024-11-21 13:57:48
zl2
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.