1006. Stone, 1006 stone

Source: Internet
Author: User

1006. Stone, 1006 stone
1006. Rock (Standard IO) Time Limit: 1000 MS space limit: 262144 KB Specific Limit

The honest farmer found three small stones yesterday. He wanted to pick up another small stone and let the four stones weigh 20 kilograms in total, how many pounds of stones should he pick up? Enter three integers, a, B, and c, which are the weights of these three stones) Output a number, indicating how many pounds of stones the farmer should pick up. Sample Input
3 5 7
Sample output
Data range restrictions
1 # include <iostream> 2 # include <cstdio> 3 # include <cmath> 4 using namespace std; 5 int r, x, p; 6 int main () 7 {8 cin> r> x> p; 9 printf ("% d", 20-r-x-p); 10 return 0; 11}


Related Article

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.