- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 uva133 The Dole Queue
<br />#include <stdio.h><br />#include <stdlib.h><br />#include <string.h><br /><br />#define LOCAL<br />#define MAXN 30<br /><br />typedef struct node<br />{<br /> int data;<br /> struct node *pre, *next;<br />}*Node;<br /><br />
2010-10-23 11:42:00 738
原创 uva101 The Blocks Problem
<br />#include <stdio.h><br />#include <stdlib.h><br />#include <string.h><br /><br />#define LOCAL<br />#define MAXN 30<br /><br />typedef struct node<br />{<br /> int data;<br /> struct node *pre, *next;<br />}*Node;<br /><br />
2010-10-22 11:33:00 686
原创 uva127 "Accordian" Patience
#include #include #define LOCAL#define ERROR 0#define OK 1typedef struct data{ char rank; char suit; struct data *next;}Data;typedef struct lnode{ int count; Data *top; struct lnode *next;}LNode, *LinkList;LinkList initLi
2010-10-10 13:18:00 1188
原创 uva10783 Odd Sum
<br />#include <cstdio><br />using namespace std;<br /><br />int main()<br />{<br /> int tests;<br /><br /> scanf("%d", &tests);<br /><br /> for (int i = 0; i < tests; i++)<br /> {<br /> int a, b;<br /> scanf("%d
2010-10-09 11:18:00 659
原创 uva10035 Primary Arithmetic
#include #include using namespace std;int main(){ unsigned int a, b; while (scanf("%u%u", &a, &b) == 2 && !(a == 0 && b == 0)) { int carry = 0; int count = 0; int temp; while (a && b) {
2010-10-09 10:42:00 677
原创 uva10038 Jolly Jumpers
<br />#include <cstdio><br />#include <cmath><br />#include <cstring><br />using namespace std;<br /><br />int array[3001];<br />int count[3000];<br /><br />int main()<br />{<br /> int n;<br /><br /> while (scanf("%d", &n) != EOF)<b
2010-10-09 10:40:00 664
原创 uva10112 Myacm Triangles
#include #include #include #include #define LOCALtypedef struct Point{ char label; int x; int y;}point;point Points[20];int search[500][3];int c;int temp[3];int visited[30];void dfs(int pos, int n);double area(poi
2010-10-07 11:26:00 904
原创 uva375 Inscribed Circles and Isosceles Triangles
#include #include #define LOCAL#define PI asin(1.0) * 2int main(){ int tests; double B, h, H; double r, R; double edge; int i; #ifdef LOCAL freopen("c://uva_in.txt", "r", stdin); #endif scanf("%d", &tests); for (i = 0; i {
2010-10-06 16:00:00 852
Ubuntu Linux实用学习教程.pdf
2009-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人