最新文章列表

有口碑的稳定的在线题库

有口碑的稳定的在线题库: http://acm.timus.ru/ URAL http://uva.onlinejudge.org/ UVA http://acm.sgu.ru/index.php SGU http://www.spoj.pl/ SPOJ - 波兰著名 OJ,好题 / 系列不少,缺点是机器太慢
acm 
朱秋旭 评论(0) 有1262人浏览 2016-10-09 00:01

zoj 1558 背包

#include <bits/stdc++.h> using namespace std; int num[8],dp[10000+10]; int cmp(int x,int y) { return x>y; } int main() { int t; scanf("%d",&t); while ...
weiqingliu 评论(0) 有610人浏览 2015-11-09 16:18

poj 2985 并查集+树状数组求第k大数

#include <stdio.h> #include <string.h> #define lowbit(i) i&(-i) #define maxn 300000 using namespace std; int a[maxn],c[maxn],p[maxn]; int fd(int x) { return x==p[x] ? x :f ...
weiqingliu 评论(0) 有973人浏览 2015-11-05 16:53

hihocoder 1078 线段树区域更新

#include<iostream> #include<stdio.h> #include<string.h> using namespace std; #define M 1000005 struct tree{ int left,right,sum,lazy; }; tree g[M]; int map[M]; void push ...
acm 
weiqingliu 评论(0) 有870人浏览 2015-11-05 15:17

poj 3984 bfs+栈的使用

#include <stdio.h> #include <algorithm> #include <string.h> #include <queue> #include <stack> using namespace std; int dir[]={-1,0,1,0}; int dil[]={0,-1,0,1}; in ...
weiqingliu 评论(0) 有761人浏览 2015-11-03 21:01

kmp裸模版 poj 3461

#include <stdio.h> #include <string.h> using namespace std; const int maxn = 1000000+10; char s[maxn],t[maxn]; int next[maxn]; int m,n,k,l,i,T; void get_next(char str[]) { me ...
weiqingliu 评论(0) 有607人浏览 2015-11-03 19:01

neu 1438 树状数组求逆序数

#include <bits/stdc++.h> using namespace std; #define lowbit(i) i&(-i) const int N = 1000000 +10; int n,m,k,l,r; int a[N]; int getsum(int i) { int xx = 0; while(i>0) ...
acm 
weiqingliu 评论(0) 有635人浏览 2015-10-30 20:17

每天一道ACM题——另一种阶乘问题

描述 大家都知道阶乘这个概念,举个简单的例子:5!=1*2*3*4*5.现在我们引入一种新的阶乘概念,将原来的每个数相乘变为i不大于n的所有奇数相乘例如:5!!=1*3*5.现在明白现在这种阶乘的意思了吧! 现在你的任务是求出1!!+2!!......+n!!的正确值(n<=20)   输入 第一行输入一个a(a<=20),代表共有a组测试数据接下来a行各行输入一个n. 输 ...
南瓜猿 评论(0) 有2507人浏览 2015-09-28 20:59

hnu Cent Saving

代码如下:注释部分为思路讲解 ///hnu Cent Saving #include <algorithm> #include <cstdio> #include <cstring> using namespace std; const int N = 2000, D = 20; const int infty = 0xfffffff; ...
acm 
weiqingliu 评论(0) 有577人浏览 2015-08-03 09:12

2014年北京网络赛 Instrusive HDU 5040 题解 优先队列

网赛的时候看了这道题,发现就是平常的那种基础搜索题。   由于加了一个特殊条件:可以一次消耗3秒或原地停留1秒。   那就不能使用简单的队列了,需要使用优先队列才行。   题意   告诉一副地图:一个起点,一个终点,若干墙,若干监视器,剩下的是空地。   起点,终点,监视器都算空地。
tiankonguse 评论(0) 有594人浏览 2014-09-24 10:21

ZOJ 2165 Red and Black

原题传送门:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2165   Red and Black     Time Limit: 2 Seconds      Memory Limit: 65536 KB     There is a rectangular room, covered wit ...
hellojyj 评论(0) 有681人浏览 2014-07-14 13:19

【百度之星2014~复赛)解题报告】The Query on the Tree

声明    笔者最近意外的发现 笔者的个人网站 http://tiankonguse.com/ 的很多文章被其它网站转载,但是转载时未声明文章来源或参考自 http://tiankonguse.com/ 网站,因此,笔者添加此条声明。     郑重声明:这篇记录《 【百度之星2014~复赛)解题报告】The Query on the Tree》转载自 http://tiankonguse.co ...
tiankonguse 评论(0) 有1103人浏览 2014-06-02 12:27

【百度之星2014~初赛解题报告】

  声明    笔者最近意外的发现 笔者的个人网站 http://tiankonguse.com/ 的很多文章被其它网站转载,但是转载时未声明文章来源或参考自 http://tiankonguse.com/ 网站,因此,笔者添加此条声明。     郑重声明:这篇记录《【百度之星2014~初赛解题报告】》转载自 http://tiankonguse.com/ 的这条记录:http://tian ...
tiankonguse 评论(0) 有895人浏览 2014-05-27 14:27

【百度之星2014~初赛(第二轮)解题报告】JZP Set

声明    笔者最近意外的发现 笔者的个人网站 http://tiankonguse.com/ 的很多文章被其它网站转载,但是转载时未声明文章来源或参考自 http://tiankonguse.com/ 网站,因此,笔者添加此条声明。     郑重声明:这篇记录《【百度之星2014~初赛(第二轮)解题报告】JZP Set》转载自 http://tiankonguse.com/ 的这条记录:ht ...
tiankonguse 评论(0) 有862人浏览 2014-05-26 14:45

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics