• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






ltc_out

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2017年7月3日

poj1190 生日蛋糕
摘要: 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri, 高度为Hi的圆柱。当i < M时,要求Ri > Ri+1且Hi > Hi+1。 由于要在蛋糕上抹奶油,为尽可能节约经费,我们希望蛋糕 阅读全文
posted @ 2017-07-03 19:04 ltc_out 阅读(114) 评论(0) 推荐(0)
 

2017年5月13日

spfa算法详解
摘要: program: #include<cstdio> using namespace std; struct node {int x; int value; int next; }; node e[60000]; int visited[1505],dis[1505],st[1505],queue[1 阅读全文
posted @ 2017-05-13 23:06 ltc_out 阅读(224) 评论(0) 推荐(0)
 

2017年5月10日

ZOJ 2770 Burn the Linked Camp 差分约束 (转)
摘要: It is well known that, in the period of The Three Empires, Liu Bei, the emperor of the Shu Empire, was defeated by Lu Xun, a general of the Wu Empire. 阅读全文
posted @ 2017-05-10 22:59 ltc_out 阅读(127) 评论(0) 推荐(0)
 

2017年4月20日

hdu 1695(欧拉函数 容斥定理)
摘要: Given 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y) means the greatest common divisor of x and y. Sin 阅读全文
posted @ 2017-04-20 23:09 ltc_out 阅读(189) 评论(0) 推荐(0)
 

2017年4月12日

Buy the souvenirs (01背包,动归)
摘要: When the winter holiday comes, a lot of people will have a trip. Generally, there are a lot of souvenirs to sell, and sometimes the travelers will buy 阅读全文
posted @ 2017-04-12 22:33 ltc_out 阅读(131) 评论(0) 推荐(0)
 

2017年4月6日

poj 2823 单调队列
摘要: Sliding Window Time Limit: 12000MSMemory Limit: 65536KTotal Submissions: 559348Accepted: 12040Case Time Limit: 5000MS Description An array of size n ≤ 阅读全文
posted @ 2017-04-06 18:10 ltc_out 阅读(96) 评论(0) 推荐(0)
 

2017年4月1日

合并果子
摘要: 1840: 合并果子 Description 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。 每一次合并,多多可以把两堆果子合并到一起,消耗的体力等于两堆果子的重量之和。可以看出,所有的果子经过n-1次合并之后,就只剩下一堆了。多多在合 阅读全文
posted @ 2017-04-01 22:27 ltc_out 阅读(274) 评论(0) 推荐(0)
 
uva 12325 枚举暴力 b
摘要: Some brave warriors come to a lost village. They are very lucky and find a lot of treasures and a big treasure chest, but with angry zombies. The warr 阅读全文
posted @ 2017-04-01 22:15 ltc_out 阅读(139) 评论(0) 推荐(0)
 

2017年3月17日

POJ 1328 Radar lnstallation 2
摘要: } 阅读全文
posted @ 2017-03-17 23:23 ltc_out 阅读(150) 评论(0) 推荐(0)