#K38517. Top Two Hottest Days with No Rainfall

    ID: 26216 Type: Default 1000ms 256MiB

Top Two Hottest Days with No Rainfall

Top Two Hottest Days with No Rainfall

Given two lists representing the daily temperatures and the daily precipitation levels, the task is to identify the top two hottest days where there was no rainfall. In other words, you need to find the indices of at most two days with the highest temperature among the days that have a precipitation value of 0.

If there is only one day with no rainfall, output its index. If there are no days with zero rainfall, output an empty result.

Note: The days are indexed starting from 0.

inputFormat

The input consists of two lines read from standard input (stdin):

  • The first line contains space-separated integers representing the daily temperatures.
  • The second line contains space-separated integers representing the daily precipitation levels.

outputFormat

Output the indices of the top two hottest days with no rainfall in a single line, separated by a space. If there is only one valid day, output its index. If there are no valid days, output an empty line.

## sample
70 85 90 88 72 95 80
0 5 0 10 0 7 0
2 6

</p>