Home » URI Online Judge

URI 1042 – C programming (Solve) : Simple Sort

URI Online Judge

URI 1042 – C programming (Solve) : Simple Sort \ Read three integers and sort them in ascending order. After, print these values in ascending order, a blank line and then the values in the sequence as they…

Read More »

URI 1048 – C programming (Solve) : Salary Increase

URI Online Judge

URI 1048 – C programming (Solve) : Salary Increase : The company ABC decided to give a salary increase to its employees, according to the following table:Read the employee’s salary, calculate and print the new employee’s salary, as…

Read More »

URI 1046 – C programming (Solve) : Game Time

URI Online Judge

URI 1046 – C programming (Solve) : Game Time Read the start time and end time of a game, in hours. Then calculate the duration of the game, knowing that the game can begin in a day and…

Read More »

URI 1045 – C programming (Solve) : Triangle Types

URI Online Judge

URI 1045 – C programming (Solve) : Triangle Types : Read 3 double numbers (A, B and C) representing the sides of a triangle and arrange them in decreasing order, so that the side A is the biggest…

Read More »

URI 1044 – C programming (Solve) : Multiples

URI Online Judge

URI 1044 – C programming (Solve) : Multiples Read two nteger values (A and B). After, the program should print the message “Sao Multiplos” (are multiples) or “Nao sao Multiplos” (aren’t multiples), corresponding to the read values. Input The input has two…

Read More »

URI 1043 – C programming (Solve) : Triangle

URI Online Judge

URI 1043 – C programming (Solve) : Triangle Read three point floating values (A, B and C) and verify if is possible to make a triangle with them. If it is possible, calculate the perimeter of the triangle…

Read More »

URI 1041 – C programming (Solve) : Coordinates of a Point

URI Online Judge

URI 1041 – C programming (Solve) : Coordinates of a Point Write an algorithm that reads two floating values (x and y), which should represent the coordinates of a point in a plane. Next, determine which quadrant the…

Read More »

URI 1040 – C programming (Solve) : Average 3

URI Online Judge

URI 1040 – C programming (Solve) : Average 3 Read four numbers (N1, N2, N3, N4), which one with 1 digit after the decimal point, corresponding to 4 scores obtained by a student. Calculate the average with weights…

Read More »

URI 1037 – C programming (Solve) : Interval

URI Online Judge

URI 1037 – C programming (Solve) : Interval – You must make a program that read a float-point number and print a message saying in which of following intervals the number belongs: [0,25] (25,50], (50,75], (75,100]. If the…

Read More »

URI 1038 – C programming (Solve) : Snack

URI Online Judge

URI 1038 – C programming (Solve) : Snack Using the following table, write a program that reads a code and the amount of an item. After, print the value to pay. This is a very simple program with…

Read More »

URI 1036 – C programming (Solve) : Bhaskara’s Formula

URI Online Judge

URI 1036 – C programming (Solve) : Bhaskara’s Formula- Read 3 floating-point numbers. After, print the roots of bhaskara’s formula. If it’s impossible to calculate the roots because a division by zero or a square root of a…

Read More »

URI 1035 – C programming (Solve) : Selection Test 1

URI Online Judge

URI 1035 – C programming (Solve) : Selection Test 1 Read 4 integer values A, B, C and D. Then if B is greater than C and D is greater than A and if the sum of C…

Read More »

URI 1021 – C programming (Solve) : Banknotes and Coins

URI Online Judge

URI 1021 – C programming (Solve) : Banknotes and Coins Read a value of floating point with two decimal places. This represents a monetary value. After this, calculate the smallest possible number of notes and coins on which the value can be…

Read More »

URI 1052 – C programming (Solve) : Month

URI 1052 – C programming (Solve) : Month – Read an integer number between 1 and 12, including. Corresponding to this number, you must print the month of the year, in english, with the first letter in uppercase….

Read More »

URI 1067 – C programming (Solve) : ODD Numbers

URI Online Judge

Read an integer value X (1 <= X <= 1000).  Then print the odd numbers from 1 to X, each one in a line, including Xif is the case. Input The input will be an integer value. Output Print all odd values between 1…

Read More »