結果

問題 No.1435 Mmm......
ユーザー tyawanmusityawanmusi
提出日時 2020-10-21 18:05:58
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 176 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 99,876 KB
最終ジャッジ日時 2023-09-28 14:39:46
合計ジャッジ時間 4,645 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
75,988 KB
testcase_01 AC 77 ms
71,616 KB
testcase_02 AC 77 ms
71,280 KB
testcase_03 AC 77 ms
71,348 KB
testcase_04 AC 78 ms
71,284 KB
testcase_05 AC 78 ms
71,192 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
p=list(map(int,input().split()))
ans=0
for l in range(n-1):
  for r in range(l+1,n):
    x=p[l:r+1]
    x.sort()
    if x[-1]<=x[0]+x[1]:
      ans+=1
print(ans)
0