結果
問題 |
No.1435 Mmm......
|
ユーザー |
![]() |
提出日時 | 2021-03-19 23:15:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 526 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 47,272 KB |
最終ジャッジ日時 | 2024-11-19 01:23:17 |
合計ジャッジ時間 | 14,695 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 17 WA * 5 TLE * 2 |
ソースコード
# 1435 Mmm...... n=int(input()) integers=list(map(int,input().split())) result=0 for l in range(n-1): minNum0=integers[l] minNum1=2*1e5+1 maxNum=integers[l] r=l+1 while r<n: if integers[r]<minNum0: minNum1=minNum0 minNum0=integers[r] elif integers[r]<minNum1: minNum1=integers[r] if integers[r]>maxNum: maxNum=integers[r] if maxNum>minNum0+minNum1: break result+=1 r+=1 print(result)