#include
#include
#include
using namespace std;
int main(){
int k,n;
while(~scanf("%d%d",&n,&k))
{
priority_queue,greater >q;
int t;
for(int i=0;i<n;++i)
{...
分类:
其他好文 时间:
2014-12-29 01:21:37
阅读次数:
183
Description You haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to eac....
分类:
其他好文 时间:
2014-12-28 23:31:26
阅读次数:
235
In a previous post we learned how we can use the inputs and outputs properties to set properties or files that need to be checked to see if a task is ...
分类:
其他好文 时间:
2014-12-27 21:36:39
阅读次数:
168
链接: http://pan.baidu.com/s/1eQ8aMem 密码: suox将need.tar.gz 里的东西放到steup里面#!/bin/bash# Global Variablesrunuser=$(whoami)tempdir=$(pwd)# Title Functionfunc...
分类:
其他好文 时间:
2014-12-27 08:56:41
阅读次数:
568
In Mini2440:First we need a Assembly program to call C program.crt0.S@switch to C program.text.global _start_start: ldr r0,=0x53000000 mov r1,#0...
分类:
其他好文 时间:
2014-12-27 01:29:47
阅读次数:
147
You executed the following command in Recovery Manager (RMAN) aga
inst your Oracle 10g database:
RMAN> REPORT NEED BACKUP days 3;
What would be the output of this command?
A. a list of files...
分类:
数据库 时间:
2014-12-26 09:40:23
阅读次数:
160
题目描述:定义栈的数据结构,请在该类型中实现一个能够得到栈最小元素的min函数。输入:输入可能包含多个测试样例,输入以EOF结束。对于每个测试案例,输入的第一行为一个整数n(1#include #include using namespace std; int main(){ int n; ...
分类:
其他好文 时间:
2014-12-25 22:04:50
阅读次数:
160
题目描述:输入一个二叉树,输出其镜像。输入:输入可能包含多个测试样例,输入以EOF结束。对于每个测试案例,输入的第一行为一个整数n(0#include using namespace std; struct BinaryTreeNode{ int data; int lchild; ...
分类:
其他好文 时间:
2014-12-25 21:58:54
阅读次数:
276
#1038 : 01背包
时间限制:20000ms
单点时限:1000ms
内存限制:256MB
描述
且说上一周的故事里,小Hi和小Ho费劲心思终于拿到了茫茫多的奖券!而现在,终于到了小Ho领取奖励的时刻了!
小Ho现在手上有M张奖券,而奖品区有N件奖品,分别标号为1到N,其中第i件奖品需要need(i)张奖券进行兑换,同时也只能兑换一次,为了...
分类:
其他好文 时间:
2014-12-25 20:35:46
阅读次数:
189
题目大意:根据学校的申请费用,根据已有的钱得到最大的offer率这里很明显就是一个价值为概率的背包问题计算两个offer合并的概率 为a + b - a*b 1 #include 2 #include 3 #include 4 using namespace std; 5 const int ...
分类:
其他好文 时间:
2014-12-25 06:33:36
阅读次数:
194