1.设计思想:从买1本开始计算最低价格,得到规律:当买8本时,买2套4卷时价格最便宜,其他的情况买5卷不一样的得到最低价格。2.代码#include using namespace std;void main(){ int n; cout>n; int a=0; ... Read More
posted @ 2015-05-13 14:48 小凤凰 Views(187) Comments(1) Diggs(0)