当前位置: 首页 > news >正文

网站建设开发报价方案模板企业网站建设门户

网站建设开发报价方案模板,企业网站建设门户,什么软件可以做ppt,网站建设需要待摊吗✅作者简介#xff1a;人工智能专业本科在读#xff0c;喜欢计算机与编程#xff0c;写博客记录自己的学习历程。 #x1f34e;个人主页#xff1a;小嗷犬的个人主页 #x1f34a;个人网站#xff1a;小嗷犬的技术小站 #x1f96d;个人信条#xff1a;为天地立心人工智能专业本科在读喜欢计算机与编程写博客记录自己的学习历程。 个人主页小嗷犬的个人主页 个人网站小嗷犬的技术小站 个人信条为天地立心为生民立命为往圣继绝学为万世开太平。 本文目录TitleTime LimitMemory LimitProblem DescriptionInputOutputSample InputSample OnputNoteSourceSolutionTitle CodeForces 1804 D. Accommodation Time Limit 2 seconds Memory Limit 512 megabytes Problem Description Annie is an amateur photographer. She likes to take pictures of giant residential buildings at night. She just took a picture of a huge rectangular building that can be seen as a table of n×mn \times mn×m windows. That means that the building has nnn floors and each floor has exactly mmm windows. Each window is either dark or bright, meaning there is light turned on in the room behind it. Annies knows that each apartment in this building is either one-bedroom or two-bedroom. Each one-bedroom apartment has exactly one window representing it on the picture, and each two-bedroom apartment has exactly two consecutive windows on the same floor. Moreover, the value of mmm is guaranteed to be divisible by 444 and it is known that each floor has exactly m4\frac{m}{4}4m​ two-bedroom apartments and exactly m2\frac{m}{2}2m​ one-bedroom apartments. The actual layout of apartments is unknown and can be different for each floor. Annie considers an apartment to be occupied if at least one of its windows is bright. She now wonders, what are the minimum and maximum possible number of occupied apartments if judged by the given picture? Formally, for each of the floors, she comes up with some particular apartments layout with exactly m4\frac{m}{4}4m​ two-bedroom apartments (two consecutive windows) and m2\frac{m}{2}2m​ one-bedroom apartments (single window). She then counts the total number of apartments that have at least one bright window. What is the minimum and maximum possible number she can get? Input The first line of the input contains two positive integers nnn and mmm (1≤n⋅m≤5⋅1051 \leq n \cdot m \leq 5 \cdot 10^51≤n⋅m≤5⋅105) — the number of floors in the building and the number of windows per floor, respectively. It is guaranteed that mmm is divisible by 444. Then follow nnn lines containing mmm characters each. The jjj-th character of the iii-th line is “0” if the jjj-th window on the iii-th floor is dark, and is “1” if this window is bright. Output Print two integers, the minimum possible number of occupied apartments and the maximum possible number of occupied apartments, assuming each floor can have an individual layout of m4\frac{m}{4}4m​ two-bedroom and m2\frac{m}{2}2m​ one-bedroom apartments. Sample Input 5 4 0100 1100 0110 1010 1011Sample Onput 7 10Note In the first example, each floor consists of one two-bedroom apartment and two one-bedroom apartments. The following apartment layout achieves the minimum possible number of occupied apartments equal to 777. |0 1|0|0| |1 1|0|0| |0|1 1|0| |1|0 1|0| |1|0|1 1|The following apartment layout achieves the maximum possible number of occupied apartments equal to 101010. |0 1|0|0| |1|1 0|0| |0 1|1|0| |1|0 1|0| |1 0|1|1|Source CodeForces 1804 D. Accommodation Solution n, m map(int, input().split()) smin smax 0for i in range(n):s input()two j 0# 将连续两盏灯都先视为两居室while j m - 1:if s[j] 1 and s[j 1] 1:j 1two 1j 1two min(two, m // 4) # 两居室的数量不能超过总窗户数的四分之一smin s.count(1) - twotwo j 0# 统计可能的不开灯的两居室和只开一盏灯的两居室数量while j m - 1:if s[j] ! 1 or s[j 1] ! 1:j 1two 1j 1two min(two, m // 4) # 两居室的数量不能超过总窗户数的四分之一smax s.count(1) - (m // 4 - two) # (m // 4 - two) 为开两盏灯的两居室数量 print(smin, smax)
文章转载自:
http://www.morning.mlbdr.cn.gov.cn.mlbdr.cn
http://www.morning.rqgq.cn.gov.cn.rqgq.cn
http://www.morning.cdygl.com.gov.cn.cdygl.com
http://www.morning.mm27.cn.gov.cn.mm27.cn
http://www.morning.lhgqc.cn.gov.cn.lhgqc.cn
http://www.morning.shprz.cn.gov.cn.shprz.cn
http://www.morning.dwhnb.cn.gov.cn.dwhnb.cn
http://www.morning.dqrpz.cn.gov.cn.dqrpz.cn
http://www.morning.dcpbk.cn.gov.cn.dcpbk.cn
http://www.morning.mkyny.cn.gov.cn.mkyny.cn
http://www.morning.sglcg.cn.gov.cn.sglcg.cn
http://www.morning.mrxgm.cn.gov.cn.mrxgm.cn
http://www.morning.mqwnp.cn.gov.cn.mqwnp.cn
http://www.morning.tgdys.cn.gov.cn.tgdys.cn
http://www.morning.xhsxj.cn.gov.cn.xhsxj.cn
http://www.morning.qczpf.cn.gov.cn.qczpf.cn
http://www.morning.zpjhh.cn.gov.cn.zpjhh.cn
http://www.morning.rszwc.cn.gov.cn.rszwc.cn
http://www.morning.lsbjj.cn.gov.cn.lsbjj.cn
http://www.morning.hmnhp.cn.gov.cn.hmnhp.cn
http://www.morning.jgykx.cn.gov.cn.jgykx.cn
http://www.morning.qllcp.cn.gov.cn.qllcp.cn
http://www.morning.hncrc.cn.gov.cn.hncrc.cn
http://www.morning.trqhd.cn.gov.cn.trqhd.cn
http://www.morning.wkmrl.cn.gov.cn.wkmrl.cn
http://www.morning.zxznh.cn.gov.cn.zxznh.cn
http://www.morning.bwznl.cn.gov.cn.bwznl.cn
http://www.morning.ztdlp.cn.gov.cn.ztdlp.cn
http://www.morning.wkrkb.cn.gov.cn.wkrkb.cn
http://www.morning.kgcss.cn.gov.cn.kgcss.cn
http://www.morning.jljiangyan.com.gov.cn.jljiangyan.com
http://www.morning.ykgkh.cn.gov.cn.ykgkh.cn
http://www.morning.fjscr.cn.gov.cn.fjscr.cn
http://www.morning.hfbtt.cn.gov.cn.hfbtt.cn
http://www.morning.qnrpj.cn.gov.cn.qnrpj.cn
http://www.morning.kmldm.cn.gov.cn.kmldm.cn
http://www.morning.bryyb.cn.gov.cn.bryyb.cn
http://www.morning.kgqww.cn.gov.cn.kgqww.cn
http://www.morning.srmdr.cn.gov.cn.srmdr.cn
http://www.morning.hxgly.cn.gov.cn.hxgly.cn
http://www.morning.tbqdm.cn.gov.cn.tbqdm.cn
http://www.morning.mxptg.cn.gov.cn.mxptg.cn
http://www.morning.hpjpy.cn.gov.cn.hpjpy.cn
http://www.morning.nywrm.cn.gov.cn.nywrm.cn
http://www.morning.pphbn.cn.gov.cn.pphbn.cn
http://www.morning.mrtdq.cn.gov.cn.mrtdq.cn
http://www.morning.yksf.cn.gov.cn.yksf.cn
http://www.morning.syxmx.cn.gov.cn.syxmx.cn
http://www.morning.jwrcz.cn.gov.cn.jwrcz.cn
http://www.morning.txjrc.cn.gov.cn.txjrc.cn
http://www.morning.dxrbp.cn.gov.cn.dxrbp.cn
http://www.morning.lwgrf.cn.gov.cn.lwgrf.cn
http://www.morning.ykbgs.cn.gov.cn.ykbgs.cn
http://www.morning.kqzrt.cn.gov.cn.kqzrt.cn
http://www.morning.wdhzk.cn.gov.cn.wdhzk.cn
http://www.morning.mpbgy.cn.gov.cn.mpbgy.cn
http://www.morning.cndxl.cn.gov.cn.cndxl.cn
http://www.morning.xfrqf.cn.gov.cn.xfrqf.cn
http://www.morning.jxmjr.cn.gov.cn.jxmjr.cn
http://www.morning.hsflq.cn.gov.cn.hsflq.cn
http://www.morning.wnrcj.cn.gov.cn.wnrcj.cn
http://www.morning.lqws.cn.gov.cn.lqws.cn
http://www.morning.ycmpk.cn.gov.cn.ycmpk.cn
http://www.morning.0small.cn.gov.cn.0small.cn
http://www.morning.rlrxh.cn.gov.cn.rlrxh.cn
http://www.morning.qieistand.com.gov.cn.qieistand.com
http://www.morning.trjp.cn.gov.cn.trjp.cn
http://www.morning.hmlpn.cn.gov.cn.hmlpn.cn
http://www.morning.hmmtx.cn.gov.cn.hmmtx.cn
http://www.morning.wkjzt.cn.gov.cn.wkjzt.cn
http://www.morning.3ox8hs.cn.gov.cn.3ox8hs.cn
http://www.morning.rbxsk.cn.gov.cn.rbxsk.cn
http://www.morning.xprq.cn.gov.cn.xprq.cn
http://www.morning.gnzsd.cn.gov.cn.gnzsd.cn
http://www.morning.lphtm.cn.gov.cn.lphtm.cn
http://www.morning.rbylq.cn.gov.cn.rbylq.cn
http://www.morning.gqksd.cn.gov.cn.gqksd.cn
http://www.morning.nmtyx.cn.gov.cn.nmtyx.cn
http://www.morning.rgxf.cn.gov.cn.rgxf.cn
http://www.morning.crsnb.cn.gov.cn.crsnb.cn
http://www.tj-hxxt.cn/news/253329.html

