URI 1036 : Bhaskara's Formula Solve In C, C++, Java And Python


Problem: URI Online Judge | 1036

URI Online Judge | 1036

Bhaskara's Formula

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
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 negative number, presents the message “Impossivel calcular”.

Input

Read 3 floating-point numbers A, B and C.

Output

Print the result with 5 digits after the decimal point or the message if it is impossible to calculate.
Input SamplesOutput Samples
10.0 20.1 5.1R1 = -0.29788
R2 = -1.71212
0.0 20.0 5.0Impossivel calcular
10.3 203.0 5.0R1 = -0.02466
R2 = -19.68408
10.0 3.0 5.0Impossivel calcular

Solution In C:


URI 1035 : Selection Test 1 Solve In C, C++, Java And Python


Problem: URI Online Judge | 1035
URI Online Judge | 1035

Selection Test 1

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 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 and D is greater than the sum of A and B and if C and D were positives values and if A is even, write the message “Valores aceitos” (Accepted values). Otherwise, write the message “Valores nao aceitos” (Values not accepted).

Input

Four integer numbers A, B, C and D.

Output

Show the corresponding message after the validation of the values​​.
Input SampleOutput Sample
5 6 7 8Valores nao aceitos
2 3 2 6Valores aceitos

Solution In C:


URI 1021 : Banknotes and Coins Solve In C, C++, Java And Python


Problem: URI Online Judge | 1021
URI Online Judge | 1021

Banknotes and Coins

By Neilor Tonin, URI  Brazil
Timelimit: 1
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 decomposed. The considered notes are of 100, 50, 20, 10, 5, 2. The possible coins are of 1, 0.50, 0.25, 0.10, 0.05 and 0.01. Print the message “NOTAS:” followed by the list of notes and the message “MOEDAS:” followed by the list of coins.

Input

The input file contains a value of floating point (0 ≤ ≤ 1000000.00).

Output

Print the minimum quantity of banknotes and coins necessary to change the initial value, as the given example.
Input SampleOutput Sample
576.73NOTAS:
5 nota(s) de R$ 100.00
1 nota(s) de R$ 50.00
1 nota(s) de R$ 20.00
0 nota(s) de R$ 10.00
1 nota(s) de R$ 5.00
0 nota(s) de R$ 2.00
MOEDAS:
1 moeda(s) de R$ 1.00
1 moeda(s) de R$ 0.50
0 moeda(s) de R$ 0.25
2 moeda(s) de R$ 0.10
0 moeda(s) de R$ 0.05
3 moeda(s) de R$ 0.01
4.00NOTAS:
0 nota(s) de R$ 100.00
0 nota(s) de R$ 50.00
0 nota(s) de R$ 20.00
0 nota(s) de R$ 10.00
0 nota(s) de R$ 5.00
2 nota(s) de R$ 2.00
MOEDAS:
0 moeda(s) de R$ 1.00
0 moeda(s) de R$ 0.50
0 moeda(s) de R$ 0.25
0 moeda(s) de R$ 0.10
0 moeda(s) de R$ 0.05
0 moeda(s) de R$ 0.01
91.01NOTAS:
0 nota(s) de R$ 100.00
1 nota(s) de R$ 50.00
2 nota(s) de R$ 20.00
0 nota(s) de R$ 10.00
0 nota(s) de R$ 5.00
0 nota(s) de R$ 2.00
MOEDAS:
1 moeda(s) de R$ 1.00
0 moeda(s) de R$ 0.50
0 moeda(s) de R$ 0.25
0 moeda(s) de R$ 0.10
0 moeda(s) de R$ 0.05
1 moeda(s) de R$ 0.01

Solution In C:


Basic Problem Solving using C Programming Language | Programming Basic


Problem Solving:
Note: At first try yourself by "Hide Solution" and if you failed then "Show Solutions". Happy Coding :)

Problem 1:  Write your first program which will print "Hello World"
Solution:

Problem 2:  Write a program which will take input two numbers from user and print.
Solution:

Problem 3:  Write a program which will take input a character from user and print.
Solution:

Problem 4:  Write your first program which will print "Hello World"
Solution:

