![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
文章平均质量分 81
非常可乐(이녕)
贵在自知,贵在坚持
展开
-
Codeforces 617C Watering Flowers 【暴力 数据范围】
C. Watering Flowerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flowerbed has many flowers and two fo原创 2016-01-25 02:44:54 · 804 阅读 · 0 评论 -
【洛谷P2602】【数字计数】【来自小zhu的奥数计数方法】
题目描述给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。输入格式输入文件中仅包含一行两个整数a、b,含义如上所述。输出格式输出文件中包含一行10个整数,分别表示0-9在[a,b]中出现了多少次。输入样例1 99输出样例9 20 20 20 20 20 20 20 20 20分析:小zhu教给我的计数方法:例如213中有多少个1个位1...原创 2019-09-16 11:38:17 · 285 阅读 · 1 评论 -
最大连续子序列和
最大连续子序列和 转载于http://blog.csdn.net/sgbfblog/article/details/8032464 最大连续子序列和问题是个很老的面试题了,最佳的解法是O(N)复杂度,当然其中的一些小的地方还是有些值得注意的地方的。这里还是总结三种常见的解法,重点关注最后一种O(N)的解法即可。需要注意的是有些题目中的最大连续子序列和如果为负,则返回0;而本题目中的最大连续子序列转载 2018-01-19 11:42:21 · 302 阅读 · 0 评论 -
HDOJ 5935 Car【模拟】
CarTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 256 Accepted Submission(s): 92Problem DescriptionRuins is driving a car to p原创 2016-10-30 19:27:53 · 466 阅读 · 0 评论 -
Codeforces 552C. Vanya and Scales【巧】
C. Vanya and Scalestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya has a scales for weighing loads an原创 2016-04-22 21:45:46 · 452 阅读 · 0 评论 -
NYOJ 303 序号互换【模拟】
序号互换时间限制:1000 ms | 内存限制:65535 KB难度:2描述Dr.Kong设计了一个聪明的机器人卡多,卡多会对电子表格中的单元格坐标快速计算出来。单元格的行坐标是由数字编号的数字序号,而列坐标使用字母序号。观察字母序号,发现第1列到第26列的字母序号分别为A,B,…,Z,接着,第27列序号为AA,第28列为AB,依此类推。若给Dr原创 2016-04-19 16:51:58 · 284 阅读 · 0 评论 -
Whu oj 1609 - Han Move
Problem 1609 - Han Move Time Limit: 1000MS Memory Limit: 65536KB Total Submit: 613 Accepted: 158 Special Judge: NoDescriptionCyy and Fzz are Han Move lovers. One day, they gather to原创 2016-04-09 19:47:50 · 401 阅读 · 0 评论 -
Whu oj 1606 - Funny Sheep
Problem 1606 - Funny Sheep Time Limit: 1000MS Memory Limit: 65536KB Total Submit: 605 Accepted: 165 Special Judge: NoDescriptionThere are N+1 rows and M+1 columns fence with N*M g原创 2016-04-09 19:43:25 · 313 阅读 · 0 评论 -
Whu oj Problem 1603 - Minimum Sum
Problem 1603 - Minimum Sum Time Limit: 2000MS Memory Limit: 65536KB Total Submit: 541 Accepted: 147 Special Judge: NoDescriptionThere are n numbers A[1] , A[2] .... A[n], you can原创 2016-04-09 19:40:22 · 346 阅读 · 0 评论 -
codeforces 540B School Marks
B. School Markstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vova studies programming in an elite原创 2016-03-08 16:31:49 · 398 阅读 · 0 评论 -
CodeForces 611B New Year and Old Property【DFS&&模拟位运算】
B. New Year and Old Propertytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe year 2015 is almost over.原创 2016-01-10 20:45:54 · 621 阅读 · 0 评论 -
HDOJ 5610 Baby Ming and Weight lifting
Baby Ming and Weight liftingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 446 Accepted Submission(s): 174Problem Description原创 2016-01-25 03:11:51 · 419 阅读 · 0 评论 -
Codeforces 617B Chocolate
B. Chocolatetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob loves everything sweet. His favorite chocol原创 2016-01-25 02:51:35 · 466 阅读 · 0 评论 -
Codeforces 617A Elephant
A. Elephanttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn elephant decided to visit his friend. It turn原创 2016-01-25 02:48:06 · 574 阅读 · 0 评论 -
Codeforces D Polyline
D. Polylinetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are three points marked on the coordinate原创 2016-01-25 02:54:25 · 869 阅读 · 0 评论 -
【codeforces1060C】【思维】【Maximum Subrectangle】
题目来源: http://codeforces.com/problemset/problem/1060/C题目描述现有两个长度分别为n,mn, mn,m的数组a,ba, ba,b,数组中的元素都为正数,令CCC为一个n×mn \times mn×m的矩阵,其中Ci,j=ai⋅bjC_{i, j} = a_i \cdot b_jCi,j=ai⋅bj。现需要找CCC的一个子矩阵,子矩阵的元素...原创 2019-09-16 14:40:51 · 237 阅读 · 0 评论