原创 HDU 2015 偶數求和

Problem Description 有一個長度爲n(n<=100)的數列,該數列定義爲從2開始的遞增有序偶數,現在要求你按照順序每m個數求出一個平均值,如果最後不足m個,則以實際數量求平均值。編程輸出該平均值序列。   Input 輸

原创 HDU 1064Financial Management

Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. La

原创 HDU 1425 sort

Problem Description 給你n個整數,請按從大到小的順序輸出其中前m大的數。   Input 每組測試數據有兩行,第一行有兩個數n,m(0<n,m<1000000),第二行包含n個各不相同,且都處於區間[-500000,5

原创 HDU 1037Keep on Truckin'

Problem Description Boudreaux and Thibodeaux are on the road again . . . "Boudreaux, we have to get this shipment of mu