結果
| 問題 |
No.1435 Mmm......
|
| コンテスト | |
| ユーザー |
tyawanmusi
|
| 提出日時 | 2020-10-21 18:05:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 176 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 99,584 KB |
| 最終ジャッジ日時 | 2024-07-21 09:20:45 |
| 合計ジャッジ時間 | 4,239 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 2 TLE * 1 -- * 21 |
ソースコード
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)
tyawanmusi