Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
弟弟的作业
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB
Total submit users: 172, Accepted users: 163
Problem 10931 : No special judgement
Problem description
  你的弟弟刚做完了“100以内数的加减法这部分的作业,请你帮他检查一下。每道题目(包括弟弟的答案)的格式a+b=c或者a-b=c,其中ab是作业中给出的,均为不超过100的非负整数c是弟弟算出的答案,可能是不超过200的非负整数,也可能是单个字符"?",表示他不会算。

Input
  输入文件包含不超过100行,以文件结束符结尾。每行包含一道题目,格式保证符合上述规定,且不包含任何空白字符。输入的所有整数均不含前导0。

Output
  输出仅一行,包含一个非负整数,即弟弟答对的题目数量。

Sample Input
1+2=3
3-1=5
6+7=?
99-0=99
Sample Output
2
Problem Source
  The Sixth Hunan Collegiate Programming Contest

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2076 today,16258803 total, since 2010-05-07