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
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
2019-10-08 04:34:20
#include <iostream>
using namespace std;
int main(){
int x,y,n,m;
cin>>x>>y>>n>>m;
if (x<y && x<n && x<m){
cout<<x;
}
else{
if (y<x && y<n && y<m){
cout<<y;
}
else{
if (n<y && n<x && n<m){
cout<<n;
}
else{
cout<<m;
}
}
}
}
2019-10-07 09:05:22
hen negen ni c++ heleer bodood baihdaa

2019-10-06 08:15:18
#include <stdio.h>
main(){
int a,b,c,d,e,f,h;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
if(a>b)f=b;
else f=a;
if(f>c)e=c;
else e=f;
if(e>d)h=d;
else h=e;
printf("%d",h);
return 0;
} ez hha but i can
2019-10-05 09:47:57
#include <stdio.h>
main(){
int a,b,c,d,e,f,h;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
if(a>b)f=b;
else f=a;
if(f>c)e=c;
else e=f;
if(e>d)h=d;
else h=e;
printf("%d",h);
return 0;
}
2019-04-04 09:47:35
hongoroo zow bodchood dursagdaache
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.