文件名称:1181

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2014-07-14
  • 文件大小:
  • 1kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 范**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

acm1181题: 除了写题,zqs还喜欢烤面包。

烤面包需要正反两面各烤一次,每个烤箱同时只能烤一个面包的一面,烤一面需要3分钟,现在他要烤N个面包,有M个烤箱,问烤完所有的面包需要多少时间

Input 有多组输入数据,第一行为一个数字case,代表有多少组输入数据 (case<=20)

以下每组数据一行有2个整数n,m,代表需要烤n个面包,有m个烤箱 (0<=N<=1000,1<=M<=1000)Output 一共case行,每行一个整数对应该组数据拷完所有面包需要多少时间Sample Input2

2 1

3 3

Sample Output12

6-acm1181 Question: In addition to written questions, zqs also like toast. Both sides need each toast grilled once, while each oven can bake a bread side, grilled side need three minutes, and now he wants to bake bread N, there are M oven, finished all the bread baked ask how long it takes Input plurality of sets of input data, the behavior of a first digital case, the number of the representative set of input data (case < = 20) the following data in each row have two integers n, m, n representative of a need to bake bread oven with m (0 < = N < = 1000,1 < = M < = 1000) Output total case lines of a pair of integers set of data should copy the time required to complete all the bread Sample Input2 2 1 3 3 Sample Output12 6
(系统自动生成,下载前可以参看下载内容)

下载文件列表





1181.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org