Main page Tasks Volumes Ranking Help

Back to task list

Fahrenheit to Celsius

There are two widespread systems of measuring temperature - Celsius and Fahrenheit.

By Celsius water freezes at 0 degrees and boils at 100 degrees. By Fahrenheit water freezes at 32 degrees and boils at 212 degrees. More details could be found at wikipedia on Fahrenheit.

You are to write program to convert degrees of Fahrenheit to Celsius. Data are given in the following format:
first goes the number of values to convert (let it be N),
then there go values itself (N values at all).
You are to calculate N results, rounded to nearest integer and separated by spaces.


5 495 353 168 -39 22
257 178 76 -39 6
You need to login to get test data and submit solution.