[TopCoder] SRM 206 Div 2 - 250

#include <iostream>

using namespace std;

class Bits
{
public:

 int minBits(int n)
 {
 int i;

 for(i = 0; n != 0; i++ )
 {
  n = n >> 1;
 }

 return i;
 }
};

090203_SRM206_Div_2_-_250.txt
090203_SRM206_Div_2_-_250.cpp

by 코난도일 | 2009/02/03 23:39 | 코딩 실습 | 트랙백 | 덧글(0)

트랙백 주소 : http://drshin.egloos.com/tb/2263580
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