close

靠妖 很久沒發文
竟然發這種廢文

#include
#include
#include
#include
#include

 using namespace std;

 int main() {   
    int a;
    int total=0;
    int left=1;
   while  (cin >> a) {
       while ( a!=0 ) {
  total += ((a%2)*left);
  a = a/2;
  left *= 10;
  }  
cout << total << endl; 
total = 0;
left = 1;
   }
   return 0;
  }

arrow
arrow
    全站熱搜

    loveke 發表在 痞客邦 留言(7) 人氣()