2 条题解
-
-1yejun LV 10 MOD @ 2018-12-07 16:29:04
#include <iostream> #include <cmath> #include <cstdio> using namespace std; int Count(int x) { return log2(x)+1; } int main() { // freopen("H:\\命题\\0 网站\\1\\Test\\Input\\input4.txt","r",stdin); // freopen("H:\\命题\\0 网站\\1\\Test\\Output\\output4.txt","w",stdout); int x; cin>>x; cout<<Count(x)<<endl; return 0; }
-
-12018-12-07 16:29:03@
#include <iostream> #include <cmath> #include <cstdio> using namespace std; int Count(int x) { return log2(x)+1; } int main() { // freopen("H:\\命题\\0 网站\\1\\Test\\Input\\input4.txt","r",stdin); // freopen("H:\\命题\\0 网站\\1\\Test\\Output\\output4.txt","w",stdout); int x; cin>>x; cout<<Count(x)<<endl; return 0; }
- 1
信息
- 难度
- 6
- 分类
- (无)
- 标签
- 递交数
- 699
- 已通过
- 196
- 通过率
- 28%
- 被复制
- 10
- 上传者