URI Online Judge Solution 1016 Distance – URI 1016 Solution in C, C++, Java, Python and C#

URI Online Judge Solution URI Solution -Beginner

URI Online Judge Solution 1016 Distance – URI 1016 Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1016 Distance | Beginner
URI Problem Link – https://www.urionlinejudge.com.br/judge/en/problems/view/1016

Problem Name: 1016 Distance code
Problem Number : URI – 1016 Distance solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

URI Solution 1016 Distance Code in C / :

#include <stdio.h>

int
main()
{

int
d;

scanf("%d", &d);

int
t = d/((90 / 60.0) - (60 / 60.0));

printf("%d minutosn", t);

return
0;
}

URI Solution 1016 Distance Code / URI 1016 Distance solution in CPP:

#include <iostream>

using namespace
std;

int
main()
{

int
d;

cin >> d;

int
t = d/((90 / 60.0) - (60 / 60.0));

cout << t << " minutos" << endl;

return
0;
}

URI Solution 1016 Distance Code / URI 1016 Distance solution in Java:

import java.util.Scanner;


public class
Main {

public static
void main(String[] args) {

int
d;

Scanner sc = new Scanner(System.in);
d = sc.nextInt();

int
t = (int) (d / ((90 / 60.0) - (60 / 60.0)));

System.out.printf("%d minutosn", t);
}

}

URI Solution 1016 Distance Code / URI 1016 Distance solution in  Python:

URI Solution 1016 Distance Code / URI 1002 solution in  C# (C Sharp):


Demonstration:


Convert distances in minutes by dividing 60.0

d/((90 / 60.0) - (60 / 60.0));

Just implement this in coding. Since having any problem just put a comment below. Thanks

Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI Distance  code in C, URI 1016 Distance code in C++, URI Distance solution in C, URI solution, URI 1016 Distance solution in C,URI 1016 Distance solution in C++-CPP,URI 1016 Distance solution in C# (C sharp),URI 1016 Distance solution in Java,URI 1016 Distance solution in Python,

Leave a Reply

Your email address will not be published.