会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
禅境花园
新博客 http://xiang578.github.io/
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
37
下一页
2015年9月16日
uva 10054 The Necklace 欧拉回路
摘要: #includeusing namespace std;typedef long long ll;int g[60][60],in[100],n,m;void dfs(int t){ int i; for(i=1; iusing namespace std;typedef...
阅读全文
posted @ 2015-09-16 14:28 xryz
阅读(116)
评论(0)
推荐(0)
2015年9月15日
uva 10881 Piotr's Ants 规律
摘要: #includeusing namespace std;typedef long long ll;struct data{ int x,c,t;}b[10000+5];int cmp(data n1,data n2){ return n1.xl) printf("Fell...
阅读全文
posted @ 2015-09-15 21:31 xryz
阅读(105)
评论(0)
推荐(0)
2015年9月14日
uva 11300 Spreading the Wealth 中位数应用
摘要: #includeusing namespace std;long long x1,t,ans,m,c[1000000+5];int main(){ int i,n; while(~scanf("%d",&n)) { m=0; c[0]=...
阅读全文
posted @ 2015-09-14 18:48 xryz
阅读(102)
评论(0)
推荐(0)
2015年9月13日
hdu 1133 Buy the Ticket 卡特兰数+递推+java
摘要: import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(String[] args) { // TODO Auto-gener...
阅读全文
posted @ 2015-09-13 16:47 xryz
阅读(137)
评论(0)
推荐(0)
hdu 1131 Count the Trees 卡特兰数+java
摘要: import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(String[] args) { // TODO Auto-gener...
阅读全文
posted @ 2015-09-13 16:25 xryz
阅读(101)
评论(0)
推荐(0)
hdu 5437 Alisha’s Party 优先队列
摘要: #includeusing namespace std;const int N=150000+5;struct node{ int v,id; char s[200+5]; friend bool operator n2.id; return n1.v...
阅读全文
posted @ 2015-09-13 15:34 xryz
阅读(105)
评论(0)
推荐(0)
hdu 5443 The Water Problem
摘要: #includeusing namespace std;int main(){ int _,i,n,a[1024],m,r,l,ans; scanf("%d",&_); while(_--) { scanf("%d",&n); fo...
阅读全文
posted @ 2015-09-13 15:32 xryz
阅读(148)
评论(0)
推荐(0)
hdu 5438 Ponds DFS
摘要: #includeusing namespace std;const int N=10000+5;typedef long long ll;struct Edge{ int u,v,use;};vectoredge;vectorg[N];int n,m,a[N],in[N],cn...
阅读全文
posted @ 2015-09-13 15:31 xryz
阅读(103)
评论(0)
推荐(0)
2015年9月12日
hdu 2067 小兔的棋盘 卡特兰数+java
摘要: 根据规则可以看出来就是n的卡特兰数乘二import java.math.BigInteger;import java.util.Scanner;public class Main{ public static void main(String[] args) { ...
阅读全文
posted @ 2015-09-12 23:20 xryz
阅读(189)
评论(0)
推荐(0)
hdu 1023 Train Problem II 卡特兰数+java
摘要: import java.math.BigInteger;import java.util.Scanner;public class Main { /** * @param args */ public static void main(String[] a...
阅读全文
posted @ 2015-09-12 16:41 xryz
阅读(84)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
37
下一页
公告