結果
問題 |
No.1349 Subset Product Queries
|
ユーザー |
![]() |
提出日時 | 2021-01-13 19:33:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 637 bytes |
コンパイル時間 | 919 ms |
コンパイル使用メモリ | 72,276 KB |
最終ジャッジ日時 | 2025-01-17 17:32:08 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 30 |
ソースコード
#include <iostream> #include <vector> #include <array> #include <algorithm> #include <cassert> constexpr int MAX_N = 5000; constexpr int MAX_Q = 200000; constexpr int MAX_V = 5000; int main() { int N, Q; std::cin >> N >> Q; assert(1 <= N && N <= MAX_N); assert(1 <= Q && Q <= MAX_Q); for (int i = 0; i < N; ++i) { int x; std::cin >> x; assert(1 <= x && x <= MAX_V); } for (int i = 0; i < Q; ++i) { int l, r, k; std::cin >> l >> r >> k; assert(1 <= l); assert(l <= r); assert(r <= N); assert(1 <= k && k <= MAX_V); } return 0; }