博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
贪心,POJ(2709)
阅读量:6997 次
发布时间:2019-06-27

本文共 652 字,大约阅读时间需要 2 分钟。

题目链接:

解题报告:

#include 
#include
#include
using namespace std;bool cmp(int a,int b){ return a>b;}int colors[15];int main(){ int i; int n, g, ans, _max; while(scanf("%d", &n),n) { memset(colors, 0, sizeof(colors)); _max = 0; for(i=0; i
_max) _max=colors[i]; } scanf("%d",&g); if(_max%50) ans=_max/50+1; else ans=_max/50; for(i=0; i
0) { ans++; for(i=0; i

 

转载于:https://www.cnblogs.com/TreeDream/p/5348206.html

你可能感兴趣的文章
文件缓存
查看>>
bash Shell 中如何实现条件判断之if判断
查看>>
linux守护进程解读
查看>>
Windows操作系统单文件夹下到底能存放多少文件及单文件的最大容量
查看>>
POJ2079:Triangle——题解
查看>>
关于UITableView 不能回调 tableView: cellForRowAtIndexPath的问题
查看>>
linux 批量创建用户获取8位随机密码
查看>>
WPF 单实例应用程序
查看>>
解决wordpress无法发送邮件的问题|配置好WP-Mail-SMTP的前提
查看>>
debian包之间的关系
查看>>
php生成随机数mt_rand和rand
查看>>
04.Linux Disk Partition & Mount Point
查看>>
ios系统的特点
查看>>
mac下配置java运行环境
查看>>
gsoap、c++。webservice的client。
查看>>
java中sleep()和wait()的区别
查看>>
[JAVA]UUID
查看>>
Win10优化
查看>>
【洛谷P1352】没有上司的舞会
查看>>
js中数组的合并和对象的合并
查看>>