#include using namespacestd;#definePrice 8Doublediscount[5]={0,0.05,0.1,0.2,0.25};DoubleCaculate (intNUM1,intNUM2)//calculate the price of the case{ DoubleMoney,money1,money2; Money1= (price-price*discount[num1-1])*NUM1; Money2= (price-price*discount[num2-1])*num2; Money=
Topic:Bookstore for the "Harry Potter" series of books for promotional activities, a total of 5 volumes, with numbers 0, 1, 2, 3, 4, a single volume of 8 yuan, the specific discount is as follows:Discount on this number2 5%3 10%4 20%5 25%Depending on the number of volumes purchased and this number, different discount rules will be applicable. The singular book only corresponds to one discount rule, for example, two volume 1, one volume 2, you can enjoy 5% discount, another volume does not enjoy
[The sixth ACM competition in Shandong province] Title B Lowest Unique Price (SDUT3252) and lowestsdut3252
Link: Here
This question is my biggest regret in this year's provincial competition. Ah... I feel sad when I think about it. This question is not difficult, but I already thought about how to do it during the competition. However, due to the mistakes made by the monks, our team spent the next two hours
1. Register for Linux ops or Python full stack course straight down 1000 yuan during the event and give away any online course videos other than the Python automation courseA2. This event and the introduction of the policy overlay: students to introduce Linux and Python students, received a set of any network video (value 3600-5000), wasThe introductory student also enjoys sending this treatment, then at a discount of 1000!Interested in a little partner buckle meFree Trial Courses:Old boy It edu
A topic on pat. The original question test instructions is the supply tree structure of a given supplier to a retailer, each of which increases by R at the first supplier price, the price offered by the initial supplier is p, the lowest price to reach the retailer, and the minimum number of retailers. is actually the s
1. Register for Linux ops or Python full stack course straight down 1000 yuan during the event, and give away a set of any online course videos except the Python Automation course;2. This event and the introduction of the policy overlay: students to introduce Linux and Python students, received a set of any network video (value 3600-5000), wasThe introductory student also enjoys sending this treatment, then at a discount of 1000!Interested in a little partner buckle meFree Trial Courses:Old boy
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.