結果
| 問題 | No.3614 Breaking door keys(LITTLE BREAK ver.) |
| コンテスト | |
| ユーザー |
mocchi
|
| 提出日時 | 2026-08-06 15:41:07 |
| 言語 | C++23(gnu拡張gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 729 bytes |
| 記録 | |
| コンパイル時間 | 5,369 ms |
| コンパイル使用メモリ | 388,184 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-06 15:41:31 |
| 合計ジャッジ時間 | 13,292 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 1 RE * 2 |
| 小課題1 | 10 % | RE * 7 |
| 小課題2 | 20 % | RE * 7 |
| 小課題3 | 30 % | AC * 7 |
| 小課題4 | 30 % | AC * 7 RE * 7 |
| 小課題5 | 10 % | AC * 8 RE * 30 |
| 合計 | 2.5 * 30% = 75 点 |
ソースコード
#include <cassert>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
constexpr int inf = 2e9;
#include <atcoder/all>
using namespace atcoder;
/*
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/math/common_factor_rt.hpp>
namespace mp = boost::multiprecision;
*/
using ll = long long;
int op(int a, int b)
{
return min(a,b);
}
int e()
{
return inf;
}
int main()
{
int N, Q;
cin >> N >> Q;
segtree<int, op, e> seg(N);
rep(i,N)
{
int s;
cin >> s;
seg.set(i,s);
}
while (Q--)
{
int l,r,k;
cin >> l >> r >> k;
assert(k == 1);
l--;
cout << seg.prod(l,r) << endl;
}
}
mocchi