結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2016-05-02 10:48:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 1,089 ms |
コンパイル使用メモリ | 159,172 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-05 02:02:54 |
合計ジャッジ時間 | 2,627 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 28 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main(){ int N,ans=0; cin >> N; int data[N]; for(auto&& x: data)cin >> x; for(int i=0;i<N-1;++i){ if(data[i]>data[i+1]){ if(ans<data[i+1])ans=data[i+1]; } } cout << ans <<endl; return 0; }