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

RGB7106 - Үржвэр 5

Өгөгдсөн 4 тооны 5-аас бага тоонуудын үржвэрийг ол. 5-аас бага тоо ядаж 1 байгаа.

Input

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

Output

Үржвэр

Example

Input:
3 6 2 4

Output:
24

Нэмсэн:Bataa
Огноо:2011-05-24
Хугацааны хязгаарлалт: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-08-27 06:57:35
bi bur ambasin
2022-05-11 10:02:23
#include<stdio.h>
int main()
{
int a,b,c,d,i=1,sum;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a<=5)
{
i=i*a;
}
else
{

}
if(b<=5)
{
i=i*b;
}
else
{
}
if(c<=5)
{
i=i*c;
}
else
{
}
if(d<=5)
{
i=i*d;
}
else
{
}
printf("%d",i);
}//spoj joohn aldaatai bh tee buruu geed bhiin
2022-05-11 10:01:02
#include<stdio.h>
int main()
{
int a,b,c,d,i=1,sum;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a<=5)
{
i=i*a;
}
else
{

}
if(b<=5)
{
i=i*b;
}
else
{
}
if(c<=5)
{
i=i*c;
}
else
{
}
if(d<=5)
{
i=i*d;
}
else
{
}
2022-03-24 05:25:22
#include<stdio.h>
main ()
{
int a,b,c,d,s=1;
scanf("%d %d %d %d",&a,&b,&c,&d);
if (5>a) s=s*a;
else (a>5);
if (5>b) s=s*b;
else (b>5);
if (5>c) s=s*c;
else (c>5);
if (5>d) s=s*d;
else (d>5);

printf("%d",s);
return 0;
}


ez
2022-03-23 04:51:55
#include<stdio.h>
int main()
{
int a, b, c, d, k;
scanf("%d %d %d %d", &a, &b, &c, &d);
if(5<(a)) a=1;
if(5<(b)) b=1;
if(5<(c)) c=1;
if(5<(d)) d=1;

k=a*b*c*d;
printf("%d", k);

return 0;
} pukaaannn eennooo
2022-03-21 08:57:06
muu bolihgu bn scam??
2022-03-20 10:33:10
#include <iostream>
using namespace std;
int main()
{
int a, b, c, d , e=1;
cin>>a>>b>>c>>d;
if(a<5) e=a*e;
if(b<5) e=b*e;
if(c<5) e=c*e;
if(d<5) e=d*e;

cout<<e<<endl;

return 0;
}
2022-03-11 01:29:37
ooon oon novshoo nmg shaa
2022-03-07 15:31:05
#include <cstdio>
int main()
{
int a, b, c, d;
int f=1;
scanf("%d %d %d %d", &a, &b, &c, &d);
if(a<5) f=f*a;
if(b<5) f=f*b;
if(c<5) f=f*c;
if(d<5) f=f*d;
printf("%d", f);
} ez guys amjilt
2022-03-06 13:20:59
#include<stdio.h>
int a,b,c,d,e;
main()
{
scanf("%d%d%d%d",&a,&b,&c,&d);
if a<5 printf("%d",a);
if b<5 printf("%d",b);
if c<5 printf("%d",c);
if d<5 printf("%d",d);
e=a*b*c*d;
printf("%d",e);
} ene bol ashss
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.