Shortest Code Contest

Write a piece of code to solve some mathematical expressions.
These mathematical expressions will be very simple - each expression will consist of two numbers and a single operation.
All numbers will be positive integers less than 100, and the only operations will be +,- and *.
There will be multiple test cases - the first line will indicate the number of tests.

Oh, I almost forgot to mention: you can't use semicolons!
Your score will be (86 / N)2 x 10, where N is the number of non-whitespace characters in your code.

Sample Input


Sample Output


All Submissions
Best Solutions

Point Value: 10 (partial)
Time Limit: 2.00s
Memory Limit: 16M
Added: Dec 14, 2008

Languages Allowed:
C++03, C, C++11

Comments (Search)


but on my user page, it only give me the points for my first accepted submission. I dont care that much about the 1.4 points, but it is a bit of a problem, and so it should be corrected if you have the time.

Ok, it was fixed, I dont know what happened

Stop hacking. 13/10 o.0?

Sorry, changed the scoring algorithm a bit.
(My solution is a bit hackish, works 50% of the time)

101 submissions already.

Good way to get a cool number of points though.

so people using pascal aren't supposed to complete this program?

Well from the comments below, it looks like people using Pascal CAN'T complete this program.

How do we do this in Turbo if it says we can't use semicolons? Or does the judge care?