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:32768KB
Total submit users: 32, Accepted users: 31
Problem 11606 : No special judgement
Problem description
  写一个可以计算表达式的程序。

Input
  输入的数据仅由操作数a、运算符c和操作数b三部分组成。其中a、b为(0,2^15)之内的正整数,操作符c为“+”、“-”、“*”、“/”或“%”五个字符之一,分别表示加、减、乘、整除、取余。

Output
  按照格式输出原表达式及其值。

Sample Input
2 + 3
5 / 2
5 % 2
4 * 4
Sample Output
2+3=5
5/2=2
5%2=1
4*4=16
Submit   Clarifications   Judge Status  Problems  Ranklist 

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