- 博客(3)
- 收藏
- 关注
原创 九度oj-1365:贝多芬第九交响曲
#include #include #include using namespace std; typedef struct step { int x; int y; int cost; }step; int mark[101][101]; int next[][2] = { -2,1, -1,2, 1,2, 2,1, -2,-1, -1,-2, 1,-2, 2,-1
2014-03-13 12:48:11 937
原创 九度oj-1341:艾薇儿的演唱会
#include #include int map[101][101]; int mark[101]; int dis[101]; int main() { int n,m,a,b,i,j,t,ta,tb,min,idx; while(scanf("%d", &n) != EOF) { scanf("%d", &m); scanf("%d%d", &a, &b); for
2014-03-13 10:22:37 568
原创 九度oj-1019:简单计算器
#include #include #include using namespace std; stack op; stack nu; char str[220]; int mat[][5] = //定义优先级关系 { 1,0,0,0,0, 1,0,0,0,0, 1,0,0,0,0, 1,1,1,0,0, 1,1,1,0,0 }; void getOp(int &re
2014-03-12 14:54:13 659
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人