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
2024-01-17 03:53:41
#include <stdio.h>

int main() {
int a, b, c, d, e, result;
scanf("%d", &a);
c = a / 100;
b = a % 10;
d = a / 10 % 10;

result = c + b + d;
printf("%d", result);
}
2023-12-30 10:57:22
brhs is yashka
2023-12-30 10:27:47
unu is bitch


2023-12-26 09:03:00
niagha
2023-12-26 09:02:30
wassup niggers
2023-11-27 06:26:39
#include<bits/stdc++.h>
using namespace std;
int main(){
long a, b;
cin>>a;
b=(a/100)+(a/10%10)+(a%10%10);
cout<<b;
}
2023-11-21 07:25:28



































































































































































































































































































































































































































































2023-10-27 05:04:05
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d, s, f;
cin>>a;
c=a/10;
d=a%10;
s=c/10;
b=c%10;
f=s+d+b;
cout<<f<<endl;
} ene
2023-10-20 07:34:05
AMRAA WANT ENEREL

Last edit: 2023-10-20 07:39:54
2023-09-25 17:13:17
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d, s, f;
cin>>a;
c=a/10;
d=a%10;
s=c/10;
b=c%10;
f=s+d+b;
cout<<f<<endl;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.