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

RGB7108 - Сондгой тоонуудын үржвэр

Өгөгдсөн 3 тоон дахь сондгой тоонуудын үржвэрийг ол. Ядаж 1 сондгой тоо байгаа.

Input

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

Output

Үржвэр

Example

Input:
5 2 3
Output:
15

Нэмсэн: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-11-28 08:40:33
#include<stdio.h>
int main (){
int a,b,c,s=1;
scanf("%d%d%d",&a,&b,&c);
if(a%2==1) s=s*a;
if(b%2==1) s=s*b;
if(c%2==1) s=s*c;
printf("%d",s);
}
2024-11-28 08:36:07
zlo


Last edit: 2024-11-28 08:36:34
2024-11-25 11:12:54
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d,t=1;
cin>>a>>b>>c;
if(a%2==1)
t=t*a;
if(b%2==1)
t=t*b;
if(c%2==1)
t=t*c;

cout<<t;


return 0;
}
legma tuvshen
2024-11-12 05:51:01
buynaa ah ni bn aa huul22222222
#include <iostream>
using namespace std;
int main()
{
int a,b,c,p,i;
cin>>c>>a>>b;
i=1;
if(c%2==1) i=i*c;
if(a%2==1) i=i*a;
if(b%2==1) i=i*b;

cout<<i;


}
2024-10-22 12:20:05
#include <iostream>
using namespace std;

int main() {
int a, b, c;
cin >> a >> b >> c;
int product = 1;

if (a % 2 != 0) product *= a;
if (b % 2 != 0) product *= b;
if (c % 2 != 0) product *= c;

cout << product << endl;
return 0;
}
2024-06-26 11:12:29
ye
2024-05-31 21:48:28
#include <stdio.h>

int main(void) {
// your code herea
int a=1,arr[3],j=0;
for(int i=0;i<3;i++){
scanf("%d",&arr[i]);
}
while(j<3){
if(arr[j]%2!=0){
a*=arr[j];
}
j++;
}

printf("%d",a);
return 0;
}dorjah

Last edit: 2024-05-31 21:51:29
2024-05-27 06:31:38
Du bist meine Frau.
2024-05-08 10:24:23
#include <iostream>
using namespace std;
int main() {
int a, b, c, s;

cin >> a;
cin >> b;
cin >> c;
s = 1;
if (a % 2 == 1) {
s = s * a;
}
if (b % 2 == 1) {
s = s * b;
}
if (c % 2 == 1) {
s = s * c;
}
cout << s << endl;
return 0;
2024-04-15 04:46:11
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, b, c, s;

cin >> a;
cin >> b;
cin >> c;
s = 1;
if (a % 2 == 1) {
s = s * a;
}
if (b % 2 == 1) {
s = s * b;
}
if (c % 2 == 1) {
s = s * c;
}
cout << s << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.