Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Solution{static void main(String[]a)throws Exception{
- int b,c=0,d=0,i;
- while((b=System.in.read())>10)
- for(i=64;i>0;i/=2){
- String s="0";
- if(d==0||(b&i)>0!=c>0){
- c=b&i;
- s=(d==1?" ":"")+(c>0?"0 ":"00 ")+s;
- d=1;
- }
- System.out.print(s);
- }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement