Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-11-14 03:54:21
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-09 02:42:25
#include<stdio.h> main () { int a,b,c,d,s=1; scanf("%d %d %d %d",&a,&b,&c,&d); if (5>a) s=s*a; else (a>5); if (5>b) s=s*b; else (b>5); if (5>c) s=s*c; else (c>5); if (5>d) s=s*d; else (d>5); printf("%d",s); return 0; } |
||||||||||||||
2022-11-08 07:51:23
#include <stdio.h> // Өгөгдсөн 4 тооны 5-аас бага тоонуудын үржвэрийг ол. 5-аас бага тоо ядаж 1 байгаа. // Input: 3 6 2 4 Output: 24 int main_math23() { int a, b, c, d, sum; scanf("%d%d%d%d", &a, &b, &c, &d); if (a > 4) a = 1; if (b > 4) b = 1; if (c > 4) c = 1; if (d > 4) d = 1; sum = a * b * c * d; printf("%d", sum); return 0; } |
||||||||||||||
2022-11-07 02:14:29
hahahaa/ |
||||||||||||||
2022-10-25 12:42:49
#include<stdio.h> int main(){ int a,b,c,d; scanf("%d%d%d%d", &a, &b, &c, &d); if(a<5) a=a; else a=1; if(b<5) b=b; else b=1; if(c<5) c=c; else c=1; if(d<5) d=d; else d=1; a=a*b*c*d; printf("%d",a); return 0; } |
||||||||||||||
2022-10-15 05:12:18
suguudaa ashigla #include <iostream> using namespace std; main(){ int a,b,c,d,l; cin>>a>>b>>c>>d; if (a<5) a=a; else a=1; if (b<5) b=b; else b=1; if (c<5) c=c; else c=1; if (d<5) d=d; else d=1; a=a*b*c*d; cout<<a; } |
||||||||||||||
2022-08-27 06:57:35
bi bur ambasin |
||||||||||||||
2022-05-11 10:02:23
#include<stdio.h> int main() { int a,b,c,d,i=1,sum; scanf("%d%d%d%d",&a,&b,&c,&d); if(a<=5) { i=i*a; } else { } if(b<=5) { i=i*b; } else { } if(c<=5) { i=i*c; } else { } if(d<=5) { i=i*d; } else { } printf("%d",i); }//spoj joohn aldaatai bh tee buruu geed bhiin |
||||||||||||||
2022-05-11 10:01:02
#include<stdio.h> int main() { int a,b,c,d,i=1,sum; scanf("%d%d%d%d",&a,&b,&c,&d); if(a<=5) { i=i*a; } else { } if(b<=5) { i=i*b; } else { } if(c<=5) { i=i*c; } else { } if(d<=5) { i=i*d; } else { } |
||||||||||||||
2022-03-24 05:25:22
#include<stdio.h> main () { int a,b,c,d,s=1; scanf("%d %d %d %d",&a,&b,&c,&d); if (5>a) s=s*a; else (a>5); if (5>b) s=s*b; else (b>5); if (5>c) s=s*c; else (c>5); if (5>d) s=s*d; else (d>5); printf("%d",s); return 0; } ez |