結果
問題 |
No.116 門松列(1)
|
ユーザー |
![]() |
提出日時 | 2015-10-12 17:18:07 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-07-21 07:18:42 |
合計ジャッジ時間 | 1,641 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 12 |
ソースコード
N = input() A = map(int,raw_input().split()) print sum(1 if (not (A[i] <= A[i+1] <= A[i+2]) and A[i] != A[i+2]) else 0 for i in xrange(N-2))