The story of HDU 1408 Brine

Source: Internet
Author: User

 

Question:

When the brine is attached, if the drops are regular, first drop a drop and stop. Then drop two drops and stop. Then drop three drops and stop ..., now there is a problem: this bottle of Brine has a total of VUL milliliters, each of which is D milliliters, and the speed of each drop is one second (assuming the last drop is less than D milliliters, it takes only one second). When can the bottle of water be suspended?

 

Output Limit Exceeded first encountered ....

Well, I don't know why. I read other people's stories .. I am an Int in double. Okay, I changed it to AC, QAQ.

 

# Include

 
  
Int main () {double v, d; while (~ Scanf (% lf, & v, & d) {int cur = 1; int ans = 0; while (v> 0) {for (int I = 0; I

  

   

 

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.