会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
163467
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
下一页
2018年10月10日
算法竞赛入门经典第二版 第二章习题及思考题
摘要: enmmmmmm】 大部分好像除了最后一个思考题都很简单 代码如下 至于最后一个思考题 浮点数陷阱 把 10 改成10.0 10.000000 啥的都没用 脑阔疼 搜了下发现了这个博客 http://blog.sina.com.cn/s/blog_6da76f9b0100yr8d.html 浮点数陷
阅读全文
posted @ 2018-10-10 22:49 163467
阅读(908)
评论(0)
推荐(1)
2018年10月9日
关于C语言中 全局变量与局部变量的初始化
摘要: 首先上两段代码 上面的会WA 下面的AC ,找了找 ,发现只是定义变量的时候全局和局部的区别而已 想交试试的话 题目链接 http://codeforces.com/contest/1028/problem/A #include<bits/stdc++.h> int v[120][120]; int
阅读全文
posted @ 2018-10-09 08:48 163467
阅读(3119)
评论(0)
推荐(0)
由韩信点兵 到中国剩余定理 再到逆元
摘要: 韩信点兵的小故事 3人报数 五人报数 七人报数 各余a b c,求军队可能最少人数 物不知其数问题出自一千六百年前我国古代数学名著《孙子算经》.原题为:”今有物不知其数,三三数之二,五五数之三,七七数之二,问物几何?” 例如我国明朝数学家程大位在他著的《算法统宗》(1593年)中就用四句很通俗的口诀
阅读全文
posted @ 2018-10-09 00:20 163467
阅读(363)
评论(0)
推荐(0)
hdu1576 逆元板子题
摘要: A/B Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6867 Accepted Submission(s): 5457 Problem De
阅读全文
posted @ 2018-10-09 00:04 163467
阅读(101)
评论(0)
推荐(0)
2018年8月7日
初学 博弈论 又称对策论 Game Theory
摘要: 博弈论 真的很有趣 ,回想起 前两天多校一道题的题解 所有不公平的游戏都存在必胜的玩法 与人斗其乐无穷 https://vjudge.net/contest/241983#overview 博弈论专题 一)巴什博奕(Bash Game):有n个石头,Alice和Bob轮流取石头,每次取的石头不能超过
阅读全文
posted @ 2018-08-07 15:35 163467
阅读(380)
评论(0)
推荐(0)
2018年7月25日
hdu多校第二场dls题解 dls的搬运工
摘要: A题Absolute #include <bits/stdc++.h> using namespace std; #define rep(i,a,n) for (int i=a;i<n;i++) #define per(i,a,n) for (int i=n-1;i>=a;i--) #define
阅读全文
posted @ 2018-07-25 23:42 163467
阅读(479)
评论(2)
推荐(0)
2018年7月23日
2018 Multi-University Training Contest 1 hdu搬运工
摘要: 2018-07-26 00:26:29http://acm.hdu.edu.cn/contests/contest_show.php?cid=802 被三整除一定是三个数相等,其次是被2整除且被四整除的数可取 s=2x1; s=4x2; s=x1+2x2 A题 // A #include <bits
阅读全文
posted @ 2018-07-23 20:47 163467
阅读(158)
评论(0)
推荐(0)
2018年7月9日
大白书4-4.1
摘要: #include <iostream> #include <cassert> //算法竞赛入门经典4-4 #include <cstdio> #include <ctime> //#include <size> typedef long long LL; using namespace std; i
阅读全文
posted @ 2018-07-09 15:12 163467
阅读(134)
评论(0)
推荐(0)
2018年6月5日
Codeforces Round #479 (Div. 3)
摘要: 977A - Wrong Subtraction http://codeforces.com/contest/977/problem/A 简单题 题意如果尾数为0 除10 否则-1 977B - Two-gram http://codeforces.com/contest/977/problem/B
阅读全文
posted @ 2018-06-05 23:10 163467
阅读(135)
评论(0)
推荐(0)
2018年1月24日
hdu2015 水题
摘要: /* 水题 但是这个PE让我真的很气 最后一项不能有空格 */ #include <stdio.h> int main(void) { int n, m; while(scanf("%d%d", &n, &m) != EOF) { int sum=0, ai=2, count=0, i; for(i
阅读全文
posted @ 2018-01-24 23:56 163467
阅读(158)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告