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

RGB7010 - 3 оронтой тоо

Өгөгдсөн 3 оронтой тооны цифрүүдийн нийлбэрийг ол.

Input

3 оронтой эерэг тоо өгөгдөнө.

Output

Цифрүүдийн нийлбэр.

Example

Input:
123
Output:
6

Нэмсэн:Bataa
Огноо:2011-05-10
Хугацааны хязгаарлалт: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-10-27 03:58:56
alnii sevchee
2022-10-13 04:29:36
#include <iostream>
using namespace std;

int main() {

int a, s, b, c, d;
cin >> a;
b = a/100;
c = a/10%10;
d = a%10;
s = b + c + d;
cout << s << endl;
} huull suguudaaa
\
2022-10-12 08:49:50
shaas sdaguda
2022-02-28 13:52:05
gay spirit hudluud bna
2022-01-01 12:41:04
#include<stdio.h>

main ()
{
int a, b, c, d;
scanf("%d",&a);
b=a%10;
d=a/10%10;
c=a/100;
printf("Niilber:%d",b+c+d);
}
2021-12-20 10:30:38
#Python
a = list(input())
print(int(a[0]) + int(a[1]) + int(a[2]))
2021-12-05 12:42:45
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main () {
int a,b,c,d;
scanf("%d", &a);
b= a % 10;
c=((a % 100) - b)/10;
d=((a % 1000) - (b+c*10))/ 100;
printf("%d", b*c*d);
return 0;
} ene spoj sda chin bolohguu ged baina
2021-03-13 05:20:35
#include <iostream>
using namespace std;

int main() {

int n;
cin >> n;

int s = 0;
do{
s += (n%10);
n /= 10;
} while(n != 0);

cout << s;
return 0;
}
2020-11-03 12:00:28
B nandia
2020-10-28 06:05:06
include <iostream>
using namespace std;

int main() {

int a, s, b, c, d;
cin >> a;
b = a/100;
c = a/10%10;
d = a%10;
s = b + c + d;
cout << s << endl;

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