
POJ
文章平均质量分 72
张思瑶126
If you think you can , you can !
不怕千万人阻挡,只怕自己投降 !
展开
-
POJ1006: 中国剩余定理的完美演绎(转)
原文网址:http://www.cnblogs.com/walker01/archive/2010/01/23/1654880.html 问题描述 人自出生起就有体力,情感和智力三个生理周期,分别为23,28和33天。一个周期内有一天为峰值,在这一天,人在对应的方面(体力,情感或智力)表现最好。通常这三个周期的峰值不会是同一天。现在给出三个日期,分别对应于体力,情感,转载 2015-08-14 10:23:15 · 474 阅读 · 0 评论 -
POJ 3620 Avoid The Lakes
//很水的dfs #include #include #include #include using namespace std; const int maxn=100+10; int mx[maxn][maxn],m,n,k,cnt; int dir[4][2]= {{-1,0},{0,-1},{1,0},{0,1}}; //四个方向 int dfs(int原创 2015-07-20 23:11:37 · 478 阅读 · 0 评论 -
POJ 3468 A Simple Problem with Integers (线段树,成段更新,区间求和)
Description 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 Input 第一行包含两个整数N, Q。1 ≤ N,Q ≤ 100000. 第二行包含n个整数,表示初始的序列A (-1000000000 ≤原创 2015-08-10 18:23:32 · 556 阅读 · 0 评论 -
POJ 2488 A Knight's Journey
题目连接:POJ 2488 /*这题属于最基础的搜索题,在平时的联系中遇到过很多次, 然而每次都放弃了,这次终于耐心的把它敲出来了, 看上去好懂,其实敲起来并不容易,卡了好多次才A掉 AC代码如下:*/ #include #include #include #include using namespace std; const int maxn=30; int p,原创 2015-07-22 10:17:16 · 325 阅读 · 0 评论