- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 uva 10562 - Undraw the Trees
#include #include #include #include #include using namespace std; void dfs(char s[210][210], int x, int y, int dep) { for(int i = y; s[x][i] == '-'; ++i) if(s[x+1][i] != ' ' && s[x+1
2013-12-03 12:44:16 515
原创 uva 327 - Evaluating Simple C Expressions
#include #include #include #include #include #include using namespace std; int main() { char s1[11000]; while(gets(s1) != NULL) { printf("Expression: %s\n", s1); int
2013-12-02 17:30:01 467
原创 UVA 699 - The Falling Leaves
#include #include #include #include using namespace std; int a[210][210]; int sum[210]; void creat(int dep, int mid) { int x; scanf("%d", &x); if(x == -1) return; else { a[
2013-12-02 07:39:12 477
原创 uva 839 - Not so Mobile
#include #include #include #define maxn 20000+10 using namespace std; struct node { int data; int ld, rd; node *l, *r; }; bool ok; void dfs(node *t) { if(!ok) return; if(t == NU
2013-12-01 20:10:45 452
原创 UVA 297 - Quadtrees
#include #include #include #include #define maxn 20000+10 using namespace std; struct node { int data, flag; node *ll, *l, *r, *rr; }; int tmpi; node* &build(int cur, char *s) { node *
2013-12-01 20:08:26 474
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人