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
2024-02-29 14:20:52
#include<stdio.h>
#include<stdio.h>
int main()
{
int a,b,c,d,i;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>5) a=1;
if(b>5) b=1;
if(c>5) c=1;
if(d>5) d=1;
i=a*b*c*d;
printf("%d",i);
}
2024-02-29 05:09:55
#include <iostream>
using namespace std;
// tugaa is jerry uchralaas
int main() {
int a, b, c, d, ans;
cin >> a >> b >> c >> d;

if (b > 5) {
b = 1;
}

if (a > 5) {
a = 1;
}

if (c > 5) {
c = 1;
}

if (d > 5) {
d = 1;
}

ans = a * b * c * d;
cout << ans;

return 0;
}
2024-02-29 05:02:24
text me bi aimar tsarailag tged huurhun it aa gal ohinshu pm me mni ig @udvalicecream shuu
2024-01-24 13:43:28
#include <iostream>
using namespace std;

int main() {
int a, b, c, d, ans;
cin >> a >> b >> c >> d;

if (b > 5) {
b = 1;
}

if (a > 5) {
a = 1;
}

if (c > 5) {
c = 1;
}

if (d > 5) {
d = 1;
}

ans = a * b * c * d;
cout << ans; // Using the variable 'ans' here

return 0;
}
2023-12-18 09:15:49
artur zgr angias zl sda
2023-12-07 05:43:48
#include "stdio.h"
int main ()
{
int a,b,c,d,g;
scanf("%d %d %d %d" ,&a,&b,&c,&d);
g=1;
if(a<5) g=g*a;
if(b<5) g=g*b;
if(c<5) g=g*c;
if(d<5) g=g*d;
printf("%d" ,g);
return 0;
}
ermiinees
2023-11-20 06:34:12
#include<bits/stdc++.h>
using namespace std;
int main(){
long a, b, c, d, s=1;
cin>>a>>b>>c>>d;
if(5>a){
s=s*a;
} if(5>b){
s=s*b;
}if(5>c){
s=s*c;
} if(5>d){
s=s*d;
}
cout<<s;

}
2023-11-13 08:32:15
.

Last edit: 2023-11-13 08:33:20
2023-10-02 14:16:09
манай ангийн дарга 7-2 ийн шинээр ирсэн охинд сайн
2023-09-08 04:08:55
import java.util.Scanner;

class Main
{
public static void main (String[] args)
{
Scanner in = new Scanner(System.in);
int arr[] = new int[4];
int s=1;
for (int i = 0; i < 4; i++) {
arr[i] = in.nextInt();
}
for (int i : arr) {
if (i < 5)
s = s * i;
}
System.out.println(s);
}
}
java harad sur
ku-3
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.