UvaOJ10071-Back to High School Physics

Source: Internet
Author: User

UvaOJ10071-Back to High School Physics

Problem B

Back to High School Physics

Input:Standard input

Output:Standard output

A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?

Input

The input will contain two integers in each line. each line makes one set of input. these two integers denote the value of v (-100 <= v <= 100) and t (0 <= t <= 200) (t means at the time the particle gains that velocity)

Output

For each line of input print a single integer in one line denoting the displacement in double of that time.

Sample Input

0 0
5 12

Sample Output

0
120
___________________________________________________________________________________

Shahriar Manzoor

# Include
 
  
# Include
  
   
# Include
   
    
# Include
    
     
# Include
     # Include
      
        # Include
       
         # Include
        
          // # Define lllusing namespace std; int main () {# ifdef lll freopen ("C: \ Documents and Settings \ K70 \ Desktop \ cin.txt ", "r", stdin); freopen ("C: \ Documents and Settings \ K70 \ Desktop \ out.txt", "w", stdout ); # endif long a, B; while (cin> a> B) {cout <2 * B * a <
         
          

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.