上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: 题目描述 Illustration of exponial(3) (not to scale), Picture by C.M. de Talleyrand-Périgord via Wikimedia Commons Everybody loves big numbers (if you do n 阅读全文
posted @ 2018-10-06 19:36 l..q 阅读(386) 评论(0) 推荐(1)
摘要: 题目描述 Connect3 is a simplified version of a well-known Connect4 game. Connect3 is a game for two players, black and white, who take turns placing their 阅读全文
posted @ 2018-10-05 11:58 l..q 阅读(398) 评论(1) 推荐(1)
摘要: n的m整数划分(不包含重复划分): #include <iostream> #include<cstdio> #define mod 1000000007 typedef long long ll; using namespace std; ll n,m; ll dp[1005][1005]; in 阅读全文
posted @ 2018-09-30 10:33 l..q 阅读(295) 评论(0) 推荐(1)
摘要: 狗屁大数String str = cin.next();BigInteger n = new BigInteger(str);我才知道有这个 BigInteger.ZERO BigInteger.ONE//大数0和1和这个 .shiftRight(1)//大数位运算 阅读全文
posted @ 2018-09-16 11:19 l..q 阅读(266) 评论(0) 推荐(2)
摘要: //在vector中的应用#include <iostream> #include<cstdio> #include<vector> #include<algorithm> using namespace std; vector<int> a;vector<int>::iterator p; int 阅读全文
posted @ 2018-08-29 10:08 l..q 阅读(247) 评论(0) 推荐(1)
摘要: 令h(0)=1,h(1)=1,Catalan数满足递推式 1. h(n)= h(0)*h(n-1)+h(1)*h(n-2) + ... + h(n-1)*h(0) (n>=2)2. h(n)=h(n-1)*(4*n-2)/(n+1);递推关系的解为:1. h(n)=C(2n,n)/(n+1) (n= 阅读全文
posted @ 2018-08-26 11:15 l..q 阅读(111) 评论(0) 推荐(0)
摘要: 题目描述 Somewhere in an animal kingdom far from here there is a large forest. Inside the forest live a large number of frogs.Every year the frogs gather 阅读全文
posted @ 2018-08-26 10:35 l..q 阅读(368) 评论(0) 推荐(1)
摘要: <climits>头文件定义的符号常量 CHAR_MIN char的最小值SCHAR_MAX signed char 最大值SCHAR_MIN signed char 最小值UCHAR_MAX unsigned char 最大值SHRT_MAX short 最大值SHRT_MIN short 最小值 阅读全文
posted @ 2018-08-26 10:19 l..q 阅读(259) 评论(0) 推荐(0)
摘要: 题目描述 You are an expert in bonsai, the Japanese art of cultivating small trees in small containers.Every year, you win the Bonsai Association’s Pruning 阅读全文
posted @ 2018-08-24 20:08 l..q 阅读(306) 评论(0) 推荐(1)
摘要: 题目描述 The Minato Mirai Football Association hosts its annual championship as a single round-robin tournament, in which each team plays a single match a 阅读全文
posted @ 2018-08-23 21:22 l..q 阅读(324) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页