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-03-05 03:58:33
help
2021-11-30 17:46:07
#include<stdio.h>
int main(){
int a ,b ,c ,d ,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
if(5<a)a=1;
if(5<b)b=1;
if(5<c)c=1;
if(5<d)d=1;
e=a*b*c*d;
printf("%d",e);
return 0;
}
inged shaachmar bhin daanch spoj sda chin buruu hariult geshagd bn
2021-07-09 17:09:20
MRC ACDM HUD3
2020-11-04 08:45:01
#include<bits/stdc++.h>

using namespace std;

long long a,s,d,f,g;

int main()
{
cin>>a>>s>>d>>f;
if(a<5) a=a;
else a=1;
if(s<5) s=s;
else s=1;
if(d<5) d=d;
else d=1;
if(f<5) f=f;
else f=1;
g=a*s*d*f;
cout<<g;
return 0;
}
2020-10-22 14:05:33
#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,s=1;
cin>>a>>b>>c>>d;
if(a<5) s=s*a;
else if(a>5) s=s+0;
if(b<5) s=s*b;
else if(b>5) s=s+0;
if(c<5) s=s*c;
else if(c>5) s=s+0;
if(d<5) s=s*d;
else if(d>5) s=s+0;
cout<<s;
return 0;
}boldoo bainoo

Last edit: 2020-10-22 14:06:23
2020-10-21 10:29:21
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,s=1;
cin>>a>>b>>c>>d;
if(a<5) s=s*a;
else if(a>5) s=s+0;
if(b<5) s=s*b;
else if(b>5) s=s+0;
if(c<5) s=s*c;
else if(c>5) s=s+0;
if(d<5) s=s*d;
else if(d>5) s=s+0;
cout<<s;
return 0;
} altaik bnoo suguudaa
2020-10-13 16:11:29
#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);
return 0;
}yagad iim amarhan ym hiij chaddaggui yum be ta nar
2020-07-15 08:31:10
import java.util.*;
import java.lang.*;

class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int s = 1;
int arr[] = new int[4];
for (int i = 0; i < 4; i++) {
arr[i] = sc.nextInt();
}
for (int i : arr) {
if (i < 5)
s = s * i;
}
System.out.println(s);
}
}
2020-03-30 12:32:32
#include <iostream>
using namespace std;

int main() {

int a, b, c, d, mulit = 1;
cin >> a >> b >> c >> d;

if ( a < 5 )
mulit = mulit * a;

if ( b < 5 )
mulit = mulit * b;

if ( c < 5 )
mulit = mulit * c;

if ( d < 5 )
mulit = mulit * d;

cout << mulit <<endl;

return 0;
}
2020-01-27 15:52:16
l

Last edit: 2020-09-27 07:33:39
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.