Stock Exchange
Time Limit: 1000MS | Memory Limit: 65536K | |
Total Submissions: 3887 | Accepted: 1402 |
Description
The world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very concerned about the evolution of the stock exchange. He follows stock prices every day looking for rising trends. Given a sequence of numbers p1, p2,...,pn repre