Professional Documents
Culture Documents
com/problems/ONP/
PROFILE
t[thenumberofexpressions<=100]
expression[length<=400]
[otherexpressions]
TheexpressionsinRPNform,oneperline.
Input:
3
(a+(b*c))
((a+b)*(z+x))
((a+t)*((b+(a+c))^(c+d)))
Output:
abc*+
ab+zx+*
at+bac++cd+^*
1 of 4 12-10-2017, 07:48 PM
SPOJ.com - Problem ONP http://www.spoj.com/problems/ONP/
2 of 4 12-10-2017, 07:48 PM
SPOJ.com - Problem ONP http://www.spoj.com/problems/ONP/
3 of 4 12-10-2017, 07:48 PM
SPOJ.com - Problem ONP http://www.spoj.com/problems/ONP/
1 vote
103 4
# # # # # # # # # # # #
# #
4 of 4 12-10-2017, 07:48 PM