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

HO1014 - Шугаман 5

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

Input

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

Output

Цифрүүдийн нийлбэр үржвэрийг нэг нэг мөрөнд хэвлэ.

Example

Input:
3453

Output:
15
180

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

hide comments
2022-10-20 08:03:05





































































huulha boli























































































































guij bn chinii amidarliin tuluu





















































































































tam ruu ga ochoorai
2022-10-20 07:50:08
#include<bits/stdc++.h>
using namespace std;
int main (){
int x, s, z, p, i, a, b, c, e;
cin>>x;
e=x/1000;
z=x%1000;
p=z%10;
a=z%100/10;
b=z/100;
i=e+p+a+b;
c=e*p*a*b;
cout<<i<<" "<<c<<endl;
}
2022-09-19 17:16:04
#include<stdio.h>
int main(){
int x,a,b,c,d,s,f,v,g,h,j,k;
scanf("%d",&x);
a=x%10;
s=x%100;
f=s/10;
b=x/100;
j=b%10;
g=x/1000;
h=a+f+j+g;
k=a*f*j*g;
printf("%d\n%d",h,k);


}
2022-02-20 05:43:14
https://zodigames.com/action/among-us/
2022-01-23 03:05:50
hard2
2021-11-14 15:41:46
help
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.