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

RGB7106 - Үржвэр 5

Өгөгдсөн 4 тооны 5-аас бага тоонуудын үржвэрийг ол. 5-аас бага тоо ядаж 1 байгаа.

Input

Нэг мөрөнд Int төрлийн 4 тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

Үржвэр

Example

Input:
3 6 2 4

Output:
24

Нэмсэн:Bataa
Огноо:2011-05-24
Хугацааны хязгаарлалт: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-05-22 10:25:24
#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;
cin >> b;
cin >> c;
cin >> d;
if (a < b) {
if (a < c) {
if (a < d) {
cout << a << endl;
2024-05-19 08:34:18
int[] arr = new int[] { 3, 6, 2, 4 };
int sum = 1;
for (int i = 0; i < arr.length; i++) {
if (arr[i] < 5) {
sum *= arr[i];
}
}
System.out.println(sum);
2024-05-10 06:38:40
sigam

Last edit: 2024-05-10 06:39:34
2024-05-10 06:37:48
⣈⠒⢿⣦⣀⡀⠀⠀⠀⠀⠀⠸⣦⣑⢿⣦⡀⠀⢀⣿⢊⠷⠰⠜⠋⠒⠒⠒⠀⠐⠤⠤⣴⠞⣱⣻⣷⡶⠋⢀⠔⠋⠀⠀⠀⠀⠀⠀⠀⠀
⠛⠿⣶⣬⣙⡻⢷⣶⣦⣄⡀⠀⠈⢻⣧⣼⣿⠿⠛⠉⠀⠀⡀⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⢈⡿⠋⣠⣴⡟⠀⠀⠀⠀⠀⢀⣀⡤⠔⢊
⠀⠀⠀⠉⠙⠛⠷⣦⣝⡻⢿⣶⣤⣴⣿⡿⠁⠀⢀⠀⠀⡀⠐⠒⡀⠈⡔⠀⠂⢌⡃⠠⠀⠰⠋⠀⠀⠉⠈⠆⡀⣀⣤⠴⠚⡋⠡⠔⠊⠁
⣀⣀⠀⠀⠀⠀⠀⠀⠉⠻⢷⣶⣯⡿⠋⠀⠀⡐⠀⠠⠁⠐⠈⢫⣁⠰⠤⢘⡰⠎⢄⠂⠁⠀⠀⠀⠀⠀⠀⠀⠙⣡⡴⠖⠋⢀⠒⡒⢆⡀
⠉⠉⠙⠛⠒⠞⠿⠷⢶⣦⣴⡿⠋⠀⠀⠀⡔⠀⠠⠑⠀⠌⠐⡀⢻⡴⢀⡖⢉⡒⠈⠀⢠⠈⠐⠀⠂⠠⠀⠀⠀⠰⣄⠠⡁⠀⠀⠀⠂⠉
⠉⠀⠀⠒⠂⠤⢤⣤⣤⣤⠏⠀⠀⠀⠀⠁⠀⠠⠁⡐⠈⠀⠠⠐⠈⢴⡜⠛⠀⢀⡰⣎⢳⡇⠏⠰⠂⠁⠀⠀⠀⠀⢬⡀⠀⠄⠀⠀⠀⣀
⣀⣀⣀⣤⣤⡴⢶⣿⣯⠀⠀⠀⠀⢀⠀⠄⠂⠠⠄⢀⠀⠀⠀⠀⡐⡀⠐⠤⣞⣉⡀⣄⢀⣄⢠⡐⠤⠀⢡⠀⠀⠀⢸⣿⡿⠶⣡⢦⡱⡞
⠲⠶⠶⠶⠶⠶⢿⣿⣿⠀⠀⠀⠀⠀⡌⢠⡰⣥⡶⣢⡐⠀⠄⠐⠰⢯⣷⣤⡀⠙⠛⢈⠘⡻⡄⡗⠈⠁⡀⠄⠈⠀⣸⣟⡃⢀⠀⠉⠁⠀
⠀⠀⠀⠀⠀⠀⢠⣿⡇⠀⠀⡀⠀⠘⡃⠸⠅⢉⡴⠁⢀⠁⠂⢶⠻⡷⠾⣍⣛⠁⣠⠄⡀⢀⠀⠀⠄⢁⣠⠀⠄⠀⣿⣶⣮⣭⣍⣉⣓⠒
⠀⠀⣀⣠⣤⣶⣿⣿⠀⣠⠐⠀⡈⠥⣰⠆⠙⢀⡰⠌⠠⣖⣳⡾⣿⡷⡶⡞⠌⣴⣣⠀⢳⡠⠈⠄⠂⣼⠇⠀⠀⢠⣿⣿⣧⣈⠁⠉⠁⠈
⡾⢟⣛⣭⣵⣶⣿⣟⠀⠁⡀⢆⡐⠀⣁⡤⠚⠝⢂⡛⠥⣮⣽⡟⣁⢍⣡⠶⡆⠀⢥⢃⠀⠡⠴⡀⢢⣿⠂⠀⠀⣼⣷⣭⡙⠻⢷⣶⣄⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣤⡀⠉⣩⣴⠾⣍⣤⡀⠈⠌⡛⠇⡈⠴⢻⡇⠚⠉⡃⠠⠄⠂⠸⠟⠅⠠⣰⠟⠁⠀⡀⠰⠟⣹⣿⠿⢿⣶⣦⣍⡃
⣿⠻⢩⠓⢯⣿⠿⠟⣫⣵⣾⣿⣧⠏⠑⠢⠽⣿⣷⣒⣶⣿⣷⣶⡆⣤⣤⣐⠀⢡⡀⣅⠈⠁⡴⠃⢀⣄⡽⢛⣧⡀⢏⣿⣧⡀⠀⠉⠙⠛
⣇⠃⠀⠈⠀⠀⣴⣿⣿⢯⡿⢰⣿⣿⣶⣦⡄⣴⣼⣿⡿⣿⣿⣿⣷⣳⣿⣿⣆⠈⣣⢸⣄⠀⢰⣊⣿⣾⠠⣽⣿⢿⣷⣌⡻⢿⣦⣀⠀⠀
⠃⠀⠀⠀⢀⠀⣖⣻⣿⢸⠇⣼⣿⣿⣿⣿⣍⣳⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣜⣻⡆⢿⣦⢀⢳⣿⣿⣾⡿⣿⣿⠋⠻⢿⣦⡙⠻⣧⣄
⣶⣿⣝⡾⣴⣫⣾⣿⣿⡇⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣟⣿⡸⣿⢦⣹⣿⣳⣿⣼⡿⠃⠀⠀⠀⠈⠻⢷⣌⠹
⠛⠻⣿⣿⣿⣟⣿⠟⢹⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣟⢾⣹⣇⢹⣿⠒⢿⢿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠻⢷
⠀⠀⠀⠉⠉⠉⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣯⢿⣹⣎⡷⣿⡆⠻⣴⠀⢸⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈
⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣟⡉⣿⣯⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⢯⣷⣻⣞⣯⠷⣏⣾⣿⢿⡄⣿⡀⡼⠿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡷⣟⣾⣽⣻⣽⡾⣣⣾⡇⠸⣿⣽⣆⠻⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⡟⢾⣿⣿⣟⣿⣿⣿⣿⣿⣿⣿⡿⣯⢿⣟⣷⣻⡾⣋⣶⣿⣿⣿⡀⢿⣿⣿⣧⣍⠻⣦⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣷⢰⣶⣬⣿⣿⣿⣿⣿⣿⡿⣯⣿⣽⣿⡾⠟⣡⣶⣿⣿⣿⣯⢿⣇⠘⣿⣿⣿⣾⣷⣎⠿⣧⣄⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣧⡹⢿⣿⣿⣿⣿⣿⣿⡿⠿⠛⢋⣁⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡄⠸⣿⢿⣿⣿⣾⣷⣞⡽⢿⣦⡀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣶⣽⣏⣿⣿⣯⢽⣿⠉⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⢿⣇⠀⠹⣇⡺⣟⣿⣿⣿⣷⣏⡿⣿⣆
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⢺⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣭⢿⡿⠀⠀⢿⣷⢯⣿⣿⣿⣿⣿⣿⣾⡽
2024-05-08 10:35:57
#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, i;

cin >> a;
cin >> b;
cin >> c;
cin >> d;
i = 1;
if (a < 5) {
i = i * a;
}
if (b < 5) {
i = i * b;
}
if (c < 5) {
i = i * c;
}
if (d < 5) {
i = i * d;
}
cout << i << endl;
return 0;
}
huul pzdamin
2024-04-15 04:43:59
#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, i;

cin >> a;
cin >> b;
cin >> c;
cin >> d;
i = 1;
if (a < 5) {
i = i * a;
}
if (b < 5) {
i = i * b;
}
if (c < 5) {
i = i * c;
}
if (d < 5) {
i = i * d;
}
cout << i << 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());
}
2024-04-15 03:46:57
niggeeeer

