摘要: #includeusing namespace std;__int64 f(__int64 a,__int64 b){ __int64 t; __int64 sum=a*b; if(a<b) { t=a; a=b; b=t; } while(b) { t=a%b; a=b; b=t; } return sum/a;}int main(){ int t,n; __int64 x; __int64 lcm; scanf("%d",&t); while(t--) { scanf("%d",&n); scanf("%I64d&qu 阅读全文
posted @ 2014-04-22 18:34 _一千零一夜 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #includeusingnamespacestd;voidarray2(floatarr[][4],intn){floatmax,min,sum;inti,j;for(i=0;iarr[i][j])min=arr[i][j];}cout<<max<<"";cout<<min<<"";cout<<sum<<"";cout<<sum/4<<endl;}} 阅读全文
posted @ 2014-04-22 00:05 _一千零一夜 阅读(258) 评论(0) 推荐(0) 编辑