Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7104 - 4 тооны бага |
Өгөгдсөн 4 тооны багыг ол.
Input
Нэг мөрөнд Int төрлийн 4 тоо зайгаар тусгаарлагдан өгөгдөнө.
Output
Бага тоо.
Example
Input: 3 2 1 4
Output: 1
Нэмсэн: | Bataa |
Огноо: | 2011-05-23 |
Хугацааны хязгаарлалт: | 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-03-04 01:16:47
https://www.youtube.com/watch?v=xvFZjo5PgG0 |
|||||||||||
2022-03-04 01:15:08
Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give, never gonna give (Give you up) We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye |
|||||||||||
2022-03-01 14:34:14
#include <iostream> using namespace std; int main() { int a, b, c, d, n; cin >> a >> b >> c >> d; if ( a < b & a < c & a < d ) n=a; else if ( b < a & b < c & b < d ) n=b; else if ( c < a & c < b & c < d ) n=c; else if ( d < a & d < c & d < b ) n=d; cout << n << endl; return 0; } life |
|||||||||||
2022-02-23 01:38:47
WW8Q+PV8, Ulaanbaatar Last edit: 2022-02-23 01:41:13 |
|||||||||||
2022-02-23 01:34:46
nuhur hair bn yaraltai dugar 80701696 (zavhan) |
|||||||||||
2021-11-15 02:39:59
. |
|||||||||||
2021-04-20 10:29:14
#include <stdio.h> main() { int a[4], i, n, min; for (i=0; i<4; i++) scanf("%d", &a[i]); for (i=0; i<4; i++) printf("%d ", a[i]); for (i=0; i<3; i++) if (a[i]<a[i+1]) min=a[i]; else min=a[i+1]; printf("\n%d", min); } |
|||||||||||
2021-02-17 13:18:21
#include <iostream> using namespace std; int main() { int a,b,c,d,ab,cd,mn; cin >> a >> b >> c >>d; cd = c < d ? c : d; ab = a < b ? a : b; mn = ab < cd ? ab : cd; cout << mn; return 0; } |
|||||||||||
2021-01-31 14:46:09
#include<stdio.h> main() { int a, b, c, d, bagatoo; scanf("%d %d %d %d",&a,&b,&c,&d); if(a<b) bagatoo=a; if(a>b) bagatoo=b; if(a>c) bagatoo=c; if(a>d) bagatoo=d; printf("%d",bagatoo); } |
|||||||||||
2020-10-21 10:23:18
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; if(a<b && a<c && a<d) cout<<a; else if(b<a && b<c && b<d) cout<<b; else if(c<a && c<b && c<d) cout<<c; else if(d<a && d<c && d<c) cout<<d; return 0; } altaik |