2015年1月2日

Trie树

摘要: #include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;#define N 1000000000#define Max 11111struct t... 阅读全文

posted @ 2015-01-02 05:20 lveternal 阅读(90) 评论(0) 推荐(0) 编辑

最长回文子串

摘要: #include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;#define N 2011111char s1[N],s[N];int ... 阅读全文

posted @ 2015-01-02 05:19 lveternal 阅读(108) 评论(0) 推荐(0) 编辑

2014年11月10日

安卓开发—相对布局

摘要: RelativeLayout布局android:layout_marginTop="25dip" //顶部距离android:gravity="left" //空间布局位置android:layout_marginLeft="15dip //距离左边距// 相对于给定ID控件android:layo... 阅读全文

posted @ 2014-11-10 00:26 lveternal 阅读(246) 评论(0) 推荐(0) 编辑

2014年11月3日

数据通信基础

摘要: 计算机网络采用数据通信的方式是传输数据。 阅读全文

posted @ 2014-11-03 22:56 lveternal 阅读(124) 评论(0) 推荐(0) 编辑

网络基础知识

摘要: 计算机网络是指由通讯线路相互连接的许多自主工作的计算机构成的集合体;比计算机网络更高级的是分布式系统:在计算机网络的基础上为用户提供了透明的集成应用环境。用户可以用名字或命令调用网络中的任何资源或进行远程的数据处理,而不必考虑这些资源或数据的地理位置。与计算机网络类似的是多级系统:指同一机房中毒的许... 阅读全文

posted @ 2014-11-03 22:04 lveternal 阅读(189) 评论(0) 推荐(0) 编辑

2014年10月21日

Floyd(稠密图,记录路径)

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 #define N 11111 int f[N][N],lj[N][N]... 阅读全文

posted @ 2014-10-21 22:16 lveternal 阅读(223) 评论(0) 推荐(0) 编辑

2013年11月12日

Digging-贪心

摘要: When it comes to theMaya Civilization, we can quickly remind of a term called the end of the world. It's not difficult to understand why we choose to believe the prophecy (or we just assume it is true to entertain ourselves) if you know the other prophecies appeared in theMaya Calendar. For inst 阅读全文

posted @ 2013-11-12 21:11 lveternal 阅读(153) 评论(0) 推荐(0) 编辑

Happy Great BG-卡精度

摘要: Happy Great BGTime Limit:2000msCase Time Limit:2000msMemory Limit:65536KB64-bit integer IO format:%lld Java class name:MainThe summer training of ZJU ICPC in July is about to end. To celebrate this great and happy day, the coaches of ZJU ICPC TeamNaviandFancydecided to BG everyone! Beside the two co 阅读全文

posted @ 2013-11-12 21:10 lveternal 阅读(185) 评论(0) 推荐(0) 编辑

The Review Plan I-禁位排列和容斥原理

摘要: The Review Plan ITime Limit:5000msCase Time Limit:5000msMemory Limit:65536KB64-bit integer IO format:%lld Java class name:MainMichael takes theDiscrete Mathematicscourse in this semester. Now it's close to the final exam, and he wants to take a complete review of this course.The whole book he ne 阅读全文

posted @ 2013-11-12 21:08 lveternal 阅读(226) 评论(0) 推荐(0) 编辑

2013年11月10日

龟兔赛跑-dp

摘要: Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription据说在很久很久以前,可怜的兔子经历了人生中最大的打击――赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。最近正值HDU举办50周年校庆,社会各大名流齐聚下沙,兔子也趁此机会向乌龟发起挑战。虽然乌龟深知获胜希望不大,不过迫于舆论压力,只能接受挑战。比赛是设在一条笔直的道路上,长度为L米,规 阅读全文

posted @ 2013-11-10 00:19 lveternal 阅读(179) 评论(0) 推荐(0) 编辑

导航