Wednesday, August 20, 2014

COJ 1176. Ternary

We need to keep a sequence and every time add the element N%3 to that sequence and divide N to 3 until it becomes 0. And then output the reversed sequence.


       FULL SOURCE CODE

No comments:

Post a Comment