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.|

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
2022-03-21 08:57:24
hariuga tavihq bol gae shu
2022-03-07 09:07:17
#include <iostream>
using namespace std;

int main() {

int a,b,c,d,e=0;
cin>>a>>b>>c>>d;
{if(a>79) e=e+a;
else (e=e+0);}
{if(b>79) e=e+b;
else (e=e+0);}
{if(c>79) e=e+c;
else( e=e+0);}
{if(d>79) e=e+d;
else (e=e+0);}
cout<<e<<endl;
return 0;
}
2022-03-01 14:43:56
#include <iostream>
using namespace std;

int main() {

int a, b, c, d, n=0;
cin >> a >> b >> c >> d;
if ( a > 80 ) n = n + a;
else if ( a < 80 ) n = n;
if ( b > 80 ) n = n + b;
else if ( b < 80 ) n = n;
if ( c > 80 ) n = n + c;
else if ( c < 80 ) n = n;
if ( d > 80 ) n = n + d;
else if ( d < 80 ) n = n;
cout << n << endl;

return 0;
} life
2022-03-01 08:31:21
#include <bits/stdc++.h>
using namespace std;
main(){
int a,b,c,d,g=0;
cin>>a>>b>>c>>d;
if(a>80)g+=a;
if(b>80)g+=b;
if(c>80)g+=c;
if(d>80)g+=d;

cout<<g;
}
for bambuk
2021-10-30 19:31:43
#include <iostream>

using namespace std;

int main(){
int a, b, c, d, y = 0;

cin >> a >> b >> c >> d;

int x[] = {a, b, c, d};

for(int i = 0; i < 4; i++){
if(x[i] > 80){
y = y + x[i];
}
}
cout << y;
}
2021-04-17 08:29:31
#include <iostream>

using namespace std;

int main()
{
int el, sum=0;
cin>>el;
int s[el];
for(int i=0; i<el; i++)
{
cin>>s[i];
if(s[i] >= 80)
sum+= s[i];
}
cout<<sum;



return 0;
}
2021-03-30 13:02:00
nooooo


Last edit: 2021-03-30 13:02:30
2020-12-10 17:02:13
#include<stdio.h>
main (){
int a,b,c,d,niilber;
scanf("%d %d %d %d",&a,&b,&c,&d);
if (80>(a)) a=0;
if (80>(b)) b=0;
if (80>(c)) c=0;
if (80>(d)) d=0;
niilber=a+b+c+d;
printf("%d",niilber);
return 0;

}
suguudaa ingej hiidiin
2020-12-10 17:02:10
#include<stdio.h>
main (){
int a,b,c,d,niilber;
scanf("%d %d %d %d",&a,&b,&c,&d);
if (80>(a)) a=0;
if (80>(b)) b=0;
if (80>(c)) c=0;
if (80>(d)) d=0;
niilber=a+b+c+d;
printf("%d",niilber);
return 0;

}
suguudaa ingej hiidiin
2020-11-08 11:53:58
hi
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.