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
2022-02-23 01:38:47
WW8Q+PV8, Ulaanbaatar

Last edit: 2022-02-23 01:41:13
2022-02-23 01:34:46
nuhur hair bn yaraltai dugar 80701696 (zavhan)
2021-11-15 02:39:59
.

2021-04-20 10:29:14
#include <stdio.h>

main()
{
int a[4], i, n, min;
for (i=0; i<4; i++)
scanf("%d", &a[i]);
for (i=0; i<4; i++)
printf("%d ", a[i]);
for (i=0; i<3; i++)
if (a[i]<a[i+1])
min=a[i];
else min=a[i+1];
printf("\n%d", min);
}
2021-02-17 13:18:21
#include <iostream>

using namespace std;

int main()
{
int a,b,c,d,ab,cd,mn;
cin >> a >> b >> c >>d;
cd = c < d ? c : d;
ab = a < b ? a : b;
mn = ab < cd ? ab : cd;
cout << mn;
return 0;
}

2021-01-31 14:46:09
#include<stdio.h>
main()
{
int a, b, c, d, bagatoo;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a<b) bagatoo=a;
if(a>b) bagatoo=b;
if(a>c) bagatoo=c;
if(a>d) bagatoo=d;
printf("%d",bagatoo);

}
2020-10-21 10:23:18
#include<bits/stdc++.h>
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<c && d<c) cout<<d;
return 0;
} altaik
2020-01-18 08:05:27
1

Last edit: 2020-01-18 08:06:03
2020-01-16 16:00:13
enxtaivan_19
10101212 (aas bodlogo haraarai
2019-10-23 08:31:38
gulugnuudee/ bi bika bn
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.