
贪心
ZZ --瑞 hopeACMer
WA就完事了
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
完美矩阵
Problem Description给你n个连续的宽为1的长方形,高为a[i]。完美矩形指的就是:所给图形里面包含最大面积的矩形。输出完美矩形的面积。Input第一行给你一个正整数 n(1<=n<=1e5),第二行给你 n 个正整数 ai,分别代表第 i 个长方形的高度。Output输出完美矩形的面积Sample Input72 1 4 5 1 3 3Sampl...原创 2019-02-22 14:31:37 · 998 阅读 · 0 评论 -
D
The process of mammoth’s genome decoding in Berland comes to its end!One of the few remaining tasks is to restore unrecognized nucleotides in a found chain s. Each nucleotide is coded with a capital ...原创 2019-02-11 23:06:02 · 134 阅读 · 0 评论 -
F
Galya is playing one-dimensional Sea Battle on a 1 × n grid. In this game a ships are placed on the grid. Each of the ships consists of b consecutive cells. No cell can be part of two ships, however, ...原创 2019-02-11 23:06:44 · 116 阅读 · 0 评论 -
H - 水果 HDU - 1263
夏天来了~~好开心啊,呵呵,好多好多水果~~Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了.Input第一行正整数N(0<N<=10)表示有N组测试数据.每组测试数据的第一行是一个整数M(0<M<=100),表示工有M次成功的交易.其后有M行数据,每行表示...原创 2019-02-21 08:09:58 · 260 阅读 · 0 评论