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

RGB7111 - 11-д хуваагддаггүй

Өгөгдсөн 4 тооны 11-д хууваагддаггүй тоонуудынх нь нийлбэрийг ол. 

Input

Нэг мөрөнд Int төрлийн 4 тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

11-д хуваагддаггүй тоонуудын нийлбэр.

Example

Input:
7 22 13 30

Output:
50

Нэмсэн:Bataa
Огноо:2011-05-27
Хугацааны хязгаарлалт: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-04-04 08:35:47
























































#include <iostream>

using namespace std;

int main()
{
int a,b,c,d,i=0;
cin >> a >> b >> c >> d;

if (a %11==0){}
else {
i += a;
}
if (b %11==0){}
else {
i += b;
}
if (c %11==0){}
else {
i += c;
}
if (d %11==0){}
else {
i += d;
}

cout << i;


return 0;
}
































































































































































2023-03-20 02:55:04
\
\\
\\\
\\\\
\\\\\
\\\\\\
\\\\\\\
\\\\\\\\
\\\\\\\\\
\\\\\\\\\\
\\\\\\\\\\\
\\\\\\\\\\\\
\\\\\\\\\\\\\
\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\
2023-03-14 10:27:17
\
\\
\\\
\\\\
\\\\\
\\\\\\
\\\\\\\
\\\\\\\\
\\\\\\\\\
\\\\\\\\\\
\\\\\\\\\\\
2023-03-13 07:05:34
g
2023-01-06 15:43:35
#include<stdio.h>
int main()
{
int a, b, c, d, e;
scanf("%d%d%d%d" ,&a ,&b ,&c ,&d);
if(a%11==0)
a=0;
if(b%11==0)
b=0;
if(c%11==0)
c=0;
if(d%11==0)
d=0;
e=a+b+c+d;
printf("%d" ,e);
return 0;
}
2022-12-02 06:12:30
#include <iostream>
using namespace std;

int main() {

int a,b,c,d,cnt=0;
cin>>a>>b>>c>>d;

if (a%11!=0)
cnt+=a;
if (b%11!=0)
cnt+=b;
if (c%11!=0)
cnt+=c;
if (d%11!=0)
cnt+=d;

cout<<cnt;

return 0;
}
2022-11-14 09:51:15
a,b,c,d= [int(x) for x in input().split()]
s=a+b+c+d
if (a%11==0):
s=s-a
if(b%11==0):
s=s-b
if(c%11==0):
s=s-c
if(d%11==0):
s=s-d
print(s)
python3.7.3 huul
2022-11-09 02:54:14
#include <stdio.h>
main()
{
int a[4],i,niilber=0;
for(i=0; i<4;i++)
{
scanf("%d",&a[i]);
if(a[i]%11==0)
a[i]=0;
else
niilber=niilber + a[i];
}
printf("%d ",niilber);
}
2022-11-07 08:21:48

#include <iostream>

using namespace std;

int main()
{
int a,b,c,s=0,d;
cin>>a>>b>>c>>d;

if (a%11!=0) {s+=a;}
if (b%11!=0) {s+=b;}
if (c%11!=0) {s+=c;}
if (d%11!=0) {s+=d;}
cout<<s;

}
good answer
2022-10-18 18:13:39
#include <stdio.h>
int a,b,c,d,s=0;
main()
{
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a%11==0) a=0;
else s=s+a;
if(b%11==0) b=0;
else s=s+b;
if(c%11==0) c=0;
else s=s+c;
if(d%11==0) d=0;
else s=s+d;
printf("%d",s);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.