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
2025-02-19 01:47:32
nohoin boow yma
2025-02-12 03:42:20
#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, a1, a2, a3;

cin >> a;
a1 = a % 10;
a2 = a % 100 / 10;
a3 = a / 100;
a = a1 + a2 + a3;
cout << a << 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());
}
2025-01-27 11:10:22
#include <bits/stdc++.h>
#include <string>

using namespace std;

int main() {
long long a,b,c,d,e,f,g=0,h=1,i,j,k,l,m[2],n[1000],p=1,o,q,r,s=0,t,u;
char x[1000], y, z, w ,v;
cin>>y>>z>>w;

if(y=='<' && z=='<' && w== '<' || y=='>' && z=='>' && w=='>'){
cout<<"B";
return 0;
}
if(y=='<' && z=='>' && w== '>' || y=='>' && z=='<' && w=='<'){
cout<<"A";
return 0;
}
if(y=='<' && z=='<' && w== '>' || y=='>' && z=='>' && w=='<'){
cout<<"C";
return 0;
}


return 0;
}
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

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