## 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.

```3
6*7
67-25
31+11```

### Sample Output

```42
42
42```

Point Value: 10 (partial)
Time Limit: 2.00s
Memory Limit: 16M

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

<
1
2
>

• (1/1)

• (0/0)
why my code is unpredictable? test perfect on my computer

• (1/0)

• (0/0)
or is there a way to do it in java?

• (0/0)
Correct, you may not solve this problem in java.

• (0/0)
Why can't Python solutions be submitted? If the solution doesn't include a semicolon, I don't see why it shouldn't be accepted (even if it is a really simple solution).

• (0/0)
In certain interpreted languages such as Python and Ruby, semicolons are optional and thus the problem is trivial.
The whole reason semicolons are disallowed is to make the problem somewhat challenging.

• (0/0)
Fair enough.

• (0/0)
Is system() in C disabled on the judge?

• (0/0)
Yes --- processes are not allowed to fork().

• (3/6)

• (1/1)
nope. no semicolons allowed.

• (2/0)

• (5/1)
You can declare variables with int main():
e.g. int main(int a, int b) ...

• (1/5)
using namespace std;? oO

• (2/1)
What about it? You can't use it because that would require a semicolon!

• (6/7)
If you '#include <rope.h>', you won't need the using namespace std; (and it has cout/cin)
This won't work in Visual C++, though.

Edit: #include <list.h> is better

• (4/2)
Ah! Too many hints! You can't just give it away like that -_-

• (1/1)
I'm just wondering (although probably a lot more work for nothing), since C obviously has an advantage, can there be separate marking schemes for C and C++?

• (3/1)
C doesn't have that big an advantage over C++, so no, only one marking scheme.

It's not like we even know C (or at least I don't), so you can just try figure it out.

• (1/0)
The only difference between C and C++ that is significant for this problem is that you don't need any #include statements to input/output in C, but you are restricted to the following I/O routines (no cin/cout):
here

• (0/2)

• (0/1)
OK. Apparently 86 chars is possible, I'll leave it at that.
However I made the scoring curve a bit more lenient. Edit: Can't make it too easy

• (3/19)
i really need 10 pts... WHy was there the no semicolon rule anyway?

PS. there are 79 answers accepted?!?

• (3/0)
Without that rule, there's no challenge whatsoever and it would be a very very easy 10 points.

• (2/17)
unfortunatly, i have no knowledge in c++ or c.

• (10/2)
Hence, you don't get 10 points.