結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
gedorinku
|
| 提出日時 | 2016-04-29 23:52:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 471 bytes |
| コンパイル時間 | 1,079 ms |
| コンパイル使用メモリ | 157,672 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 19:34:24 |
| 合計ジャッジ時間 | 2,272 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 25 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define int long long
#define PB push_back
#define PPB pop_back
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
static const int INF = 1LL << 61;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, ans = 0, tmax = 0;
cin >> n;
for (int i = 0; i < n; ++i) {
int t;
cin >> t;
if (t < tmax) ans++;
else tmax = t;
}
cout << ans << endl;
}
gedorinku