#K49117. Strictly Increasing Sequence

    ID: 28572 Type: Default 1000ms 256MiB

Strictly Increasing Sequence

Strictly Increasing Sequence

Given a sequence of scores representing levels in a game, determine if the sequence is strictly increasing. A sequence is strictly increasing if for every \( i \) (where \( 1 \leq i < n \)), the condition \( a_i < a_{i+1} \) holds.

You are required to process multiple test cases. For each test case, print "YES" if the sequence is strictly increasing, otherwise print "NO".

inputFormat

The input begins with an integer \( T \) denoting the number of test cases. Each test case consists of two lines:

  • The first line contains an integer \( N \) representing the number of elements in the sequence.
  • The second line contains \( N \) space-separated integers representing the sequence.

outputFormat

For each test case, output a single line containing either "YES" if the sequence is strictly increasing, or "NO" otherwise.

## sample
1
3
1 2 3
YES

</p>