Last edit: 2024-04-15 04:25:39
2024-04-08 03:51:20
copy master anir
2024-04-08 03:37:08
⣈⠒⢿⣦⣀⡀⠀⠀⠀⠀⠀⠸⣦⣑⢿⣦⡀⠀⢀⣿⢊⠷⠰⠜⠋⠒⠒⠒⠀⠐⠤⠤⣴⠞⣱⣻⣷⡶⠋⢀⠔⠋⠀⠀⠀⠀⠀⠀⠀⠀
⠛⠿⣶⣬⣙⡻⢷⣶⣦⣄⡀⠀⠈⢻⣧⣼⣿⠿⠛⠉⠀⠀⡀⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⢈⡿⠋⣠⣴⡟⠀⠀⠀⠀⠀⢀⣀⡤⠔⢊
⠀⠀⠀⠉⠙⠛⠷⣦⣝⡻⢿⣶⣤⣴⣿⡿⠁⠀⢀⠀⠀⡀⠐⠒⡀⠈⡔⠀⠂⢌⡃⠠⠀⠰⠋⠀⠀⠉⠈⠆⡀⣀⣤⠴⠚⡋⠡⠔⠊⠁
⣀⣀⠀⠀⠀⠀⠀⠀⠉⠻⢷⣶⣯⡿⠋⠀⠀⡐⠀⠠⠁⠐⠈⢫⣁⠰⠤⢘⡰⠎⢄⠂⠁⠀⠀⠀⠀⠀⠀⠀⠙⣡⡴⠖⠋⢀⠒⡒⢆⡀
⠉⠉⠙⠛⠒⠞⠿⠷⢶⣦⣴⡿⠋⠀⠀⠀⡔⠀⠠⠑⠀⠌⠐⡀⢻⡴⢀⡖⢉⡒⠈⠀⢠⠈⠐⠀⠂⠠⠀⠀⠀⠰⣄⠠⡁⠀⠀⠀⠂⠉
⠉⠀⠀⠒⠂⠤⢤⣤⣤⣤⠏⠀⠀⠀⠀⠁⠀⠠⠁⡐⠈⠀⠠⠐⠈⢴⡜⠛⠀⢀⡰⣎⢳⡇⠏⠰⠂⠁⠀⠀⠀⠀⢬⡀⠀⠄⠀⠀⠀⣀
⣀⣀⣀⣤⣤⡴⢶⣿⣯⠀⠀⠀⠀⢀⠀⠄⠂⠠⠄⢀⠀⠀⠀⠀⡐⡀⠐⠤⣞⣉⡀⣄⢀⣄⢠⡐⠤⠀⢡⠀⠀⠀⢸⣿⡿⠶⣡⢦⡱⡞
⠲⠶⠶⠶⠶⠶⢿⣿⣿⠀⠀⠀⠀⠀⡌⢠⡰⣥⡶⣢⡐⠀⠄⠐⠰⢯⣷⣤⡀⠙⠛⢈⠘⡻⡄⡗⠈⠁⡀⠄⠈⠀⣸⣟⡃⢀⠀⠉⠁⠀
⠀⠀⠀⠀⠀⠀⢠⣿⡇⠀⠀⡀⠀⠘⡃⠸⠅⢉⡴⠁⢀⠁⠂⢶⠻⡷⠾⣍⣛⠁⣠⠄⡀⢀⠀⠀⠄⢁⣠⠀⠄⠀⣿⣶⣮⣭⣍⣉⣓⠒
⠀⠀⣀⣠⣤⣶⣿⣿⠀⣠⠐⠀⡈⠥⣰⠆⠙⢀⡰⠌⠠⣖⣳⡾⣿⡷⡶⡞⠌⣴⣣⠀⢳⡠⠈⠄⠂⣼⠇⠀⠀⢠⣿⣿⣧⣈⠁⠉⠁⠈
⡾⢟⣛⣭⣵⣶⣿⣟⠀⠁⡀⢆⡐⠀⣁⡤⠚⠝⢂⡛⠥⣮⣽⡟⣁⢍⣡⠶⡆⠀⢥⢃⠀⠡⠴⡀⢢⣿⠂⠀⠀⣼⣷⣭⡙⠻⢷⣶⣄⠀
⣿⣿⣿⣿⣿⣿⣿⣿⣤⡀⠉⣩⣴⠾⣍⣤⡀⠈⠌⡛⠇⡈⠴⢻⡇⠚⠉⡃⠠⠄⠂⠸⠟⠅⠠⣰⠟⠁⠀⡀⠰⠟⣹⣿⠿⢿⣶⣦⣍⡃
⣿⠻⢩⠓⢯⣿⠿⠟⣫⣵⣾⣿⣧⠏⠑⠢⠽⣿⣷⣒⣶⣿⣷⣶⡆⣤⣤⣐⠀⢡⡀⣅⠈⠁⡴⠃⢀⣄⡽⢛⣧⡀⢏⣿⣧⡀⠀⠉⠙⠛
⣇⠃⠀⠈⠀⠀⣴⣿⣿⢯⡿⢰⣿⣿⣶⣦⡄⣴⣼⣿⡿⣿⣿⣿⣷⣳⣿⣿⣆⠈⣣⢸⣄⠀⢰⣊⣿⣾⠠⣽⣿⢿⣷⣌⡻⢿⣦⣀⠀⠀
⠃⠀⠀⠀⢀⠀⣖⣻⣿⢸⠇⣼⣿⣿⣿⣿⣍⣳⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣜⣻⡆⢿⣦⢀⢳⣿⣿⣾⡿⣿⣿⠋⠻⢿⣦⡙⠻⣧⣄
⣶⣿⣝⡾⣴⣫⣾⣿⣿⡇⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣟⣿⡸⣿⢦⣹⣿⣳⣿⣼⡿⠃⠀⠀⠀⠈⠻⢷⣌⠹
⠛⠻⣿⣿⣿⣟⣿⠟⢹⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣟⢾⣹⣇⢹⣿⠒⢿⢿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠻⢷
⠀⠀⠀⠉⠉⠉⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣯⢿⣹⣎⡷⣿⡆⠻⣴⠀⢸⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈
⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣟⡉⣿⣯⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⢯⣷⣻⣞⣯⠷⣏⣾⣿⢿⡄⣿⡀⡼⠿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡷⣟⣾⣽⣻⣽⡾⣣⣾⡇⠸⣿⣽⣆⠻⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⡟⢾⣿⣿⣟⣿⣿⣿⣿⣿⣿⣿⡿⣯⢿⣟⣷⣻⡾⣋⣶⣿⣿⣿⡀⢿⣿⣿⣧⣍⠻⣦⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣷⢰⣶⣬⣿⣿⣿⣿⣿⣿⡿⣯⣿⣽⣿⡾⠟⣡⣶⣿⣿⣿⣯⢿⣇⠘⣿⣿⣿⣾⣷⣎⠿⣧⣄⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣧⡹⢿⣿⣿⣿⣿⣿⣿⡿⠿⠛⢋⣁⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⡄⠸⣿⢿⣿⣿⣾⣷⣞⡽⢿⣦⡀⠀
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣶⣽⣏⣿⣿⣯⢽⣿⠉⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⢿⣇⠀⠹⣇⡺⣟⣿⣿⣿⣷⣏⡿⣿⣆
⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⢺⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣭⢿⡿⠀⠀⢿⣷⢯⣿⣿⣿⣿⣿⣿⣾⡽
2024-03-20 09:36:59
U are dumb if u read this message
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.