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
2023-02-01 04:36:21
hulval gomo shuu
2023-01-18 07:40:17
#include <stdio.h>

int main()
{
int a, b, c, d, s;
scanf("%d%d%d%d", &a, &b, &c, &d);
if (a <= 80)
a = 0;
if (b <= 80)
b = 0;
if (c <= 80)
c = 0;
if (d <= 80)
d = 0;
s = a + b + c + d;
printf("%d", s);
return 0;
}
huulaarai bymbahuu
2022-12-02 01:08:09
#include<stdio.h>
int main (){
int a[100],i,sum=0;
for(i=1;i<5;i++){
scanf("%d",&a[i]);
if(a[i]>80){
sum=sum+a[i];
}
}
printf("%d",sum);
return 0;
}

sodolzgono
2022-11-20 06:31:11
hahahah

Last edit: 2022-11-20 07:10:17
2022-11-17 09:16:00
#include<stdio.h>
int main (){
int a[100],i,sum=0;
for(i=1;i<5;i++){
scanf("%d",&a[i]);
if(a[i]>80){
sum=sum+a[i];
}
}
printf("%d",sum);
return 0;
}

huurhun shuu bi xD
2022-11-10 01:35:49
#include<bits/stdc++.h>
using namespace std;
int main (){
int a,m=0,c,b,d;
cin>>a>>d>>c>>b;
if(a>=80) m=m+a;
if(c>=80) m=m+c;
if(b>=80) m=m+b;
if(d>=80) m=m+d;
cout<<m<<endl;
}
2022-11-09 02:41:50
#include<bits/stdc++.h>
using namespace std;
int main (){
int a,m=0,c,b,d;
cin>>a>>d>>c>>b;
if(a>=80) m=m+a;
if(c>=80) m=m+c;
if(b>=80) m=m+b;
if(d>=80) m=m+d;
cout<<m<<endl;
}
2022-11-08 07:38:20
#include <stdio.h>

int main()
{
int a, b, c, d, s;
scanf("%d%d%d%d", &a, &b, &c, &d);
if (a <= 80)
a = 0;
if (b <= 80)
b = 0;
if (c <= 80)
c = 0;
if (d <= 80)
d = 0;
s = a + b + c + d;
printf("%d", s);
return 0;
}
2022-11-04 04:17:04
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,n,m;
cin>>a>>b>>c>>d;
if(a<=80) a=0;
if(b<=80) b=0;
if(c<=80) c=0;
if(d<=80) d=0;
n=a+b+c+d;
cout<<n;
}<<<<<<


2022-10-12 10:03:24
#include <iostream>
using namespace std;

int main() {

int a, b, c, d, e, f, n, m;

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

if(a <= 80) a=0;

if(b <= 80) b=0;

if(c <= 80) c=0;

if(d <= 80) d=0;

n=a+b+c+d;

cout<<n;

return 0;
}
huul22
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.