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
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;
}
2023-10-12 10:44:11
huulaarai guys
#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;
}
2023-09-29 08:57:33
BALL
2023-05-29 07:04:55
#include <iostream>
using namespace std;

int main() {
int a, s, c, e;
cin>>a>>s>>c>>e;
if(a<s and a<c and a<e) s=a;
if (c<s and c<a and c<e) s=c;
if (e<s and e<a and e<c) s=c;
cout<<s;
return 0;
}
.
2023-04-12 11:35:36
⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌
⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌
⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌
⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪
⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡
⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐
⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔
⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘
⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎
⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗
⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷
⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟
⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰
⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊
⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌
⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁
⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀
⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀
⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟
⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾
⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽
2023-03-21 04:40:21
#include <bits/stdc++.h>
using namespace std;

int main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
if(a<b and a<c and a<d)
cout << a;
else if(b<c and b<a and b<d)
cout << b;
else if (d<c and d<a and d<b)
cout << d;
else
cout << c;
return 0;
}
2023-03-01 10:40:43
int a,b,c,e;
scanf("%d %d %d %d",&a,&b,&c,&e);
if(a<b&&a<c&&a<e)
printf("%d",a);
{
if(b<a&&b<c&&b<e)
printf("%d",b);
}
{
if(c<a&&c<b&&c<e)
printf("%d",c);
}
{
if(e<a&&e<b&&e<c)
printf("%d",e);
}
2023-02-17 04:20:02
#include "stdio.h"
int main ()
{
int a,b,c,d;
scanf("%d %d %d %d" ,&a,&b,&c,&d);
if(a<b && a<c && a<d)
printf("%d" ,a);
else if(b<c && b<d)
printf("%d" ,b);
else if(c<d)
printf("%d" ,c);
else printf("%d" ,d);
return 0;
}
husseneeree huul
2023-02-04 10:44:17
#include <iostream>
using namespace std;

int main() {
int a,b,c,d;
cin >> a >> b >> c >>d;

if(a<=b&&a<=c &&a<=d) {cout << a;}
else if(b<=a&&b<=c &&b<=d) {cout <<b;}
else if(c<=a&&c<=b &&c<=d) {cout <<c;}
else if(d<=a&&d<=b &&d<=c) {cout <<d;}
return 0;
}
2022-12-28 05:06:32
#include <iostream>
using namespace std;
int main() {
int num1, num2, num3, num4;
cin>>num1>>num2>>num3>>num4;
int lowest = num1;
if (num2 < lowest) {
lowest = num2;
}
if (num3 < lowest) {
lowest = num3;
}
if (num4 < lowest) {
lowest = num4;
}

cout<< lowest;


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