#P1932. A+B A-B A*B A/B A%B Problem

    ID: 2689 远端评测题 3000ms 125MiB 尝试: 1 已通过: 0 显示难度普及+/提高− 上传者: 标签>数学高精度洛谷原创

A+B A-B A*B A/B A%B Problem

Background

This problem is quite novel!!!

Problem Description

Compute the sum, difference, product, quotient, and remainder of AA and BB.

Due to updates to the testdata, the subtraction result may be negative.

Input Format

Two lines, each containing one number: the two numbers to be operated on.

Output Format

Five lines, each containing one number: the sum, difference, product, quotient, and remainder of AA and BB.

1
1
2
0
1
1
0

Hint

A,B104|A|,|B| \leq 10^4 denotes the number of digits rather than the absolute value.

A,B>0 A,B > 0 .

Translated by ChatGPT 5