#P1706. Apirl Fool's caculator part 2

Apirl Fool's caculator part 2

Problem F. Apirl Fool's caculator part 2

题目描述

恭喜你借助超额加成击退了黑暗卫队的入侵,但现在一位精明的商人出现了,它要求你完成一项奇怪的“智能”计算器,要求如下:

Requirement: Write a program that simulates an "intelligent" calculator, but actually performs some "April Fool's" operations on the input mathematical expression.

  1. The program accepts a mathematical expression from the user, which can include arithmetic operators such as addition, subtraction, multiplication, division, parentheses, and numbers.
  2. Before calculating the expression, modify the expression: randomly replace operators with incorrect operators (e.g., replace addition with subtraction), insert some random numbers into the digits, or delete some numbers or operators.
  3. Then, calculate the result of the modified expression and output the result.

输入格式

输入一个愚人节表达式k

输出格式

输出你的答案(你的可能是对的,但是通过看运气)

样例输入1

2024+4+1

样例输出1

2024

样例输入2

4+1

样例输出2

4

数据范围及约定

  • len(k)10len(k) \leq 10