- 博客(44)
- 收藏
- 关注
原创 UVA 10071 - Back to High School Physics
1、题目题目来源:UVA 10055 - Hashmat the Brave Warrior2、分析这是一道入门题。题目本身很简单,涉及到一点高中物理的基本知识。/* UVA 10071 - Back to High School Physics 题目大意:一个物体做匀加速直线运动,现在已知在t时刻物体的速度 为v,求物
2015-10-13 17:53:22
404
原创 UVA 10055 - Hashmat the Brave Warrior
题目题目来源:UVA 10055 - Hashmat the Brave Warrior
2015-10-13 16:40:26
449
原创 Windows下安装numpy、sicpy、matplotlib
如题,在windows下为Python安装numpy、sicpy、matplotlib。总结一下,以备查看。numpy: http://www.scipy.org/scipylib/download.htmlscipy: http://www.scipy.org/install.html#individual-packagesmatplotlib: http://matplotlib.
2015-03-12 09:19:37
504
原创 UVA 147 - Dollars
简单dp问题。#include #include #include #include #include #include using namespace std;const int size = 30000 + 100;const double eps = 1e-6;int c[] = {5 , 10 , 20 , 50 , 100 , 200 , 500 , 1
2014-10-21 23:19:23
337
原创 POJ 2479 Maximum sum
这道题和一维最大连续子和很想,题目不难。#include #include #include #include #include #include using namespace std;#define ZHAO_DEBUG 0const int size = 50000 + 10;int f[size];int sum[size];int L_maxsum[siz
2014-10-18 13:01:59
342
原创 UVA 532 - Dungeon Master
不难, 图的BFS。#include #include #include #include #include #include #include #include #include using namespace std;const int size = 30 + 10;char s[size][size][size];int v[size][size][siz
2014-10-13 15:03:24
332
原创 c++ 之 namespace
namespace是用以管控命名冲突的一种方法。将各种命名至于不同的namespace中即方便了管理,避免了命名冲突,也使得逻辑上更为清晰。1.1 namespace的定义一个namespcae可以定义在全局作用域中(其实是一个默认的namespace,也可以定义在其它的namespace中,但不能在其它作用域中定义。如:------------main
2014-10-01 14:28:22
565
原创 UVA 10785 - The Mad Numerologist
题目不难,直接上代码。#include #include #include #include #include using namespace std;char x[] = "AUEOI";char y[] = "JSBKTCLDMVNWFXGPYHQZR";int main(){ int n; cin >> n; for(int i = 0 ; i < n ;
2014-09-30 00:30:10
277
原创 UVA 699 - The Falling Leaves
简单题,直接模拟就行。#include #include #include #include #include #include using namespace std;const int size = 10000 + 50;int v[size];int r[2*size + 1];void f(int * x , int * y , int now){ if(x
2014-09-29 17:17:15
316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人