题目链接:https://nanti.jisuanke.com/t/15504

题解:python大法好啊,三行代码无人能敌啊!

下面给出AC代码:

1 b=input()
2 a=input()
3 print("%.6f"%eval(a))if '.' in a else print(int(eval(a)))

 

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2021-08-25
  • 2021-12-04
  • 2021-10-28
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-11-03
  • 2021-11-10
相关资源
相似解决方案