#24759: bitset + find_first_not_of 秒殺


fire5386 (becaidorz)


bitset<32> b;

while(cin >> n) {

b = n;

string s = b.to_string();

s.erase(0, s.find_first_not_of('0')); //移除前面多餘的0

cout << s << "\n";

}