scanf:float用%f,double用%lf printf:float和double都用%f,因为严格来说printf没有定义%lf POJ 1521 Entropy(求哈夫曼编码)用%lf输出wa到死,用%f就ac了