判断等式

TimeLimit:1000MS  MemoryLimit:128MB
64-bit integer IO format:%lld
未提交 | 登录后收藏
Problem Description
  聪聪的英语比较差,有个难题就是有一篇英语文章中有很多个式子,数量很多,要求验算每个等式的正确性,聪聪是个急性子不想一个一个地去验算,聪明的acmer请帮他解决这一难题。
Input
  一篇英语文章中有很多但只有简单的加、减、乘的运算式,格式为:a+b=c ;然后就判断每个等式是否真确,注意a、b是位数不超过10的正整数,且等式a+b=c(C有可能为负数,C的范围在long long范围内)之间都没有空格,等式与其他字符之间都有空格,还要注意是等式哦。
Output
有一组测试数据,对于每个等式,在每一行输出,格式为a+b=c true/flase;(PS:等式后面空一格在,在填写true/flase)。
SampleInput
I am the only child in my family, so I get 15+7=34 used to doing things by myself. Since I go to school, my teacher always gives us the homework, the 2+2 problem is that 14+5=19 we must finish 1+1=2 in a group. At first, I was 2+3=6 refused, because I knew I could do it by my own. But 3-3=0 my teacher insisted, so I had 3-2=0 to work with my group members. I started to find that I got many ideas from  my 7*7 group 2*3=6 members and I felt 3*4=11 so happy  to 9+4=13 work with them. Now 42+24=66 I realize that teamwork is really good, it not 34+54=23 only relieves my 34-23=3 pressure, but also brings me happiness. The power of teamwork 6-2 is infinite. 

SampleOutput
15+7=34 false
14+5=19 true
1+1=2 true
2+3=6 false
3-3=0 true
3-2=0 false
2*3=6 true
3*4=11 false
9+4=13 true
42+24=66 true
34+54=23 false
34-23=3 false

Submit
题目统计信息详细
总AC数24
通过人数18
尝试人数30
总提交量107
AC率16.82%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签
作者

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: