想法题
文章平均质量分 80
安静de想着网名
300字以内
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
acm 模板
卢卡斯定理 主席树 Sunday AC自动机 链式前向星#include<string.h>#define MAX 10000struct node{ int to,nex,wei;}edge[MAX*2+5];int head[MAX+5],cnt;void add(int u,int v,int w)//添加一个单向边u->v 权为w {...原创 2017-08-11 17:47:51 · 363 阅读 · 0 评论 -
Robots at Warehouse【dfs/bfs】
J. Robots at WarehouseVitaly works at the warehouse. The warehouse can be represented as a grid of n × m cells, each of which either is free or is occupied by a container. From every free cell it’s ...原创 2018-07-22 15:05:27 · 277 阅读 · 0 评论 -
gym/101810-N-Dimensional Grid【找规律】
N-Dimensional GridYou are given an n-dimensional grid in which the dimensions of the grid are a1 × a2 × … × an. Each cell in the grid is represented as an n-tuple (x1, x2, …, xn) (1 ≤ xi ≤ ai).Two...原创 2018-07-17 22:37:07 · 641 阅读 · 0 评论 -
[USACO18JAN]Rental Service 【策略】
DescriptionFarmer John realizes that the income he receives from milk production is insufficient to fund the growth of his farm, so to earn some extra money, he launches a cow-rental service, which ...原创 2018-04-21 18:37:05 · 663 阅读 · 0 评论 -
Chess
Chess原创 2018-02-03 13:05:14 · 181 阅读 · 0 评论 -
分糖果
CF-gym-334-AGerald has n younger brothers and their number happens to be even. One day he bought n2 candy bags. One bag has one candy, one bag has two candies, one bag has three candies and so on. I原创 2018-01-29 20:16:26 · 296 阅读 · 0 评论 -
Gym - 101612A 点亮数字
Auxiliary Project原创 2017-11-27 23:29:48 · 417 阅读 · 0 评论 -
HDU 2809 三国风云
At 184~280 A.D ,there were many kingdoms in China. Three strongest among them are “Wei”, “Shu”, “Wu”. People call this period as “Three Kingdoms”.原创 2017-09-07 14:14:02 · 568 阅读 · 0 评论 -
位运算
位运算原创 2017-08-16 11:04:25 · 305 阅读 · 0 评论 -
Origami【栈】
字节跳动冬令营网络赛Chiaki has a very big sheet of paper. This sheet has a form of rectangle with dimensions 1 x n and numbers from 1 to n was written on each small 1 x 1 grid. Chiaki would like to fold the pa...原创 2018-12-01 18:28:58 · 344 阅读 · 0 评论
分享