摘要: DescriptionFarmer John has built a new long barn, with N (2 #includeusing namespace std;long N,C,a[100010];bool search(long x){long i,n=a[1],m=1;for (... 阅读全文
posted @ 2014-04-01 23:31 浪子小黄人 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Problem Description有三个正整数a,b,c(0using namespace std;int god(long x,int y){return y?god(y,x%y):x;}int main(){long i,x,a,b,c,n,y;cin>>n;while(n--){ ci... 阅读全文
posted @ 2014-04-01 22:06 浪子小黄人 阅读(193) 评论(0) 推荐(0) 编辑