Problem 5:  Write your first program which will print "Hello World"
Solution:

Problem 6:  Write your first program which will print "Hello World"
Solution:

Problem 7:  Write your first program which will print "Hello World"
Solution:

Problem 8:  Write your first program which will print "Hello World"
Solution:

Problem 9:  Write your first program which will print "Hello World"
Solution:

Problem 10:  Write your first program which will print "Hello World"
Solution:

Problem 11:  Write your first program which will print "Hello World"
Solution:

Problem 12:  Write your first program which will print "Hello World"
Solution:

Problem 13:  Write your first program which will print "Hello World"
Solution:

Problem 14:  Write your first program which will print "Hello World"
Solution:

Problem 15:  Write your first program which will print "Hello World"
Solution:

Problem 16:  Write your first program which will print "Hello World"
Solution:

Problem 17:  Write your first program which will print "Hello World"
Solution:

Problem 18:  Write your first program which will print "Hello World"
Solution:

C Programming (Problem & Solutions) by Md. Ashraf-ul Asad | PDF Book [Free Download]


C Programming 
 Md. Ashraf-ul Asad | Free PDF Book


Details: The best C programming Practice Book written By Md. Ashraf-ul Asad - Lacturer , University Of Rajshahi.


Book Screenshot 



Free Download


Computer Programming - Tamim Shahriar subeen | PDF Book [Free Download]


Computer Programming 
 Tamim Shahriar subeen | Free PDF Book


Details: The Best Bangla C Programming book ever. written by Tamim Shahriar Subeen and Published with Dimik Prokashoni. It has three sequence Part-1, Part-2 and Part-3. That is Part-1 and we are being ready to upload others part of this book very soon. Stay Connected.

Book Cover 




Free Download








URI 1020 : Age in Days Solve In C, C++, Java And Python


Problem: URI Online Judge | 1020

Age in Days

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Read an integer value corresponding to a person's age (in days) and print it in years, months and days, followed by its respective message “ano(s)”, “mes(es)”, “dia(s)”.
Note: only to facilitate the calculation, consider the whole year with 365 days and 30 days every month. In the cases of test there will never be a situation that allows 12 months and some days, like 360, 363 or 364. This is just an exercise for the purpose of testing simple mathematical reasoning.

Input

The input file contains 1 integer value.

Output

Print the output, like the following example.
Input SampleOutput Sample
4001 ano(s)
1 mes(es)
5 dia(s)
8002 ano(s)
2 mes(es)
10 dia(s)
300 ano(s)
1 mes(es)
0 dia(s)

Solution In C:


URI 1019 : Time Conversion Solve In C, C++, Java And Python


Problem: URI Online Judge | 1019

Time Conversion

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Read an integer value, which is the duration in seconds of a certain event in a factory, and inform it expressed in hours:minutes:seconds.

Input

The input file contains an integer N.

Output

Print the read time in the input file (seconds) converted in hours:minutes:seconds like the following example.
Input SampleOutput Sample
5560:9:16
10:0:1
14015338:55:53

Solutions In C:


URI 1018 : Banknotes Solve In C, C++, Java And Python


Problem: URI Online Judge | 1018

Banknotes

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
In this problem you have to read an integer value and calculate the smallest possible number of banknotes in which the value may be decomposed. The possible banknotes are 100, 50, 20, 10, 5, 2 e 1. Print the read value and the list of banknotes.

Input

The input file contains an integer value (0 < < 1000000).

Output

Print the read number and the minimum quantity of each necessary banknotes in Portuguese language, as the given example. Do not forget to print the end of line after each line, otherwise you will receive “Presentation Error”.
Input SampleOutput Sample
576576
5 nota(s) de R$ 100,00
1 nota(s) de R$ 50,00
1 nota(s) de R$ 20,00
0 nota(s) de R$ 10,00
1 nota(s) de R$ 5,00
0 nota(s) de R$ 2,00
1 nota(s) de R$ 1,00
1125711257
112 nota(s) de R$ 100,00
1 nota(s) de R$ 50,00
0 nota(s) de R$ 20,00
0 nota(s) de R$ 10,00
1 nota(s) de R$ 5,00
1 nota(s) de R$ 2,00
0 nota(s) de R$ 1,00
503503
5 nota(s) de R$ 100,00
0 nota(s) de R$ 50,00
0 nota(s) de R$ 20,00
0 nota(s) de R$ 10,00
0 nota(s) de R$ 5,00
1 nota(s) de R$ 2,00
1 nota(s) de R$ 1,00
Solution In C:


