公式
A - Strictly Increasing? 解説 by en_translator
As written in the problem statement, you are asked to check if \(A_i\lt A_{i+1}\) for all \(i\).
If you keep receiving Wrong Answer verdicts, check the following possible issues:
- Input is received in a wrong way.
- Check the method of input and output in Problem A, Welcome to AtCoder, of the practice contest.
- You are referencing an element of \(A\) outside its range.
- The direction of the inequality or the existence of the equality is wrong.
N = int(input())
A = list(map(int, input().split()))
for i in range(N - 1):
if A[i] >= A[i + 1]:
print("No")
break
else:
print("Yes")
投稿日時:
最終更新: