摘要: 题目链接 Problem Description 《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Ch 阅读全文
posted @ 2018-09-22 22:08 会打表的toby 阅读(374) 评论(0) 推荐(1) 编辑
摘要: D. Bicolorings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a grid, con 阅读全文
posted @ 2018-09-21 11:22 会打表的toby 阅读(902) 评论(6) 推荐(6) 编辑
摘要: 题目链接 Problem Description You are playing CSGO. There are n Main Weapons and m Secondary Weapons in CSGO. You can only choose one Main Weapon and one S 阅读全文
posted @ 2018-08-23 16:32 会打表的toby 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description Multiple query, for each n, you need to get $$$$$$ \sum_{i=1}^{n} \sum_{j=1}^{i-1}{ [gcd(i + j, i - j) = 1]} $$$$$$ Input On 阅读全文
posted @ 2018-08-22 19:37 会打表的toby 阅读(720) 评论(0) 推荐(1) 编辑
摘要: E. Inverse Coloring time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a squa 阅读全文
posted @ 2018-08-21 21:37 会打表的toby 阅读(542) 评论(1) 推荐(3) 编辑
摘要: 题目链接 Problem Description Nash Equilibrium is an important concept in game theory. Rikka and Yuta are playing a simple matrix game. At the beginning of 阅读全文
posted @ 2018-08-20 17:31 会打表的toby 阅读(484) 评论(0) 推荐(1) 编辑
摘要: D. Array Restoration time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Initially there was 阅读全文
posted @ 2018-08-18 12:09 会打表的toby 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Problem Description There is an apple tree in front of Taotao's house. When autumn comes, n apples on the tree ripen, and Taotao will go to pick 阅读全文
posted @ 2018-08-16 19:55 会打表的toby 阅读(363) 评论(0) 推荐(1) 编辑
摘要: 题目链接 Problem Description A parentheses matrix is a matrix where every element is either '(' or ')'. We define the goodness of a parentheses matrix as 阅读全文
posted @ 2018-08-15 20:39 会打表的toby 阅读(539) 评论(0) 推荐(2) 编辑
摘要: 题目链接 Problem Description 度度熊正在学习双端队列,他对其翻转和合并产生了很大的兴趣。 初始时有 N 个空的双端队列(编号为 1 到 N ),你要支持度度熊的 Q 次操作。 ①1 u w val 在编号为 u 的队列里加入一个权值为 val 的元素。(w=0 表示加在最前面,w 阅读全文
posted @ 2018-08-11 17:50 会打表的toby 阅读(402) 评论(0) 推荐(0) 编辑