#B0004. 高精度四则运算

高精度四则运算

Topic Background

This is my first time asking a question

Title Description

Given integers a,ba, b Output a+b,a−b,a∗ba+b, a-b, a * b , a/ba/b (divisible) in sequence

Input format

2 lines, aa and bb

Output format

4 lines, representing the results of a+b,a−b,a∗b,a/ba+b, a-b, a * b, a/b

input1

30
15

output1

45 
15 
450 
2 

input2

100 
79 

output2

179 
21 
7900
1

Data scale and agreement

The data of 20%20 \% satisfies 1≤∣a,b∣≤100001 \le \left | a, b \right | \le 10000 100%100 \% data satisfies 1≤a,b≤104001 \le a, b \le 10 ^ {400}