
水题
文章平均质量分 54
JamesLee0001
无
展开
-
poj1002
#include #include#include#include#includeusing namespace std;int n,t,num;char s[300],c[30]="2223334445556667777888999";int main(){ while(~scanf("%d",&n)) { priority_queue, gr原创 2014-08-31 20:04:22 · 269 阅读 · 0 评论 -
poj2967
#include #include#includeusing namespace std;int n,a[1000005];int readin(){ char c; int ans=0; while(c=getchar()) { if(c>='0'&&c<='9') { ans=ans*10+c原创 2015-02-02 13:06:05 · 431 阅读 · 0 评论 -
poj1222
#include #include#includeusing namespace std;int m[5][6],ans[5][6],n,cnt,f[6],c[5][6];int dx[5]={0,0,1,-1,0},dy[5]={1,-1,0,0,0};void res(int x,int y){ if(c[x][y]) c[x][y]=0; els原创 2015-02-05 15:31:13 · 296 阅读 · 0 评论 -
hihocoder 1099 Constellations
#include #include#include#include#includeusing namespace std;struct P{ int x,y; P(){} P(int x,int y):x(x),y(y){} P operator - (const P &t) { return P(x-t.x,y-t.y);原创 2015-05-13 01:28:43 · 403 阅读 · 0 评论 -
hdu 1364 Illusive Chase
刚开始我还很怀疑我的想法,后来百度没发现题解,看到discuss里面说数据很弱,于是我就大胆的写了个暴力,每次枚举一个点找到一次到合法终点的合法路径是,结束dfs,简单暴力代码如下#include #include#includeusing namespace std;const int mx=111;int mp[mx][mx],T,n,m,num,ans;bool use原创 2015-08-01 13:43:32 · 628 阅读 · 0 评论 -
UVA 1103
DescriptionIn order to understand early civilizations, archaeologists often study texts written in ancient languages. One such language, used in Egypt more than 3000 years ago, is based on charact原创 2015-08-03 14:59:50 · 416 阅读 · 0 评论 -
hihocoder1178 计数
#include #include#include#includeusing namespace std;int n,L,R;int main(){ scanf("%d",&n); scanf("%d%d",&L,&R); int x=1; while(x<R) { x*=2; } x=x/n+1;原创 2015-07-24 16:16:13 · 367 阅读 · 0 评论