且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

hdu 2051 Bitset (java)

更新时间:2022-09-16 11:04:31

问题:
之前做过类似题,但这次仍然不能解决相关问题。


字符串倒过来输:StringBuffer str=new StringBuffer(s); s=str.reverse().toString()


Bitset

Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 15548    Accepted Submission(s): 11804


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

代码:






本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5069855.html,如需转载请自行联系原作者