摘要:
Sample Input8 20 25 34 11 27 210 213 316 219 43 10 13 59 36 13 10 15 31 19 1Sample Output62-1题目大意:有一块草坪,长为l,宽为w,在它的水平中心线上有n个位置可以安装喷水装置,各个位置上的喷水装置的覆盖范围... 阅读全文
摘要:
B -二分Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionBefore the invention of book-printing, it was very hard to make a copy of ... 阅读全文
摘要:
设有n=2k个选手参加比赛,要求设计一个满足一下要求的比赛日程表:(1)每个选手必须与其他的n-1个选手个比赛一次;(2)每个选手每天只能赛一次 。(3)循环赛一共进行n-1天设计一个比赛日程表,该表有n行和n-1列,第i行j列为第i个选手第j天遇到的选手#include#includeint a[... 阅读全文
摘要:
问题描述: 在一个2^k×2^k个方格组成的棋盘中,若有一个方格与其他方格不同,则称该方格为一特殊方格,且称该棋盘为一个特殊棋盘.显然特殊方格在棋盘上出现的位置有4^k种情形.因而对任何k≥0,有4^k种不同的特殊棋盘. 下图–图(1)中的特殊棋盘是当k=3时16个特殊棋盘中的一个:图(1) 题... 阅读全文
摘要:
Given several segments of line (int the X axis) with coordinates [Li, Ri]. You are to choose the minimal amount of them, such they would completely co... 阅读全文