結果
問題 | No.116 門松列(1) |
ユーザー |
|
提出日時 | 2020-11-27 08:21:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-23 21:22:56 |
合計ジャッジ時間 | 2,195 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
N = int(input()) l = list(map(int, input().split())) c = 0 for i in range(N-2): x = l[i:i+3] if len(set(x))==3 and x[1]!=sorted(x)[1]: c += 1 print(c)