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-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());
}
2024-01-27 04:49:33
#python (3.9.5)
the_string = input()
a, b, c = the_string.split()
a=int(a)
b=int(b)
c=int(c)
p=1
if (a%2==1):
p=p*a
if (b%2==1):
p=p*b
if (c%2==1):
p=p*c
print(p)
2024-01-18 05:23:37
#include<bits/stdc++.h>
using namespace std;
int main(){
long a, b, c ,s=1;
cin>>a>>b>>c;
if(a%2==1){
s=s*a;
} if(b%2==1){
s=s*b;
} if(c%2==1){
s=s*c;
}
cout<<s;

}
2023-12-07 05:46:39
#include <iostream>
using namespace std;

int main() {

int a,b,c;
int s=1;
cin>>a>>b>>c;
s *= a%2!=0 ? a : 1;
s *= b%2!=0 ? b : 1;
s *= c%2!=0 ? c : 1;
cout<<s;
return 0;
}
ermiin ah n ogjin bayrlaj yvarai
2023-11-28 06:36:13
#include <iostream>
using namespace std;

int main() {

int a,b,c;
int s=1;
cin>>a>>b>>c;
s *= a%2!=0 ? a : 1;
s *= b%2!=0 ? b : 1;
s *= c%2!=0 ? c : 1;
cout<<s;
return 0;
}
2023-11-22 08:19:44
#include<bits/stdc++.h>
using namespace std;
int main(){
long a, b, c ,s=1;
cin>>a>>b>>c;
if(a%2==1){
s=s*a;
} if(b%2==1){
s=s*b;
} if(c%2==1){
s=s*c;
}
cout<<s;

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