結果
問題 |
No.2648 [Cherry 6th Tune D] 一次元の馬
|
ユーザー |
![]() |
提出日時 | 2024-04-04 22:06:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 1,685 ms |
コンパイル使用メモリ | 165,668 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-01 00:36:12 |
合計ジャッジ時間 | 3,485 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 35 |
ソースコード
#include<bits/stdc++.h> using namespace std; int A[200010],ans; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>A[i]; } for(int i=1;i<n;i++){ ans=max(ans,A[i]-A[i+1]+1); } cout<<ans; }