题意:
给定长为 n 的 0, 1 字符串,你可以通过一次操作改变一个字符(0 变 1 or 1 变 0),问最少几次操作可以使任意相邻两个 1 之间的距离为 k ?
题目:
You are given a garland consisting of n lamps. …
题意:
定义: an1anminDigit(an)maxDigit(an)。
给定 a1 和 k,求 ak ?
题目:
Let’s define the following recurrence: an1anminDigit(an)⋅maxDigit(an). Here minDigit(x) and maxDigit(x) are the minimal and …
题意:
给你两个大小一样的,边长为a,b的矩形将其放入一个正方形里,问怎样放可以使正方形面积最小(要求正方形边和矩形边平行)
题目:
Find the minimum area of a square land on which you ca…