#include<bits/stdc++.h>using namespace std;const int inf=0x3f3f3f3f;struct node{ int v,z,d,next;//存可以连接的点,用next存邻接表}a[10010];struct road{ int u,cnt,di ...
分类:
其他好文 时间:
2018-08-04 21:42:21
阅读次数:
222
#include<bits/stdc++.h>using namespace std;int n,x;char s[10010];char a[31010];int val[100010];int ch[100010][30];int dp[100010];int main(){ while(~sc ...
分类:
其他好文 时间:
2018-08-04 11:54:45
阅读次数:
135
这个题困扰了我长达1年多,终于在今天下午用两个小时理清楚啦 要注意的有以下几点: 1.a=b=c=0时 因为x有无穷种答案,所以不对 2.注意精度问题 3.b^2-4ac<0时也算对 Problem Description With given integers a,b,c, you are ask ...
分类:
其他好文 时间:
2018-07-24 18:01:34
阅读次数:
149
Games Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description Alice and Bob are playing a stone game. There are nn piles of s ...
分类:
其他好文 时间:
2018-07-19 19:09:58
阅读次数:
215
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6278 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/Others) Problem Descrip ...
分类:
编程语言 时间:
2018-06-27 22:17:18
阅读次数:
644
A - Julyed 类型: 水题 题意: Julyed正在为她的大学英语六级考试做准备。她有N个字要记,但只剩M天了。如果她记不住这些话,她就不会通过大学英语六级考试。如果她不能通过大学英语六级考试,她就会不高兴。但如果她在某一天记得太多的话,她也会不开心。如果她不高兴,汤姆就会不高兴。所以她会在 ...
分类:
其他好文 时间:
2018-06-12 13:34:38
阅读次数:
142
A - Problem A. Return of the Nim 题型: 博弈 题意: 有n堆石子,两个人进行游戏,每一步有两种操作方式 操作1:从任意堆里拿任意个, 操作2:从所有堆里拿走x个,其中x不小于最小的那堆石子的个数 保证n是质数 题解: 1.威佐夫博弈:有两堆各若干个物品,两个人轮流从 ...
分类:
其他好文 时间:
2018-06-08 22:05:35
阅读次数:
186
时间限制: 10 Sec 内存限制: 128 MB 题目描述 Given l1,r1,l2,r2,l3,r3,l4,r4, please count the number of four-tuples (x1,x2,x3,x4) such that li≤ xi≤ ri and x1≠x2,x2≠x ...
分类:
其他好文 时间:
2018-06-04 22:38:26
阅读次数:
191
题目描述 如何设计一个好的数据库不仅仅是一个理论研究问题,也是一个实际应用问题。在关系数据库中不满足规范化理论的数据库设计会存在冗余、插入异常、删除异常等现象。 设R(U)是一个关系模式,U={ A1,A2, ……, An}。其中Ai是关系的属性,X,Y是U的子集。函数依赖 X->Y 定义了数据库中 ...
分类:
其他好文 时间:
2018-06-03 19:35:56
阅读次数:
138
题目描述 As a landlocked country in central and southern Africa , the political situation has been relatively stable since the implementation of multi-par ...
分类:
其他好文 时间:
2018-06-03 19:35:35
阅读次数:
237