Country X is surrounded by oceans. One day
there is a forecast for a cyclone by weather
agencies, its red alert for the whole country.
All the beaches have been sealed. There are
Nlighthouses forming a straight line around
the coast area and the government wants to
check the range of a lighthouse to identify
the one that can be used to guide the ships
that are reaching the ports.
Now, the range R of a Lighthouse is define
(A* B) mod 1000000007
where,
A number of lighthouses visible on the left
side of that lighthouse + number of
lighthouses visible on the right side of that
lighthouse.
2 #include
3 #include
#include
5 #include
6 #include
7 #include
8 #include
9
#include
10 #include
11 #include
12 #include
13 #include
14
#include
15
#include
16 #include
17 #include
18 #include
19
#include
20
#include
21
#include
22
#include
23
24 using namespace std;
25 v int main() {
26
/* Enter your code here. Read inpu
27
return 0;
Answers
Answered by
0
Answer:
what is the question it's not understanding please write correct order
hope it's understand
Similar questions
Hindi,
2 months ago
Biology,
5 months ago
Science,
5 months ago
Environmental Sciences,
10 months ago
Accountancy,
10 months ago