AmazingCounters.com
摘要: 博客搬家至:www.zjdx1998.ml 备用地址: zjdx1998.github.io 非常感谢博客园系统! 阅读全文
posted @ 2018-05-25 13:03 ZJDx1998 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 背景noip2013day1数据来自官方描述涵涵有两盒火柴,每盒装有n根火柴,每根火柴都有一个高度。现在将每盒中的火柴各自排成一列,同一列火柴的高度互不相同,两列火柴之间的距离定义为:∑(ai-bi)2,其中ai表示第一列火柴中第i个火柴的高度,bi表示第二列火柴中第i个火柴的高度。每列火柴中相邻两... 阅读全文
posted @ 2015-10-14 20:52 ZJDx1998 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 背景NOIP2014提高组第二题描述无向连通图G有n个点,n-1条边。点从1到n依次编号,编号为i的点的权值为Wi,每条边的长度均为1。图上两点(u,v)的距离定义为u点到v点的最短距离。对于图G上的点对(u,v),若它们的距离为2,则它们之间会产生Wu×Wv的联合权值。请问图G上所有可产生联合权值... 阅读全文
posted @ 2015-09-28 19:42 ZJDx1998 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Feel GoodTime Limit: 3000MSMemory Limit: 65536KCase Time Limit: 1000MSSpecial JudgeDescriptionBill is developing a new mathematical theory for human e... 阅读全文
posted @ 2014-11-05 07:26 ZJDx1998 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 传送门@百度。。treap好久没写果然有点生疏了,注意答案是long long 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;... 阅读全文
posted @ 2014-11-04 14:50 ZJDx1998 阅读(160) 评论(0) 推荐(0) 编辑
摘要: [NOIP2013T5]花匠Time Limit: 1000ms Memory Limit: 131072KB描述Descript.花匠栋栋种了一排花,每株花都有自己的高度。花儿越长越大,也越来越挤。栋栋决定把这排中的一部分花移走,将剩下的留在原地,使得剩下的花能有空间长大,同时,栋栋希望剩下的花... 阅读全文
posted @ 2014-11-04 10:57 ZJDx1998 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 传送门Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show... 阅读全文
posted @ 2014-11-02 20:59 ZJDx1998 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Food Delivery Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu DescriptionWhen we are focusing on solving problems, we usually prefe... 阅读全文
posted @ 2014-11-02 19:55 ZJDx1998 阅读(158) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-11-02 10:42 ZJDx1998 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 传送门:http://codeforces.com/problemset/problem/149/D很好的dp题,细节甚多 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using nam... 阅读全文
posted @ 2014-11-01 11:27 ZJDx1998 阅读(627) 评论(0) 推荐(0) 编辑