数学计算机王子 提交的代码
提交时间: 2020 八月
语言: C++
运行时间: 0ms
占用内存: 253K
Accepted
代码内容

登录之后查看代码,点此登录账号

#include <iostream>

using namespace std;

int main()
{
	string s = "000000";
	while (s != "111111")
    {
        cout << s << endl;
        int index = 5;
        while (s[index] != '0')
        {
            s[index] = '0';
            index--;
        }
        s[index] = '1';
	}
	cout << s << endl;
}