uva 11556 - Best Compression Ever(水题)
来源:互联网 发布:arduino软件下载 编辑:程序博客网 时间:2024/05/17 06:16
题目链接:uva 11556 - Best Compression Ever
题目大意:有n个文件,问说用b+1位是否可以表示,全0不能表示。
解题思路:水题,不过话说英语实在看不懂啊,题意是半猜的。
#include <cstdio>#include <cstring>#include <algorithm>using namespace std;typedef long long ll;int main () { ll n, b; while (scanf("%lld%lld", &n, &b) == 2) { ll m = (1LL<<(b+1)) - 1; printf("%s\n", n <= m ? "yes" : "no"); } return 0;}
0 0
- uva 11556 - Best Compression Ever(水题)
- UVa 11556 - Best Compression Ever
- toj3095 Best Compression Ever 不懂 求解释?
- Best Training Ever
- LightOj 1111 - Best Picnic Ever
- LightOJ - 1111 Best Picnic Ever
- 题目2 : Best Compression Algorithms
- [网易笔试]Best Compression Algorithms
- UVA 1351 - String Compression
- The 46 Best-ever Freeware Utilities
- The 46 Best-ever Freeware Utilities-some
- Oracle Buys Sun: The Best Deal Ever
- Top 20 Best Agile Development Books, Ever
- Light OJ 1111 Best Picnic Ever
- The 10 Best MVC Tips Ever
- LightOJ - 1111 Best Picnic Ever (搜索)
- LightOJ 1111 Best Picnic Ever 简单bfs
- The 18 best image file compression tools
- 常见排序算法(转)
- maven
- hdu4821 字符串哈希
- android:id
- 辣妈萌宝面试心得体会
- uva 11556 - Best Compression Ever(水题)
- data cleaning(数据清洗) 课程笔记
- 用于浏览图片的Activity
- C中使用正则表达式
- 私有ip
- poj 2456 Aggressive cows(二分查找)
- 生成组合和排列方法总结
- hdu 2099整除的尾数
- ORACLE 使用DBMS_METADATA.GET_DDL获取DDL语句