Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7105 - Нийлбэр 80 |
Өгөгдсөн 4 тооны 80-аас их тоонуудын нийлбэрийг ол.
Input
Нэг мөрөнд Int төрлийн 4 тоо зайгаар тусгаарлагдан өгөгдөнө.
Output
Нийлбэр.
Example
Input: 85 75 96 69 Output: 181
Нэмсэн: | 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
|
||||||||||||||
2024-10-23 14:26:15
hi |
||||||||||||||
2024-10-22 12:18:22
#include <iostream> using namespace std; int main() { int a,b,c,d,e=0,f; cin>>a>>b>>c>>d; if(a>80) e=e+a; if(b>80) e=e+b; if(c>80) e=e+c; if(d>80) e=e+d; cout<<e; return 0; } huul |
||||||||||||||
2024-10-19 16:06:38
hi #include<stdio.h> main() {int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); if(b>a && c>a && d>a) printf("%d",a); else if(b<a && b<c && b<d) printf("%d",b); else if(c<a && c<d && c<b) printf("%d",c); else if(d<a && d<b && d<c) printf("%d",d); } |
||||||||||||||
2024-10-02 02:39:25
bagshaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
||||||||||||||
2024-05-19 08:29:59
java array: import java.util.Scanner; public class main { public static void main(String[] args) { System.out.println("too oruul!"); Scanner sc = new Scanner(System.in); int[] arr = new int[] { 85, 75, 96, 69 }; int sum = 0; for (int i = 0; i < arr.length; i++) { if (arr[i] > 80) { sum += arr[i]; } } System.out.println(sum); } } |
||||||||||||||
2024-04-17 09:55:38
#include <iostream> using namespace std; int main() { int a, b,c,d,s=0; cin>>a>>b>>c>>d; if(a>80) s=s+a; if(b>80) s=s+b; if(c>80) s=s+c; if(d>80) s=s+d; cout<<s<<endl; return 0; } |
||||||||||||||
2024-03-11 07:43:31
Are you burger cause you got buns both sides |
||||||||||||||
2024-02-29 05:07:24
#include <iostream> //80 aas deesh toonii niilber using namespace std; int main() { int a, b,c,d,s=0; cin>>a>>b>>c>>d; if(a>80){ s=s+a; } if(b>80){ s=s+b; } if(c>80){ s=s+c; } if(d>80){ s=s+d; } cout<<s<<endl; return 0; } |
||||||||||||||
2024-02-21 14:17:09
yaj ene deer arrays ashiglah ve |
||||||||||||||
2024-01-22 12:34:34
jevsvgfebvh bverbuevcbfyfgfgrevbve gre;rgrtrththrt yluoi tyrnr thjtyjjetyjthyojgornnbh egH ngb e4t9 04tu4tn 05yn9 05n5ybvej,. 6 55yu8 R 4jigr24 5y6by2t2;g5o3bhgrungvrwt2vf` vt8y53rv tvvg9frgt32tb |