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
2019-04-03 03:11:01
hi?
2019-03-25 04:33:14
#include <iostream>
using namespace std;
main()
{
int a,b,c,d,e;
cin>>a>>b>>c>>d;
e=0;
if (a%11) e=e+a;
if (b%11) e=e+b;
if (c%11) e=e+c;
if (d%11) e=e+d;
cout<<e;
}
2018-12-19 05:23:48
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,n=0;
cin>>a>>b>>c>>d;
if(a%11>0) n=n+a;
if(b%11>0) n=n+b;
if(c%11>0) n=n+c;
if(d%11>0) n=n+d;
cout<<n;
}
maiiiii
2018-12-13 07:10:06
#include <iostream>
using namespace std;

int main() {

int a,b,c,d,sum=0;
cin>>a>>b>>c>>d;
if(a%11!=0){
sum=sum+a;
}
if(b%11!=0){
sum=sum+b;
}
if(c%11!=0){
sum=sum+c;
}
if(d%11!=0){
sum=sum+d;
}
cout<<sum;

return 0;
}
2018-11-20 04:49:55
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,n=0;
cin>>a>>b>>c>>d;
if(a%11>0) n=n+a;
if(b%11>0) n=n+b;
if(c%11>0) n=n+c;
if(d%11>0) n=n+d;
cout<<n;
}
2018-10-16 08:50:28

2013-10-28 03:49:26 solongo



Last edit: 2013-10-28 03:51:07
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.