2016年2月1日
摘要: http://codeforces.com/contest/621 A. Wet Shark and Odd and Even time limit per test 2 seconds memory limit per test 256 megabytes input standard input 阅读全文
posted @ 2016-02-01 11:34 Beserious 阅读(313) 评论(0) 推荐(0) 编辑
  2016年1月28日
摘要: http://acm.buaa.edu.cn/problem/1381/ 贞鱼传教【问题描述】 新的一年到来了,贞鱼哥决定到世界各地传授“贞教”,他想让“贞教”在2016年成为世界第四大宗教。说干就干......贞鱼哥把即将接受传教的人排成一行,每个人从左到右的编号为1-n。每个人有一个信仰值,一开 阅读全文
posted @ 2016-01-28 21:26 Beserious 阅读(315) 评论(0) 推荐(0) 编辑
摘要: WJC上学记题目描述:WJC为了追求YHY,决定考上树人,但是,愚蠢的他没有足够好的成绩,只能靠自己的亲戚来帮忙。但是由于他足够愚蠢,连自己的亲戚都不认识,仁慈而被树人优录的Geek_du决定帮助他。WJC找了N(0<N<50000)个人,分别和他们进行聊天,聊了E次(0<E<30000)。请帮助W 阅读全文
posted @ 2016-01-28 20:59 Beserious 阅读(222) 评论(0) 推荐(0) 编辑
  2015年11月13日
摘要: 时间复杂度为nlogn,最坏 n^2一个递归的问题。/* ***********************************************Author :pk28Created Time :2015/11/13 20:24:14File Name :2.cpp*... 阅读全文
posted @ 2015-11-13 21:03 Beserious 阅读(199) 评论(0) 推荐(0) 编辑
  2015年10月20日
摘要: #include #include #include #include #include #include #include #define ll long long#define INF 0x3f3f3f3f#define cle(a) memset(a,0,sizeof(a))using nam... 阅读全文
posted @ 2015-10-20 19:45 Beserious 阅读(365) 评论(0) 推荐(0) 编辑
  2015年10月17日
摘要: 1.hdu 1166 单点更新,维护区间和 /* *********************************************** Author :pk28 Created Time :2015/9/15 19:38:46 File Name :4.cpp ************** 阅读全文
posted @ 2015-10-17 20:51 Beserious 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include#define ll long long#define INF 0x3f3f3f3f#define maxn 10000+10#define cle(a) m... 阅读全文
posted @ 2015-10-17 08:46 Beserious 阅读(3821) 评论(0) 推荐(0) 编辑
摘要: B. Duff in Lovetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDuff is in love with lovely numbe... 阅读全文
posted @ 2015-10-17 00:24 Beserious 阅读(157) 评论(0) 推荐(0) 编辑
  2015年10月15日
摘要: Alice is providing print service, while the pricing doesn't seem to be reasonable, so people using her print service found some tricks to save money.F... 阅读全文
posted @ 2015-10-15 20:41 Beserious 阅读(587) 评论(0) 推荐(0) 编辑
  2015年10月14日
摘要: miller_rabin素数测试法#include #include #include #include #include #include #include #include #define ll long longusing namespace std;ll mod_mul(ll a,ll b,... 阅读全文
posted @ 2015-10-14 20:47 Beserious 阅读(376) 评论(0) 推荐(0) 编辑