Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
|||||||||
2022-11-14 03:53:40
I don't want a lot for Christmas There is just one thing I need I don't care about the presents Underneath the Christmas tree I just want you for my own More than you could ever know Make my wish come true All I want for Christmas is you, yeah I don't want a lot for Christmas There is just one thing I need And I don't care about the presents Underneath the Christmas tree I don't need to hang my stocking There upon the fireplace Santa Claus won't make me happy With a toy on Christmas Day I just want you for my own More than you could ever know Make my wish come true All I want for Christmas is you You, baby Oh, I won't ask for much this Christmas I won't even wish for snow And I'm just gonna keep on waiting Underneath the mistletoe I won't make a list and send it To the North Pole for Saint Nick I won't even stay awake to Hear those magic reindeer click 'Cause I just want you here tonight Holding on to me so tight What more can I do? Baby, all I want for Christmas is you You, baby Oh, all the lights are shining so brightly everywhere And the sound of children's laughter fills the air And everyone is singing I hear those sleigh bells ringing Santa, won't you bring me the one I really need? Won't you please bring my baby to me? Oh, I don't want a lot for Christmas This is all I'm asking for I just wanna see my baby Standing right outside my door Oh, I just want you for my own More than you could ever know Make my wish come true Baby, all I want for Christmas is you You, baby All I want for Christmas is you, baby [repeat with ad-libs until fade] |
|||||||||
2022-11-08 05:12:56
nigger |
|||||||||
2022-06-06 05:43:27
import java.util.*; public class bodlogo6 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("too oruul:"); int x,y,z; int sum=1; x=sc.nextInt(); y=sc.nextInt(); z=sc.nextInt(); if(x%2==0) { x=0; } else { sum=sum*x; } if(y%2==0) { y=0; } else { sum=sum*y; } if(z%2==0) { z=0; } else { sum=sum*z; } System.out.println("sondgoi toonii urjwer"+sum); } } |
|||||||||
2022-05-11 11:33:04
#include<stdio.h> int main() { int a,b,c,sun=1; scanf("%d%d%d",&a,&b,&c); if(a%2) { sun=sun*a; } else { a=0; } if(b%2) { sun=sun*b; } else{ b=0; } if(c%2) { sun=sun*c; } else { c=0; } printf("%d",sun); }//c++ |
|||||||||
2022-04-22 17:57:10
#Python a, b, c = (int(x) for x in input().split()) if a % 2 == 1: a = a else: a = 1 if b % 2 == 1: b = b else: b = 1 if c % 2 == 1: c = c else: c = 1 print(a*b*c) |
|||||||||
2022-03-24 01:52:48
#include <stdio.h> int main () { int a,b,c,d,f=1; scanf("%d %d %d",&a,&b,&c ); if(a%2>0) { f=f*a; } if(b%2>0) { f=f*b; } if(c%2>0) { f=f*c; } printf("%d", f); } amjilt psdakuda |
|||||||||
2022-03-10 05:45:47
l |
|||||||||
2021-12-11 11:58:36
a,b,c = [int(x)for x in input().split()] s = 1 if a%2==1: s = s * a if b%2==1: s = s * b if c%2==1: s = s * c print(str(s)) |
|||||||||
2021-10-04 12:56:24
cap |
|||||||||
2021-09-20 09:52:17
#include <iostream> using namespace std; int main() { int a, b, c, d = 1; cin >> a >> b >> c; if ( a % 2 == 1 ){ d=d * a; } if ( b % 2 == 1 ){ d=d*b } if ( c % 2 == 1 ){ d=d*c } cout << d <<endl; return 0; } Dulguun |