URI 1017 : Fuel Spent Solve In C, C++, Java And Python


Problem: URI Online Judge | 1017

Fuel Spent

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Little John wants to calculate and show the amount of spent fuel liters on a trip, using a car that does 12 Km/L. For this, he would like you to help him through a simple program. To perform the calculation, you have to read spent time (in hours) and the same average speed (km/h). In this way, you can get distance and then, calculate how many liters would be needed. Show the value with three decimal places after the point.

Input

The input file contains two integers. The first one is the spent time in the trip (in hours). The second one is the average speed during the trip (in Km/h).

Output

Print how many liters would be needed to do this trip, with three digits after the decimal point.
Input SampleOutput Sample
10
85
70.833
2
92
15.333
22
67
122.833
Solution In C:


URI 1016 : Distance Solve In C, C++, Java And Python


Problem: URI Online Judge | 1016

Distance

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Two cars (X and Y) leave in the same direction. The car X leaves with a constant speed of 60 km/h and the car Y leaves with a constant speed of 90 km / h.
In one hour (60 minutes) the car Y can get a distance of 30 kilometers from the X car, in other words, it can get away one kilometer for each 2 minutes.
Read the distance (in km) and calculate how long it takes (in minutes) for the car Y to take this distance in relation to the other car.

Input

The input file contains 1 integer value.

Output

Print the necessary time followed by the message "minutos" that means minutes in Portuguese.
Input SampleOutput Sample
3060 minutos
110220 minutos
714 minutos
Solution In C:


URI 1015 : Distance Between Two Points Solve In C, C++, Java And Python


Problem: URI Online Judge | 1015

Distance Between Two Points

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Read the four values corresponding to the x and y axes of two points in the plane, p1 (x1, y1) and p2 (x2, y2) and calculate the distance between them, showing four decimal places after the comma, according to the formula:
Distance = 

Input

The input file contains two lines of data. The first one contains two double values: x1 y1 and the second one also contains two double values with one digit after the decimal point: x2 y2.

Output

Calculate and print the distance value using the provided formula, with 4 digits after the decimal point.
Input SampleOutput Sample
1.0 7.0
5.0 9.0
4.4721
-2.5 0.4
12.1 7.3
16.1484
2.5 -0.4
-12.2 7.0
16.4575

Solution In C:


URI 1014 : Consumption Solve In C, C++, Java And Python


Problem: URI Online Judge | 1014

Consumption

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Calculate a car's average consumption being provided the total distance traveled (in Km) and the spent fuel total (in liters).

Input

The input file contains two values: one integer value representing the total distance (in Km) and the second one is a floating point number Y  representing the spent fuel total, with a digit after the decimal point.

Output

Present a value that represents the average consumption of a car with 3 digits after the decimal point, followed by the message "km/l".
Input SampleOutput Sample
500
35.0
14.286 km/l
2254
124.4
18.119 km/l
4554
464.6
9.802 km/l

Solution In C:


Dex : Modern Blog/Portfolio Premium Blogger Template [Free Download]


Dex : Modern Blog/Portfolio Premium Blogger Template

This is the latest Blogger template in this series and if you don’t mind spending a bit of money, this template is all you need. It works flawlessly with The Blogger Theme Designer and you can customize color, fonts and you can also choose from multiple layouts. The template comes Pre-built with 8 different layouts: 
  • Fashion template 
  • Travel blog template 
  • Creative blog template 
  • Photography blog template 
  • Personal blog template 
  • Portfolio blog template 

And more.

Screenshot




Live Demo

To Get Live Browsing experience click View Demo Button.



Free Download

If you like this theme , click download button to download Dex : Modern Blog/Portfolio Premium Blogger Template for free.