hdu2051

maksyuki 发表于 oj 分类,标签:
0

Bitset

Problem Description

Give you a number on base ten,you should output it on base two.(0 < n < 1000)

Input

For each case there is a postive number n on base ten, end of file.

Output

For each case output a number on base two.

Sample Input

1

2

3

Sample Output

1

10

11

Author

8600 && xhd

Source

校庆杯Warm Up

 

题目类型:bitset的简单使用

算法分析:直接用输入的十进制数N来初始化一个bitset变量,然后按照要求输出答案即可(没有前导零)