Saturday, May 13, 2017

URI Solution 1197 Back to High School Physics - Solutions in C, C++

URI Solution 1197 Back to High School Physics - Solutions in C, C++


URI Online Judge Solution  1197 Back to High School Physics | Data structures
URI Main Problem Link - 1197 Back to High School Physics https://www.urionlinejudge.com.br/judge/en/problems/view/1197

Problem Name: URI Problem 1197 Back to High School Physics
Problem Number : URI Problem 1197 Back to High School Physics Solution
Online Judge : URI Online Judge Solution
Level: Data structures
Solution Language : C, C plus plus

URI Solution 1197 Back to High School Physics - Solutions in C, C++


URI Solution 1197 Back to High School Physics Code in C:

#include <stdio.h>

int main(){
    int v, t;

    while(scanf("%d", &v) != EOF){
        scanf("%d", &t);
        printf("%d\n", v*(2*t));
    }
    return 0;
}


URI Solution 1197 Back to High School Physics Code in CPP:

#include <iostream>
using namespace std;

int main()
{
 int v, t;

 while(cin >> v >> t)
 {
  cout << ((v * t) * 2) << endl;
 }

 return 0;
}




Tags: Uri solve , Uri solution, URI oj Solve, URI Online Judge Solution list, URI 1197 solution in C, URI 1197 Code in C++, URI Back to high school solution

No comments:
Write comments

To know more about the problem, give us your valuable commment. We'll try to help you. Thanks

All rights reserved ©2016 -URI ONLINE JUDGE SOLUTION | Developed by Maniruzzaman Akash

© 2016 URI ONLINE JUDGE SOLUTION. Developed by Maniruzzaman Akash | Distributed By Gooyaabi Templates
Powered by Blogger.