This is the blog of site xoptutorials.com. All the news will be posted here and on the facebook page of xoptutorials.
Pages
▼
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.
No comments:
Post a Comment