#C5323. Average Visitors Analysis of The Great Wall of China
Average Visitors Analysis of The Great Wall of China
Average Visitors Analysis of The Great Wall of China
The Great Wall of China, one of the most iconic symbols in China's rich history, attracts millions of tourists every year. To better manage this influx, the authorities require a program that analyzes visitor data over several days across different sections of the wall. You will be given multiple datasets. Each dataset begins with two integers \(d\) and \(s\) (with \(1 \le d, s \le 1000\)), where \(d\) is the number of days and \(s\) is the number of sections. This is followed by \(d\) lines, each containing \(s\) integers indicating the number of visitors at each section on that day (each integer is in the range \(0 \le visitor \le 10000\)). The input terminates with a line containing "0 0".
Your task is to compute the average number of visitors for each section over the given days, rounding each average to two decimal places. The result for each dataset should be printed as \(s\) lines (one for each section).
inputFormat
The input consists of multiple datasets. Each dataset starts with a line containing two integers, \(d\) and \(s\) (where \(1 \le d, s \le 1000\)). Following that, there are \(d\) lines, each containing \(s\) integers representing the number of visitors for the respective sections on that day. The end of input is indicated by a line containing "0 0".
outputFormat
For each dataset, output \(s\) lines. The \(i\)-th line should contain the average number of visitors for the \(i\)-th section over all \(d\) days, rounded to two decimal places.
## sample3 4
120 130 140 150
130 140 150 160
140 150 160 170
0 0
130.00
140.00
150.00
160.00
</p>