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


















































































































2024-05-16 03:37:13
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, b, c;

cin >> a;
c = 0;
while (a > 0) {
c = c + a % 10;
a = (int) ((double) a / 10);
}
cout << c << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
huuull2 7-1 e
2024-05-01 07:22:35
#include<iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a;
c=0;
while(a>0){
c=c+a%10;
a=a/10;
}
cout<<c;
return 0;
}
ene 6r angiin huuhded oilgomjtoi bodolt.
Bayrlalaa
2024-04-29 07:53:57

"bodlogonii hariu aytaihan shg heleed bodood taviad uguhgul bol en deer bti oln ym onholdood baidaa ulbiisun hulgaich nar min" bitgii solior
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.