TOJ 4102 White Rats
来源:互联网 发布:微信企业号 php源码 编辑:程序博客网 时间:2024/05/17 03:49
The description of this problem is misunderstanding.Because I can make one LAB rats drink wines till dead.
The portal:http://acm.tju.edu.cn/toj/showp4102.html
#include <cstdio>#include <cstdlib>#include <cmath>#include <cstring>long long f[105];void Deal_with(){ int T; f[0] = 1; for(int i=1;i<=32;i++){ f[i] = f[i-1] * 2; } scanf("%d",&T); while(T--){ long long n; scanf("%lld",&n); for(int i=0;i<=32;i++){ if(f[i] >= n){ printf("%d\n",i); break; } } }}int main(void){ Deal_with(); return 0;}
0 0
- TOJ 4102 White Rats
- TOJ 4102. White Rats
- White
- Rats and Poisoned water
- Codeforces Round #155 (Div. 2) D-rats
- The Unquiet Grave——2、Rats
- rat/rats--用有理数形式表示矩阵
- White(一)
- White(二)
- white-space
- White List
- white-space
- white noise
- White Rectangles
- white-space
- winequality-white
- TOJ 2976
- toj 3140
- iOS property 用法
- 学会认清时间的意义
- 嵌入式开发中堆栈溢出导致程序异常退出
- NYOJ 168 房间安排
- animation - 4
- TOJ 4102 White Rats
- Lua与c/c++交互
- 同一台机器安装多个python版本
- /etc/profile与/etc/bashrc、交互式与非交互式、login与non-login shell的区别
- 手斧Linux – 从LFS到Funtoo (145)
- Spring的Maven项目错误
- android开发环境配置(使用Android Studio)
- 手斧Linux – 从LFS到Funtoo (146)
- Pipeline Partitioning