随笔分类 -  编程基础

摘要:例题:http://poj.org/problem?id=2104 最近可能是念念不忘,必有回响吧,总是看到区间第k大的问题,第一次看到是在知乎上有人面试被弄懵了后来又多次在比赛中看到。以前大概是知道怎么解决但是没有实际操作过。直到昨天看到了POJ上的2104题,一个标准的区间第K大询问,然后好好总 阅读全文
posted @ 2018-08-17 14:30 GoldenFingers 阅读(5618) 评论(0) 推荐(3) 编辑
摘要:SubsetTime Limit: 30000MS Memory Limit: 65536K Total Submissions: 5961 Accepted: 1129DescriptionGiven a list of N integers wit... 阅读全文
posted @ 2018-05-13 10:21 GoldenFingers 阅读(154) 评论(0) 推荐(0) 编辑
摘要:4 Values whose Sum is 0Time Limit: 15000MS Memory Limit: 228000K Total Submissions: 26974 Accepted: 8133 Case Time Limit: 5... 阅读全文
posted @ 2018-05-11 16:41 GoldenFingers 阅读(102) 评论(0) 推荐(0) 编辑
摘要:Linear worldTime Limit: 3000MS Memory Limit: 65536K Total Submissions: 4514 Accepted: 1025DescriptionThe Disc, being flat, ha... 阅读全文
posted @ 2018-05-07 09:35 GoldenFingers 阅读(120) 评论(0) 推荐(0) 编辑
摘要:Physics ExperimentTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 3392 Accepted: 1177 Special JudgeDescriptio... 阅读全文
posted @ 2018-05-07 09:24 GoldenFingers 阅读(190) 评论(0) 推荐(0) 编辑
摘要:EXTENDED LIGHTS OUTTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 12956 Accepted: 8186DescriptionIn an extende... 阅读全文
posted @ 2018-05-06 09:33 GoldenFingers 阅读(118) 评论(0) 推荐(0) 编辑
摘要:FliptileTime Limit: 2000MS Memory Limit: 65536K Total Submissions: 14701 Accepted: 5381DescriptionFarmer John knows that a... 阅读全文
posted @ 2018-05-06 09:18 GoldenFingers 阅读(168) 评论(0) 推荐(0) 编辑
摘要:The Water BowlsTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 7402 Accepted: 2927DescriptionThe cows have a line ... 阅读全文
posted @ 2018-05-06 09:04 GoldenFingers 阅读(92) 评论(0) 推荐(0) 编辑
摘要:Face The Right WayTime Limit: 2000MS Memory Limit: 65536K Total Submissions: 6259 Accepted: 2898DescriptionFarmer John has ar... 阅读全文
posted @ 2018-05-05 19:52 GoldenFingers 阅读(123) 评论(0) 推荐(0) 编辑
摘要:Graveyard DesignTime Limit: 10000MS Memory Limit: 64000K Total Submissions: 8504 Accepted: 2126 Case Time Limit: 2000MSDescrip... 阅读全文
posted @ 2018-05-05 09:27 GoldenFingers 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Sum of Consecutive Prime NumbersTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 27853 Accepted: 14968Descriptio... 阅读全文
posted @ 2018-05-05 09:15 GoldenFingers 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Bound FoundTime Limit: 5000MS Memory Limit: 65536K Total Submissions: 5408 Accepted: 1735 Special JudgeDescriptionSignal... 阅读全文
posted @ 2018-05-04 17:43 GoldenFingers 阅读(167) 评论(0) 推荐(0) 编辑
摘要:Jessica’s Reading ProblemTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 15224 Accepted: 5241DescriptionJessica... 阅读全文
posted @ 2018-04-25 20:26 GoldenFingers 阅读(109) 评论(0) 推荐(0) 编辑
摘要:SubsequenceTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 18795 Accepted: 8043DescriptionA sequence of N posit... 阅读全文
posted @ 2018-04-25 20:00 GoldenFingers 阅读(201) 评论(0) 推荐(0) 编辑
摘要:关于堆和栈- 以前学习程序设计的时候都是将堆栈合起来一起说的,后来经过很久以后的学才发现堆栈完全是两个东西,也不知道为什么要将堆栈合起来一起说,栈很好理解,就是一个先进后出表,但是堆是一... 阅读全文
posted @ 2018-03-08 08:54 GoldenFingers 阅读(248) 评论(0) 推荐(0) 编辑
摘要:B. Hamster Farmtime limit per test2 seconds memory limit per test256 megabytesProblem DescriptionDima has a hamsters farm. Soon N hams... 阅读全文
posted @ 2018-03-01 15:05 GoldenFingers 阅读(140) 评论(0) 推荐(0) 编辑
摘要:插入排序:能快速处理相对有序的数据,最优情况下复杂度仅仅为O(n)(即原本就是有序的数列);#includeusing namespace std;const int maxn = 100;int num[maxn];void InsertionSort(int n)... 阅读全文
posted @ 2017-10-28 14:41 GoldenFingers 阅读(171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示