結果

問題 No.116 門松列(1)
ユーザー TawaraTawara
提出日時 2015-10-12 17:18:07
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 6,704 KB
実行使用メモリ 6,240 KB
最終ジャッジ日時 2023-09-28 12:41:01
合計ジャッジ時間 1,743 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 11 ms
5,976 KB
testcase_02 AC 11 ms
6,044 KB
testcase_03 AC 11 ms
5,980 KB
testcase_04 AC 11 ms
6,192 KB
testcase_05 AC 12 ms
6,060 KB
testcase_06 AC 11 ms
5,976 KB
testcase_07 AC 12 ms
6,076 KB
testcase_08 AC 11 ms
5,996 KB
testcase_09 AC 11 ms
6,040 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 11 ms
5,976 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 11 ms
6,192 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 11 ms
6,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0