【UVa】11636 - Hello World!
2016-12-02 23:46
357 查看
Problem here
Solution
water water water water ~~~#include <iostream> using namespace std; int main(){ int n; int kase = 1; while(cin >> n){ if(n < 0) break; int ans = 1; int cnt = 0; while(ans < n){ ans = ans * 2; cnt++; } cout << "Case " << kase++ << ": " << cnt << endl; } return 0; }
相关文章推荐
- UVA 11636 Hello World! 水 .
- UVA 11636 Hello World!(水题)
- UVa 11636 - Hello World!
- ecjtu-summer training #5 A - Hello World! UVA - 11636
- uva第一道题 11636 Hello World
- uva 11636 - Hello World!(规律)
- uva 11636 Hello World!(找规律)
- UVA 11636 Hello World!
- uva11636 - Hello World!
- UVa 11636 - Hello World!
- uva 11636 Hello World!(宽....宽搜.....)
- UVA 11636 Hello World! 水题
- UVa 11636 (注意读题) Hello World!
- UVA11636 - Hello World!
- UVA - 11636 Hello World!
- Uva-11636-Hello World!
- UVa 11636 Hello World!
- UVA 11636 Hello World!
- UVa 11636 - Hello World!
- 贪心水题。UVA 11636 Hello World,LA 3602 DNA Consensus String,UVA 10970 Big Chocolate,UVA 10340 All in All,UVA 11039 Building Designing