- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 POJ 3253
#include <stdio.h> #define N 20000 int count; int planks[N]; /////////////////////////// int queue[N]; int size; void push(int n) { int i = size++; while(i > 0) { ...
2018-12-26 16:32:54 1006
原创 POJ 3253 之二
#include <stdio.h> #define N 20000 int count; int planks[N]; long long get_minimum(void) { long long cost = 0; while( count > 1) { int m1 = 0, m2 = 1; if...
2018-12-26 01:44:01 147
原创 POJ 3253(Fence Repair)
解法一: #include <stdio.h> #define N 20000 int count; int planks[N]; int partition(int start, int end) { int i, j; j = start - 1; for( i = start; i < end; i++) { ...
2018-12-23 11:40:45 194
原创 POJ2431 Expedition
#include <stdio.h> #define N 10000 int dist[N]; int fuel[N]; int cur_distance; int cur_fuel; int count; ///////////////////////////////// int size; int queue[N]; void push(int f) { i...
2018-12-22 15:14:53 321
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人