Fraction addition

0

0 votes
Problem

Problem Statement: Given a simple arithmetic expression you need to find the result in least repersentable mixed format. note:expression contains only addition and substraction.

Input format first line of input contains the no of test cases T. following T test cases contains the expression.

Output format output contains T line in which ith line each contains the result corrosponding to ith expression.

Time Limit: 2
Memory Limit: 256
Source Limit:
Editor Image

?