会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Gssol
Le temps ne trompe pas
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
2016年3月30日
hdu 1075 What Are You Talking About
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1075 题目大意:给出一个“翻译-原文”的对应表,然后给出句子,要把句子中的原文都翻译出来 代码:
阅读全文
posted @ 2016-03-30 23:10 Gssol
阅读(105)
评论(0)
推荐(0)
2016年3月24日
阶乘位数
摘要: #include #include #include #include #include using namespace std; int main() { int t,n; cin>>t; while(t--) { double sum=1; cin>>n; for(int i=1;i<=n;i++) ...
阅读全文
posted @ 2016-03-24 17:35 Gssol
阅读(126)
评论(0)
推荐(0)
树根
摘要: #include #include int main() { char st[1005]; int r,len; while(scanf("%s",st)&&st[0]!='0'){ r=0; len=strlen(st); for(int i=0;i<len;i++) ...
阅读全文
posted @ 2016-03-24 17:33 Gssol
阅读(115)
评论(0)
推荐(0)
hdu 1028 母函数 一个数有几种相加方式
摘要: ///hdu 1028 母函数 一个数有几种相加方式 #include #include #include #include #define INF 1000000009 using namespace std; const int _max = 10001; int c1[_max], c2[_max]; int main() { int n,i,j,k; while(c...
阅读全文
posted @ 2016-03-24 17:32 Gssol
阅读(142)
评论(0)
推荐(0)
第m个全排列
摘要: #include #include int flag,n,m; int a[1002],sum,vis[1002]; void dfs(int k) { if(flag==1) return; if(k==n+1) { sum++; if(sum==m) { flag=1; ...
阅读全文
posted @ 2016-03-24 17:31 Gssol
阅读(256)
评论(0)
推荐(0)
大数处理
摘要: //#include #include #include #include using namespace std; int a[10000][1000]; #define MOD 100000000 int main() { int n; a[1][0]=1; a[2][0]=1; for(int i=3;i>n) { int i;...
阅读全文
posted @ 2016-03-24 17:30 Gssol
阅读(122)
评论(0)
推荐(0)
并查集
摘要: #include using namespace std; int pre[2000]; int find1(int x) { int r=x; while(pre[r]!=r) { r=pre[r]; } return r; } void join(int x,int y) { int fx=find1(x); i...
阅读全文
posted @ 2016-03-24 17:28 Gssol
阅读(128)
评论(0)
推荐(0)
KMP算法及KMP算法的应用(POJ2406)
摘要: KMP算法的应用
阅读全文
posted @ 2016-03-24 17:26 Gssol
阅读(269)
评论(0)
推荐(0)
2016年3月7日
算法---分治法
摘要: 1.分治法的思想: 将一个输入规模为n的问题分解为k个规模较小的子问题,这些子问题互相独立且与原问题相同,然后递归的求解这些子问题,最后用适当的方法将各子问题的解合并成原问题的解。 2.分治法的步骤: 分(divide) 二分为主 治(conquer) 递归调用,当规模足够小时直接处理 组(comb
阅读全文
posted @ 2016-03-07 20:21 Gssol
阅读(439)
评论(0)
推荐(0)
2015年12月25日
努力到让自己满意,才会有奇迹(文/白爽)
摘要: 毕业三年,我领了结婚证,换了三个城市生活。今年,26岁了。 上个月,我刚辞了职。一个朋友得知这个消息,很惊讶:你这么快就当上家庭主妇了? 我没那种命。虽然先生可以给我创造这种条件,但我不是太后。 我想说说我自己。 每次去事务所面试,都会被问同样一个问题:你是学英语专业的,为什么考CPA(注册会计师)
阅读全文
posted @ 2015-12-25 23:14 Gssol
阅读(225)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
13
下一页
公告