Buka
의견: 0
Quite often there is substantial noise in the classroom during class. Instead of paying attention to what the teacher is saying, the students rather discuss the economic crisis or Croatia's joining the European Union.
The biggest noise often occurs when the students are idle, so teachers will give them tasks with a lot of work to calm them down. In one type of such task, the student must calculate the result of an arithmetic operation on two large numbers.
The arithmetic operations we will consider are adding and multiplication. The operands will be powers of \(10\) with no more than \(100\) digits.
Write a program that calculates the result of the operation.
The first line contains a positive integer \(A\), the first operand.
The second line contains either the character + or *, representing addition or multiplication.
The third line contains a positive integer \(B\), the second operand.
The integers \(A\) and \(B\) will be powers of \(10\) and consist of at most \(100\) digits.
Output the result of the operation.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Subtask 1 | 30점 |
1000
*
10010000010000
+
101001010
+
100010101
*
10001000평가 및 의견
Buka
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Buka