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
2022-02-08 16:58:00
#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-01-07 05:01:02
c++ khatnaagaas
#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;
}
2021-11-20 14:49:49
sain untahgui bol sain oilgohgui
2021-10-17 05:52:34
//java neeree mni mergejild neeh ih chuhal bish ym bnale kkk
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int sum = 0;
int[] arr = new int[4];
for (int i = 0; i < 4; i++) {
arr[i] = sc.nextInt();
}
for (int i : arr) {
if (i % 11 != 0) {
sum+=i;
}
}
System.out.println(sum);
}

2020-11-05 05:20:46
orgil bol huja
2020-08-18 03:53:10
#include<iostream>
using namespace std;
int main(){
int arr[4];
int sum=0;
for(int i=0;i<4;i++){
cin>>arr[i];
}
for(int i=0;i<4;i++){
if(arr[i]%11==0){

}else{
sum=sum+arr[i];
}

}
cout<<sum;
return 0;
}
2019-12-27 10:04:46
#include<bits/stdc++.h>
using namespace std;
int main(){

int a,b,c,d,s;
cin>>a>>b>>c>>s;

if(a%11!=0) a=a;
else a=0;
if(b%11!=0) b=b;
else b=0;
if(c%11!=0) c=c;
else c=0;
if(s%11!=0) d=d;
else s=0;
d=s+c+b+a;
cout<<d<<endl;
}
yooow ez
2019-11-23 05:41:07
1020412932
2019-11-23 05:37:54
https://www.hackerrank.com/contests/santacademy-class2-test3/challenges/7--4
2019-11-23 05:29:47
https://www.hackerrank.com/contests/santacademy-class2-test3/challenges/7--4
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.