【贪心】[USACO 2015 February Contest, Gold]Circular Barn
题目大意农夫约翰有一个圆形的谷仓,谷仓分成了环形的n(3#include#include#defineMAXN100000usingnamespacestd;queueq;intn,r[MAXN+10],a[MAXN+10];longlongans;voidRead(int&x){charc;while(c=getchar(),c!=EOF)if(c>='0'&&c='0'&&c<='9')x=x