#K69962. Days with High Sales
Days with High Sales
Days with High Sales
You are given the sales data of a company over \(N\) days. Your task is to determine on which days the sales exceeded a given threshold \(S\). Days are 1-indexed, meaning the first day is counted as day 1, the second day as day 2, and so on.
Formally, for each day \(i\) (where \(1 \leq i \leq N\)), if the sales on day \(i\), denoted as \(sales[i]\), is strictly greater than \(S\) (i.e. \(sales[i] > S\)), then day \(i\) should be included in the output. If no day meets the requirement, output an empty line.
Example: If \(N = 6\), \(sales = [12000, 8000, 15000, 7000, 18000, 9000]\) and \(S = 10000\), then the output should be 1 3 5.
inputFormat
The input is given in three lines:
- The first line contains an integer \(N\), the number of days.
- The second line contains \(N\) space-separated integers, representing the sales for each day.
- The third line contains an integer \(S\), the sales threshold.
outputFormat
Output a single line containing the 1-indexed days (separated by a space) on which the sales were greater than \(S\). If no such day exists, output an empty line.
## sample6
12000 8000 15000 7000 18000 9000
10000
1 3 5