题意 :给你一个长度为n的数组y,和两个正整数a,b,让你把y分成a ~ b个连续区间,使每个区间的和或起来最小。 数据范围 : subtask1 n<=100,1<=a<=b<=n,0<=y<=1e9 subtask2 n<=2000,a=1,1<=b<=n,0<=y<=1e9 此后一千里 对于这 ...
统计学生的分数,计算出低于平均值的人数 程序代码如下: ...
分类:
编程语言 时间:
2017-03-09 13:30:55
阅读次数:
268
状态多了一维的区间规划....注意处理好每一步的耗能 ...
分类:
其他好文 时间:
2017-03-09 13:08:28
阅读次数:
154
网上关于filter的使用应该不少,参照下,然后根据ffmpeg官方的文档,应该很容易实现需求,所以这里仅介绍用代码怎么调用filter来达到想要的效果。 下面是ffmpeg中blend这个filter声明的相关代码(基于ffmpeg 2.8最新版本): ffmpeg中所有的filter基本都和上面 ...
分类:
其他好文 时间:
2017-03-09 12:54:14
阅读次数:
2789
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1214 题意: 给定两个字符串,通过交换位置和一一映射判断能否使得两 ...
分类:
其他好文 时间:
2017-03-09 00:35:32
阅读次数:
132
#include <stdio.h> main() { int i,j,t; int a[10]; printf("请输入10个数:\n"); for(i=0;i<10;i++) scanf("%d",&a[i]); printf("输入的10个数是:"); for(i=0;i<10;i++) {p ...
分类:
编程语言 时间:
2017-03-08 21:30:41
阅读次数:
156
从《构建之法》第一章的 “程序” 例子出发,像阿超那样,花二十分钟写一个能自动生成小学四则运算题目的命令行 “软件”,满足以下需求: 除了整数以外,还要支持真分数的四则运算,真分数的运算,例如:1/6 + 1/8 = 7/24运算符为 +, ?, ×, ÷并且要求能处理用户的输入,并判断对错,打分统 ...
分类:
其他好文 时间:
2017-03-07 19:42:05
阅读次数:
336
传送门 题意:略 论文 《SPFA算法的优化及应用》 http://www.cnblogs.com/lazycal/p/bzoj-2595.html 本题的核心就是求斯坦纳树: Steiner Tree: Given an undirected graph with non-negative edg ...
分类:
其他好文 时间:
2017-03-07 19:01:59
阅读次数:
269
1 package kaoshi; 2 /* 3 * 学员状态查询 4 * @作者:向往的生活 5 * @时间:2017、3、7 6 */ 7 import java.util.Scanner; 8 9 public class StudentState { 10 public static voi... ...
分类:
编程语言 时间:
2017-03-07 19:01:38
阅读次数:
161
A. 1 #include <iostream> 2 #include<bits/stdc++.h> 3 #include <stack> 4 #include <queue> 5 #include <map> 6 #include <set> 7 #include <cstdio> 8 #incl ...
分类:
其他好文 时间:
2017-03-07 15:13:39
阅读次数:
290