14546 - Simple Tree Calculator   

Description

TA too lazy to make the description, yet also too lazy to finish the code

But do you know if you can make a calculator using tree data structure?

I've implement some part, but still not finish

Help the TA finish the code

This question is a partial judge

You need to implement 2 functions that defined in the header file

Input

There is T testcases

The input is the prefix equation contains combination of '&', '|', '^', '1', and '0'. Also you don't need to worry about the format as it's a partial judge

 

Output

The result, either True or False for each testcases

Sample Input  Download

Sample Output  Download

Partial Judge Code

14546.c

Partial Judge Header

14546.h

Tags




Discuss