摘要: //UVa133 - The Dole Queue#include#define maxn 25using namespace std;int n, k, m, a[maxn];//p为初位置,逆时针走t步,d为-1时顺时针走,返回新位置int go(int p, i... 阅读全文
posted @ 2017-02-19 00:54 gwj1139177410 阅读(84) 评论(0) 推荐(0) 编辑
摘要: //UVa101 - The Blocks Problem#include#include#include#includeusing namespace std;const int maxn = 30;int n;vectorpile[maxn];//找木块a所在的p... 阅读全文
posted @ 2017-02-19 00:39 gwj1139177410 阅读(82) 评论(0) 推荐(0) 编辑
选择