結果
| 問題 | No.3198 Monotonic Query |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-11 22:29:15 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 481 bytes |
| 記録 | |
| コンパイル時間 | 1,877 ms |
| コンパイル使用メモリ | 336,528 KB |
| 実行使用メモリ | 17,140 KB |
| 最終ジャッジ日時 | 2026-07-13 03:56:09 |
| 合計ジャッジ時間 | 10,891 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 21 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int q;
cin >> q;
vector<int> a;
rep(qi, q) {
int type;
cin >> type;
if (type == 1) {
int x;
cin >> x;
a.push_back(x);
}
else {
int k;
cin >> k;
cout << *max_element(a.end()-k, a.end()) << '\n';
}
}
return 0;
}