ログイン
新規登録
Summer Camp Problems Selection
Permanent Contest
Home
Tasks
Clar
Submissions
Standings
提出 60fb1e00-632c-47c8-9969-396642aec872
コード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; assert(n == 1024); for (int i = 0; i < n; i++) { int t; cin >> t; assert(0 <= t && t <= 1000); } int q; cin >> q; assert(1 <= q <= 1000); while (q--) { int t, a, b; cin >> t >> a >> b; if (t == 1) { assert(1 <= a && a <= n); assert(0 <= b && b <= 1000); } else { assert(1 <= a && a < b && b <= n + 1); } } }
結果
問題
点数
言語
結果
実行時間
メモリ
SegTree - segment tree
0
C++
RE
96 ms
3776 KiB