Questions tagged as 'uri-online-judge'

1
answer

How to improve common maximum divisor algorithm - URI 1028

I'm solving this URI problem that basically asks for the maximum common divisor between two values. I originally resolved with math.gcd on half a dozen lines, but the code was not accepted since the URI uses a version of Python 3 pri...
asked by 05.08.2018 / 15:46
1
answer

URI Online Judge - 1168 - Java

I'm trying to solve URI problem 1168. However, I can not get the number of leds needed to mount a number. Specifically, my valorLed variable is always resulting in zero. Can you help me? Problem: link My code: import java.util.S...
asked by 26.06.2016 / 21:36
1
answer

Ruby - Printing zero as decimal place

I am learning to program in Ruby, and to go training, I use Uri Online Judge, where I solve exercises that are presented, I make the code in some language that the platform accepts (in this case Ruby) and then I send it to the system , but the o...
asked by 02.05.2017 / 01:15
1
answer

Square Matrix in Python 3

My code is printing spaces at the beginning and end of the line, and it is giving presentation error (question 1557 URI) Does anyone have a good tip? "The values of the arrays must be formatted in a field of T size justified to the right and sep...
asked by 11.11.2017 / 14:28
1
answer

URI Problem 1061

Hello everyone, I am using a website to try to make a programming request. link I'm in Exercise 1061: link WhenIsendmycode,itsaysthatithas30%error,couldanyonehelpme?code:#include<stdio.h>intmain(){intW,X,Y,Z,d1,h1,m1,s1,d2,h2,m2...
asked by 13.03.2016 / 23:23
0
answers

Runtime Error URI1270

I made a code in C ++ to solve the 1270 Fiber Optic URI problem. I did several simulations and the code solves the problem but in the URI environment, the answer is "Runtime Error". Can someone help me figure out where the error is in the code?...
asked by 13.07.2017 / 05:09
1
answer

2597 - Uri Online Judge - C ++

I'm doing a C ++ program to solve the 2597 math exercise of the ONLINE JUDGE platform below the problem description below. IstarteddoingtheprograminC++,butrealizethattheinputistoolarge,ItriedtomakeaDPtopreprocesseverythingbefore,butIcann...
asked by 05.08.2018 / 17:17
2
answers

Python uri online judge

Read an integer value X. Then display the 6 consecutive odd values from X, one value per line, even if X is the case. Entry: the entry will be a positive integer value. Output: The output will be a sequence of six odd numbers. x=int(inpu...
asked by 14.10.2018 / 15:53
1
answer

Problem Related to graphs

I am doing this question in URI Online Judge . I'm trying with DFS, but by now I did not get anything. I put a variable to mark it up to the level it goes and when it reaches that level it comes back, but it is returning the wrong outputs...
asked by 14.09.2018 / 14:19
1
answer

URI problem 1061 - C #

I have a problem that the code below gives me the correct result, but when I send it to the site it informs the RUNTIME error (vector or array with less capacity than necessary for the problem, or when you try to access an invalid memory.) I c...
asked by 30.04.2018 / 20:51