#K54032. Determine Fitness Activity
Determine Fitness Activity
Determine Fitness Activity
You are given a series of daily step counts over a period of multiple weeks. Each week consists of 7 days. Your task is to determine the fitness activity level for each week based on the average daily steps. Specifically, calculate the average steps for each week and if the average is greater than or equal to \(10{,}000\) (i.e. \(\ge 10{,}000\)), then the week is considered "Active"; otherwise, it is "Inactive".
Input Format: The first line of input contains an integer \(n\), the total number of days (it is guaranteed that \(n\) is a multiple of 7). The second line contains \(n\) space-separated integers representing the daily step counts.
Output Format: Output the fitness status for each week in one line, separated by a space. Each status is either "Active" or "Inactive".
For example, if the input is:
7 12000 11000 8000 9500 10000 10500 11500
Then the output should be:
Active
inputFormat
The first line contains an integer n (n is a multiple of 7) representing the total number of days. The second line contains n space-separated integers indicating the daily step counts.
outputFormat
Output a single line containing the fitness status for each week separated by a space. For each week, output "Active" if the average steps are at least 10,000; otherwise, output "Inactive".## sample
7
12000 11000 8000 9500 10000 10500 11500
Active