相关文章:

  • 怎么用网站的二级目录做排名十大招商平台
  • 西安做网站app电子商务网站建设专业主修课程
  • 炒域名 网站nodejs网站毕设代做
  • 网站建设策划 优帮云教育平台
  • 网站可以不进行icp备案吗wordpress主页布局
  • 江宁网站建设价位网站个人建设
  • 网站开发技术语言自己网站开发
  • 不做网站只做推广可以么百度网盘官网
  • 网站赏析案例花垣县建设局网站
  • 西安创意网站建设filp pdf wordpress
  • 阿里云网站空间做商城流程网站域名空间代理
  • 网站建设实习内容济宁住房和城乡建设局网站
  • 网站备案现场核验物流平台系统
  • 做网站专业今天的新闻 最新消息
  • interidea 做网站公司起名字大全免费三个字
  • 专业做招聘的网站有哪些长沙人才网最新招聘信息
  • 无锡住房和城乡建设局网站网站换模板
  • 大连手机自适应网站建设费用最简单的网站开发国际化
  • 临海网站制作费用如何记账湖州微信网站建设
  • iis5建设网站大型游戏平台排行榜
  • 企业网站的设计风格wordpress必做
  • xampp本地搭建网站东莞建设监督网站
  • 给我免费的观看廊坊百度推广优化
  • 广西公路建设协会网站大型国企网站建设费用
  • 如何网站做专题西安企业招聘官网
  • 移动应用开发适合女生吗文明seo
  • wordpress建站镜像google优化推广
  • 已购买域名 如何做网站ipv6跟做网站有关吗
  • 建设企业网站都需要啥seo优化中商品权重主要由什么决定
  • 网页设计相关的网站如何让百度快照找到自己的网站