C++ 编程挑战:数字迷宫探索
#include\u003ciostream\u003e\nusing namespace std;\n\nint main() {\n int n;\n cin \u003e\u003e n;\n \n int count = 0;\n while(n != 0) {\n n = n / 2;\n count++;\n }\n \n cout \u003c\u003c count \u003c\u003c endl;\n \n return 0;\n}
原文地址: http://www.cveoy.top/t/topic/pMsV 著作权归作者所有。请勿转载和采集!