上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 45 下一页
摘要: //讨厌的模拟= = #include<bits/stdc++.h> using namespace std; void work(int n){ int k,t=0,s; while(n){ s=1; k=0; while(s<=n){k++; s+=s;} k--; s/=2; if(t)pri 阅读全文
posted @ 2017-06-26 21:10 wqtnb_tql_qwq_%%% 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int a[1010],n,sum[1010],m[3],z[1010]; void mul(){ memset(z,0,sizeof(z)); z[0]=a[0]+m[0]; for(int i=1;i<=a 阅读全文
posted @ 2017-06-26 20:46 wqtnb_tql_qwq_%%% 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; string x,y; int a[510],b[510],c[1010]; void mul(int a[],int b[]){ for(int i=1;i<=a[0];i++) for(int j=1;j< 阅读全文
posted @ 2017-06-26 13:31 wqtnb_tql_qwq_%%% 阅读(377) 评论(0) 推荐(0) 编辑
摘要: //有点坑爹 #include<bits/stdc++.h> using namespace std; string x,y; int a[10010],b[10010]; bool compare(int a[],int b[]){ if(a[0]>b[0])return 1; if(b[0]>a 阅读全文
posted @ 2017-06-26 13:13 wqtnb_tql_qwq_%%% 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; string x,y; int a[100],b[100]; void add(int a[],int b[]){ a[0]=max(a[0],b[0]); for(int i=1;i<=a[0];i++){ 阅读全文
posted @ 2017-06-25 13:18 wqtnb_tql_qwq_%%% 阅读(188) 评论(0) 推荐(0) 编辑
摘要: //对面穿过等于换一个人继续走,整体状态没变 #include<bits/stdc++.h> using namespace std; int l,n,maxn,minn; int main(){ scanf("%d%d",&l,&n); l++; while(n--){ int x; scanf( 阅读全文
posted @ 2017-06-24 21:38 wqtnb_tql_qwq_%%% 阅读(195) 评论(0) 推荐(0) 编辑
摘要: //和luogu1004一毛一样有木有 #include<bits/stdc++.h> using namespace std; int n,m,ans[60][60],a[60][60][60][60]; int max(int a,int b,int c,int d){ return max(m 阅读全文
posted @ 2017-06-24 21:18 wqtnb_tql_qwq_%%% 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 题目描述 设有N*N的方格图(N<=9),我们将其中的某些方格中填入正整数,而其他的方格中则放 人数字0。如下图所示(见样例): 某人从图的左上角的A点出发,可以向下行走,也可以向右走,直到到达右下角的B 点。在走过的路上,他可以取走方格中的数(取走后的方格中将变为数字0)。 此人从A点到B点共走两 阅读全文
posted @ 2017-06-24 20:12 wqtnb_tql_qwq_%%% 阅读(137) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;int main(){ int n,a1[10010],b1[10010],a2[10010],b2[10010],i,x,y; cin>>n; for(i=1;i<=n;i++)cin 阅读全文
posted @ 2017-06-24 19:45 wqtnb_tql_qwq_%%% 阅读(104) 评论(0) 推荐(0) 编辑
摘要: //哇塞,真的坑,要long long = = #include <iostream>using namespace std;long long a[30][30];int n,m,x,y,sum;bool b[30][30];void C(int x,int y){ b[x][y]=b[x+1][ 阅读全文
posted @ 2017-06-24 19:42 wqtnb_tql_qwq_%%% 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 45 下一页