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

  • 博客园
  • 联系
  • 订阅
  • 管理
上一页 1 ··· 4 5 6 7 8

2015年7月19日

CodeForces 546B C(Contest #1)

摘要: DescriptionColonel has n badges. He wants to give one badge to every of his n soldiers. Each badge has a coolness factor, which shows how much it's ow... 阅读全文

posted @ 2015-07-19 21:24 tony-cao 阅读(154) 评论(0) 推荐(0)

POJ 1700 F(Contest #3)

摘要: DescriptionA group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arr... 阅读全文

posted @ 2015-07-19 21:14 tony-cao 阅读(116) 评论(0) 推荐(0)

HDU 4627 E(Contest #3)

摘要: Description There are many unsolvable problem in the world.It could be about one or about zero.But this time it is about bigger number. Given an inte... 阅读全文

posted @ 2015-07-19 21:09 tony-cao 阅读(134) 评论(0) 推荐(0)

CSU 1021 B(Contest #3)

摘要: Description从m个不同元素中取出n (n ≤ m)个元素的所有组合的个数,叫做从m个不同元素中取出n个元素的组合数。组合数的计算公式如下:C(m, n) = m!/((m - n)!n!)现在请问,如果将组合数C(m, n)写成二进制数,请问转这个二进制数末尾有多少个零。Input第一行是... 阅读全文

posted @ 2015-07-19 21:02 tony-cao 阅读(116) 评论(0) 推荐(0)

2015年7月17日

CSU 1111 D(Contest #3)

摘要: 有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这么想你就上当... 阅读全文

posted @ 2015-07-17 21:37 tony-cao 阅读(134) 评论(0) 推荐(0)

CSU 1160 A(Contest #3)

摘要: Description把十进制整数转换为十六进制,格式为0x开头,10~15由大写字母A~F表示。Input每行一个整数x,0#include #include using namespace std;int main(){ int x; while(scanf("%d",&x)!=EOF) { p... 阅读全文

posted @ 2015-07-17 21:09 tony-cao 阅读(139) 评论(0) 推荐(0)

CodeForces 546A-Soldier and Bananas

摘要: 题意: 有n dollar,the first banana cost k dollars,第i个就需cost k*i,问买w个bananas是否需要借钱;借钱需要多少? 分析:首先计算w个bananas需要多少money,在与n比较。 阅读全文

posted @ 2015-07-17 20:57 tony-cao 阅读(268) 评论(0) 推荐(0)

2015年7月16日

The Coco-Cola Store C(Contest #3 )

摘要: Once upon a time, there is a special coco-cola store. If you return three empty bottles to the shop, you’ll get a full bottle of coco-cola to drink... 阅读全文

posted @ 2015-07-16 22:05 tony-cao 阅读(137) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3