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

RGB7104 - 4 тооны бага

Өгөгдсөн 4 тооны багыг ол.

Input

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

Output

Бага тоо.

Example

Input:
3 2 1  4
Output: 1

Нэмсэн:Bataa
Огноо:2011-05-23
Хугацааны хязгаарлалт: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-03-14 01:10:50
MSI JImmY SHOWED HIS DICK TO ME
2024-03-07 03:43:00
#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;
} else {
cout << d << endl;
}
} else {
if (c < d) {
cout << c << endl;
} else {
cout << d << endl;
}
}
} else {
if (b < c) {
if (b < d) {
cout << b << endl;
} else {
cout << d << endl;
}
} else {
if (c < d) {
cout << c << endl;
} else {
cout << d << 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-03-07 02:08:33
LISTEN TO JIMMY URINE MINDLESS SELF INDULGENCE
2024-03-07 02:07:30
SPOJ IS MAKING ME SUICIDAL
2024-01-26 05:34:11
#python (3.9.5)
the_string = input()
a, b, c, d = the_string.split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a<b and a<c and a<d:
print(a)
elif b<c and b<a and b<d:
print(b)
elif c<d and c<b and c<a:
print(c)
else:
print (d)
2024-01-23 09:54:03
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2023-11-29 07:35:01
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss ssssssssssssssssssssssssssssssssssssssssssssssssss ssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssss
2023-11-19 22:59:44
a

Last edit: 2023-11-19 23:00:32
2023-11-06 17:09:39
F*CK YOU SPOJ

Last edit: 2023-11-06 17:10:43
2023-10-17 05:02:43
#include <iostream>
using namespace std;

int main() {

int a, b, c, n, k;
cin >> a >> b >> c >> k;
if ( a < b & a < c & a < k) n=a;
else if ( b < a & b < c & b < k) n=b;
else if ( c < a & c < b & c < k) n=c;
else if (k < a & k < b & k < c) n=k;
cout << n << endl;

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