Card Game CheaterTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1272Accepted Submission(s): 675Pr...
分类:
其他好文 时间:
2014-08-22 19:33:29
阅读次数:
197
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=120思路:超级水题~,结果 = 出度为0的点的数量+入度为0的点的数量。。代码:#include #include using namespace std;int book1[101];in...
分类:
其他好文 时间:
2014-08-22 15:59:08
阅读次数:
273
最近使用Mybatis,解析的时候报错,开始以为没法使用sql函数max等,最后发现还是可以使用的。
SQL
SELECT max(trans_time) as trans_time, CARD_NO
from CARD_HISLOG
WHERE ACCT_NO = '1'
GROUP BY CARD_NO ORDER BY TRANS_TIME;
注意mybatis...
分类:
其他好文 时间:
2014-08-22 10:55:36
阅读次数:
6881
合并游戏时间限制:1000ms | 内存限制:65535KB难度:4描述大家都知道Yougth除了热爱编程之外,他还有一个爱好就是喜欢玩。某天在河边玩耍的时候,他发现了一种神奇的石子,当把两个石子放在一起的时候,后一个石子会消失,而且会蹦出一定数量的金币,这可乐坏了Yougth,但是他想得到最多的金...
分类:
其他好文 时间:
2014-08-21 22:38:24
阅读次数:
273
思路:最短路径算法决心用这道题好好练练最短路径~先附上flody算法,超时了代码:#include #define INF 99999using namespace std;int e[1001][1001];//地图,邻接矩阵储存int N,M,P,Q;int n[101];//代表部队驻扎的点v...
分类:
其他好文 时间:
2014-08-20 17:55:52
阅读次数:
202
A. Winnertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe winner of the card game popular in Be...
题意:。。。
这道题就是区间问题三种中的区间完全覆盖问题,不懂的可以看我上一篇也是区间完全覆盖。
直接上代码:
#include
#include
#include
using std::sort;
struct node{
double le, ri;
}s[1005];
int cmp(node a, node b)
{
return a.le < b.le;
}
int ma...
分类:
其他好文 时间:
2014-08-20 00:02:06
阅读次数:
297
#include int main(){ int n,a[205]; while(scanf("%d",&n)!=EOF) { int l,i,m,sum; for(i=0;i<n;i++) scanf("%d",&a[i]); m=n/5; sum=0; l=0; for(i=0;i<n;i++)...
分类:
其他好文 时间:
2014-08-18 18:02:42
阅读次数:
199
Description
Benefit
Recently Yaghoub is playing a new trick to sell some more. When somebody gives him
A Tomans, he who never has appropriate changes, asks for
B Tomans su...
分类:
其他好文 时间:
2014-08-18 12:37:24
阅读次数:
234
石子合并(一)
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述 有N堆石子排成一排,每堆石子有一定的数量。现要将N堆石子并成为一堆。合并的过程只能每次将相邻的两堆石子堆成一堆,每次合并花费的代价为这两堆石子的和,经过N-1次合并后成为一堆。求出总的代价最小值。
输入有多组测试数据,输入到文件结束。
每组测试数据第一行有一个整...
分类:
其他好文 时间:
2014-08-17 17:09:13
阅读次数:
233