Codeforces-985B - Switches and Lamps - 思维
题目链接 https://codeforces.com/contest/985/problem/B 题目 You are given n switches and m lamps. The i-th switch turns on some subset of the lamps. This information is given as the matrix a consisti...
题目链接 https://codeforces.com/contest/985/problem/B 题目 You are given n switches and m lamps. The i-th switch turns on some subset of the lamps. This information is given as the matrix a consisti...
题目链接 https://codeforces.com/contest/985/problem/A 题目 You are given a chessboard of size $1 × n$. It is guaranteed that n is even. The chessboard is painted like this: “BWBW…BW”. Some cells of...
题解链接 题目链接 https://arc061.contest.atcoder.jp/tasks/arc061_b 题目 Problem Statement We have a grid with $H$ rows and $W$ columns. At first, all cells were painted white. Snuke painted N of the...
题解链接 题目链接 https://arc060.contest.atcoder.jp/tasks/arc060_b 题目 Problem Statement For integers b(b≥2) and n(n≥1), let the function f(b,n) be defined as follows: $f(b,n)=n$, when $n<b$ $f(...
题目链接 https://arc060.contest.atcoder.jp/tasks/arc060_c 题目 Problem Statement N hotels are located on a straight line. The coordinate of the i-th hotel $(1≤i≤N)$ is $x_i$. Tak the traveler has t...
题目链接 https://arc060.contest.atcoder.jp/tasks/arc060_a 题目 Problem Statement Tak has $N$ cards. On the $i$-th $(1≤i≤N)$ card is written an integer $x_i$. He is selecting one or more cards from t...
在线剪切板 最近ubuntu paste的尾缀变得很麻烦,在这里推荐一个很方便的有类似功能的网站:pasteme.cn 在主域名后直接敲入自己相好的关键字,比如pasteme.cn/qwer,就可以创建一个剪切板,将文字粘贴上去即可。另一端输入相同的url就可以查看,而且每次新建的剪切板只能被查看一次,看完之后自动销毁。 在线拼音输入法 主要是方便英文环境又不想安装中文输入...
题目链接 https://arc059.contest.atcoder.jp/tasks/arc059_d 题目 Problem Statement Sig has built his own keyboard. Designed for ultimate simplicity, this keyboard only has $3$ keys on it: the 0 key, t...
题目链接 https://codeforces.com/contest/984/problem/E 题目 You work in a big office. It is a $9$ floor building with an elevator that can accommodate up to $4$ people. It is your responsibility to m...
题目链接 https://www.luogu.org/problemnew/show/P1541 题目 题目背景 小明过生日的时候,爸爸送给他一副乌龟棋当作礼物。 题目描述 乌龟棋的棋盘是一行N个格子,每个格子上一个分数(非负整数)。棋盘第1格是唯一的起点,第N格是终点,游戏要求玩家控制一个乌龟棋子从起点出发走到终点。 乌龟棋中M张爬行卡片,分成4种不同的类型(M张卡片中不...