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

HO1013 - Шугаман 4

Өгсөн 4 оронтой тооны захын хоёр цифрийн нийлбэрийг ол.

Input

4 оронтой нэг тоо өгөгдөнө.

Output

Үр дүнг хэвлэ.

Example

Input:
8654

Output:
12

Нэмсэн:munkhbat
Огноо:2013-01-11
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JULIA PYPY3

hide comments
2024-12-05 11:44:09
#include<bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d,e;
cin>>b;
c=b%10;
e=b/1000;
cout<<c+e;
return 0;
}
2024-03-22 02:49:17
T1


Last edit: 2024-03-22 02:49:44
2024-01-29 04:23:17
#include<bits/stdc++.h>
using namespace std;
int s1,s2,a;
int main(){
cin>>a;
s1=a%10;
s2=a/1000;
cout<<s1+s2;
return 0;
}
2024-01-27 04:59:26
nigger
2023-10-25 09:20:37
serge gay
2023-10-23 07:45:15
amjilt cyber surgulin 7-1 angin gomo tengis saraanad sn
2023-03-13 11:09:34
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
scanf("%d" ,&a);
printf("%d" ,(a/1000)+(a%10));
} munji
2023-02-27 03:03:33
int a,b,h,c;
cin>>a;
h=a%10;
c=a/1000;
b=h+c;
cout<<b;
2022-11-10 08:45:22
haruu #include<bits/stdc++.h>
using namespace std;
int main (){
int x,y,z,a,b;
cin>>x;
y=x/1000;
z=((x%1000)%100)%10;
a=((x%1000)%100)/10;
b=(x%1000)/100;
cout<<y+z+a+b<<"\n"<<y*z*a*b;
return 0;
}
2022-10-31 01:43:04


Last edit: 2022-10-31 01:43:41
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.