11185 - Ternary

摘要: You will be given a decimal number. You will have to convert it to its ternary (Base 3) equivalent.InputThe input file contains at most 100 lines of inputs. Each line contains a non-negative decimal integer N(N<1000000001). Input is terminated by a line containing a negative value. This line shou 阅读全文
posted @ 2013-02-07 11:32 喂喂还债啦 阅读(236) 评论(0) 推荐(0)

11172 - Relational Operator

摘要: Some operators checks about the relationship between two values and these operators are called relational operators. Given two numerical values your job is just to find out the relationship between them that is (i) First one is greater than the second (ii) First one is less than the second or (iii) 阅读全文
posted @ 2013-02-07 10:55 喂喂还债啦 阅读(262) 评论(0) 推荐(0)