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-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;
}
2022-12-19 08:49:10
#include<stdio.h>
main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
if ( a > b & b < c & b<d ){;
printf("%d",b);
}

if ( b > a & a < c & a<d){;
printf("%d",a);
}
if ( c < a & c < b & c<d ){;

printf("%d",c);
}
if(d<a & d<b & d<c){;
printf("%d",d);
}
return 0;
} huulaarai
2022-12-03 14:47:46
https://www.spoj.com/RGB7/problems/RGB7104/#:~:text=int%20a%2C%20b%2C%20c%2C%20d%3B%0Acin%20%3E%3E%20a%20%3E%3E%20b%20%3E%3E%20c%20%3E%3E%20d%3B%0A%0Aif%20(%20a%20%3C%20b%20%26%26%20a%3C%20c%20%26%26%20a%3Cd)%7B%0A%0Acout%20%3C%3C%20a%3B%0A%7D%0A%0Aif%20(%20b%20%3C%20a%20%26%26%20b%20%3C%20c%20%26%26%20b%20%3C%20d)%7B%0A%0Acout%20%3C%3C%20b%3B%0A%7D%0A%0Aif%20(%20c%20%3C%20a%20%26%26%20c%20%3C%20b%20%26%26%20c%20%3C%20d)%7B%0A%0Acout%20%3C%3C%20c%3B%0A%7D%0A%0Aif%20(%20d%20%3C%20a%20%26%26%20d%20%3C%20b%20%26%26%20d%20%3C%20c)%7B%0Acout%20%3C%3C%20d%3B
2022-12-02 01:05:47
#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;
}
sodolzgono
2022-11-30 07:32:27
#include<iostream>
using namespace std;
int main(){
int a,b,c,d,e,f,g;
cin>>a>>b>>c>>d;
if(a<b){
if(a<c){
if(a<d){
cout<<a;
}
else{cout<<d;
}
}
else{if(c<d){
cout<<c;
}
else{
cout<<d;
}
}
}
else{
if(b<c){
if(b<d){
cout<<b;
}
else{
cout<<d;}
}
else{if(c>d){
cout<<d;
}
else{cout<<c;
}
}
}
}
2022-11-10 04:31:36
#include <iostream>

using namespace std;

int main(){
int a,b,c, miya;
cin >> a >> b >> c ;
miya = a;
if ( miya > b ) {
miya = b;
}
if ( miya > c ) {
miya = c;
}
cout << miya;
return 0;
}
2022-11-01 09:04:00
#include<bits/stdc++.h>
using namespace std;

main(){
int a,b,c,d,max;
cin>>a>>b>>c>>d;
max=b;
if(a<max)max=a;
if(c<max)max=c;
if(d<max)max=d;
cout<<max;
}

huul
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.