Sgu 217. Two Cylinders

Source: Internet
Author: User

Question: calculate the volume of the public part of the two cylinders in the space when the axes are perpendicular to each other.

Brute force credits.

ID: Date 'n' time: Name: Task: . Ext: Status: Time: Memory:
1589374 02.09.14 Huzhifeng 217 . Cpp Accepted 499 MS 46 KB

The precision gets stuck, and it times out after S...


Use the Simpson's rule:

ID: Date 'n' time: Name: Task: . Ext: Status: Time: Memory:
1589386 02.09.14 20:03 Huzhifeng 217 . Cpp Accepted MS 15 106 KB

Nice stuff! High precision and speed!

 

Brute force code

Simpson code

Sgu 217. Two Cylinders

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.