摘要: 题意:给定初始位置,查询n次区间,每次查询前可以花费移动距离的代价来移动,查询时需要花费当前位置到区间内最近的点的距离,求最小代价。1#include inline int read(){ int s = 0; char c; while((c=getchar())'9'); do{s=s*10+c... 阅读全文
posted @ 2015-12-04 22:33 MoebiusMeow 阅读(457) 评论(0) 推荐(0) 编辑