Other kind of solution?

Revision en1, by LushoPlusPlus, 2018-05-31 15:40:36

Hello everyone.

recently i was solving a problems very interesting.

https://jv.umsa.bo/problem.php?cid=1526&pid=19

It is a virtual judge from UMSA (Universidad Mayor de San Andres), the problem say that you have to simulate a calculator, i solve it and got AC:

https://ideone.com/AknWo6 <---- Here is my code

but I see a very diferent solution of my friend he first move the diferent operators to the beginning and later process it.

could someone explain me this please.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English LushoPlusPlus 2018-05-31 15:40:36 512 Initial revision (published)