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

RGB7302 - Цифрүүдийн нийлбэр

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

Input

Натурал тоо өгөгдөнө.

Output

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

Example

Input:
234

Output:
9

Нэмсэн:Bataa
Огноо:2013-01-09
Хугацааны хязгаарлалт: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-11-26 23:07:05
#include <iostream>
using namespace std;

int main() {

int n,s=0;
cin >> n;
while(n>0){
s=s+n%10;
n=n/10;
}
cout<<s;
//ryuu bol gci
}
2024-11-19 02:06:46
https://kekma.ga/
2024-11-19 02:01:28
niggger
2024-11-19 02:00:38
gomo sergelen sanar soymbo g bulaaltsddg 3 ner ni S ihlsn 3 lalar amaandaa boojgoogo
2024-11-18 12:19:15
#include <iostream>
using namespace std;
int main() {

int a,b,d,f,n,s,q,w,e,i,z=0;
cin>>a;
while(a>9){
a=a/10;
}
cout<<a;


return 0;
}Tui mai shud min

ug fv
2024-11-18 12:17:10
#include <iostream> { Б. Азтүшиг }
using namespace std;
int main(){
int n, i, s=0;
cin>>n;
while(n>0){
s=s+n%10;
n=n/10;
}
cout<<s;
return 0;
} not penis monhobat
2024-06-28 11:13:30














































































































































































































































































































































































































































































































2024-06-28 11:13:03











































































































































































































































































































































































































































































































































































































2024-06-28 11:12:23



















































































































































































































































































































































































2024-06-28 11:11:48


















































































































© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.