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-12-11 10:07:18
#include <iostream>;
using namespace std;
int main() {

int a,b,c,d,e;
cin >> a ;
b = a % 10;
c = ( a % 100 - b) /10;
d = ( a % 1000 - b - c) / 100;
e = b + c + d;
cout << e;
return 0;
} ene mun
2024-12-11 10:05:36
#include <iostream>;
using namespace std;
int main() {

int a,b,c,d,e;
cin >> a ;
b = a % 10;
c = ( a % 100 - b) /10;
d = ( a % 1000 - b - c) / 100;
e = b + c + d;
cout << e;
return 0;
}
2024-12-11 07:08:23
#include <iostream>

using namespace std;

int main() {

// your code here
int too, a, b, c, hariu;
cin >> too;
a = too % 10;
b = too / 10 % 10;
c = too / 100;
hariu = a + b + c;
cout << hariu;
return 0;
}
2024-12-03 10:24:08
#include <iostream>
using namespace std;
int main () {
int a,a1,a2,a3;
cin>>a;
a1=a%10;
a2=a%100/10;
a3=a/100;
a=a1+a2+a3;
cout<<a;
}
so suga
so ez bro why so badd
like erdenetogtoh
2024-12-03 10:23:10
asdasd

Last edit: 2024-12-03 10:23:22
2024-12-03 10:23:09
sad

Last edit: 2024-12-03 10:23:37
2024-12-03 05:34:42
#include<iostream>
using namespace std;
int main() {
int t1,t2,t3;
cin>>t1>>t2>>t3;
if(t1>=t2&&t1>=t3) cout<<t1;
if(t2>t1&&t2>=t3) cout<<t2;
if(t3>t2&&t3>t1) cout<<t3;
}
huul agaan duu

2024-11-29 04:23:43
bagshaa guujiin tuhuu
2024-11-26 08:00:48
miigaa undaagii chin uuchlaa uuchlaarai
2024-11-25 05:29:01
#include <iostream>
using namespace std;

int main() {
int n, zuut, aravt, negj, k;
cin>> n;
negj = n / 100;
aravt = n / 10 % 10;
zuut = n % 10;
k = zuut + aravt + negj;
cout<<k;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.