大白书
---Panda
这个作者很懒,什么都没留下…
展开
-
uva 11300
这是个纯粹推理数学公式的题 A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to原创 2016-05-23 09:46:32 · 341 阅读 · 0 评论 -
la 3078
#include <iostream> #include <algorithm> #include <cmath> #include <iomanip> #include <stdio.h> using namespace std; double d[100000],p[100000]; int main() { int n,m; while(cin>>n>>m) {原创 2016-05-23 21:03:52 · 249 阅读 · 0 评论 -
大白书 第三页
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct job { int b; int j; } ; bool cmp(job a,job b) { return a.j>b.j; } void in(job &s) { cin>>s.b>>s.j;原创 2016-05-19 17:44:14 · 309 阅读 · 0 评论 -
uva 11078 开放式学分制 便于理解下尺取法以及动态的思想吧
刷题链接https://vjudge.net/problem/UVA-11078题目大意为在序列中找两个数 使得两个数的差最大。 ai和aj (i for(int i=0;i<n;i++) { for(int j=i+1;j<n;j++) { if(a[i]-a[j]>max) max=a[i]-a[j]; }原创 2017-01-10 00:29:04 · 358 阅读 · 0 评论 -
uva 11384 正整数序列
Dexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But Dexter does not have time原创 2017-01-10 00:41:00 · 342 阅读 · 0 评论 -
LA 2678 子序列 又是尺取法
题目大意 有n个正整数组成一个序列,给定一个s,求长度最短的连续序列,使他们的和大于或等于s。 题目链接:点击打开链接 尺取法:就是尺取法 我的分类里面有教程 #include #include using namespace std; long long d[100005],sum; int main() { long long n,s; whil原创 2017-01-11 23:16:55 · 308 阅读 · 0 评论 -
POJ - 3061 Subsequence
Subsequence Time Limit: 1000MS Memory Limit: 65536KB 64bit IO Format: %lld & %llu Submit Status Description A sequence of N positive integers (10 < N < 100 000), ea原创 2016-11-30 18:39:14 · 216 阅读 · 0 评论