結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2020-01-23 20:32:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 588 ms |
コンパイル使用メモリ | 63,924 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-20 04:52:49 |
合計ジャッジ時間 | 3,011 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 25 |
ソースコード
#include <iostream> using namespace std; int main() { int n, max = 0, ans = 0; cin >> n; for (int i = 0; i < n; i++) { int a; cin >> a; if (max < a) max = a; else ans++; } cout << ans << endl; return 0; }