• [1286] Operation

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • After Mr. Cai saved tt. Mr. Cai wants to marry with tt. But tt says, "You are strong, but the man who married with me must be strong and smart. If you can answer my question, I will marry with you."
  • 输入
  • Each line means one formula. The length of formula will be less than 1000. Each formula contains '(', ')', '+', '-', '*', '/', '0'-'9' and '.'.
  • 输出
  • You should print the result of the question in one line. Retained two decimal places.
  • 样例输入
  • (1+3)*4
    1+3*4
  • 样例输出
  • 16.00
    13.00
    
  • 提示
  • 来源
  • Lucifer
  • 操作

显示春菜