Problem A
Magic Math
Veerle has been tasked by her mother to help her little brother with his maths homework. Unfortunately, the sheet with the exercises has had some fluids spilled over them, so Veerle cannot see the mathematical operator anymore but only the two numbers $a\ \_ \ b$. After a short discussion with her little brother, she learns that the operators discussed in class today were ‘$+$’, ‘$-$’, ‘$*$’ and ‘$\% $’.
She wants to figure out which operator to use in which part of the sheet and needs your help with this!
Input
The input contains a line with two integers, $a$ and $b$.
Output
Output a single integer, the answer to the computation combining $a$ and $b$ using the correct operator.
Constraints and Scoring
-
$1 \le a,b \le 200\, 000$.
Your solution will be tested on a set of test groups, each worth a number of points. Each test group contains a set of test cases. To get the points for a test group, you need to solve all test cases in the test group.
Note that this problem does not have a full solution and serves the purpose of testing the subtask merging that is new compared to EGOI 2023! In the real contest, every problem will have a full solution that solves all the subtasks.
Group |
Score |
Limits |
1 |
30 |
The operator is $+$ |
2 |
35 |
The operator is $-$ |
3 |
20 |
The operator is $*$ |
4 |
15 |
The operator is $\% $ |
Examples
Note that the samples each correspond to a different subtask. In sample 1, we have $8+5=13$, in subtask 2, Veerle calculates $17-9=8$, in subtask 3 she gets $9*3=27$ and in the last sample she uses the modulo and calculates $14\% 5=4$.
Sample Input 1 | Sample Output 1 |
---|---|
8 5 |
13 |
Sample Input 2 | Sample Output 2 |
---|---|
17 9 |
8 |
Sample Input 3 | Sample Output 3 |
---|---|
9 3 |
27 |
Sample Input 4 | Sample Output 4 |
---|---|
14 5 |
4 |