提出 #70626828
ソースコード 拡げる
// 連続する区間の個数は償却されていい感じになるので、区間になる箇所を素早く処理するとよさそう?
// 実装はよくなさそう
// #pragma GCC target("avx2")
// #pragma GCC optimize("O3")
// #pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/lazysegtree>
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
const ll dy[] = {-1, 0, 0, 1};
const ll dx[] = {0, -1, 1, 0};
template <class T, class T1, class T2> bool isrange(T target, T1 low, T2 high) { return low <= target && target < high; }
template <class T, class U> T min(const T &t, const U &u) { return t < u ? t : u; }
template <class T, class U> T max(const T &t, const U &u) { return t < u ? u : t; }
template <class T, class U> bool chmin(T &t, const U &u) { if (t > u) { t = u; return true; } return false; }
template <class T, class U> bool chmax(T &t, const U &u) { if (t < u) { t = u; return true; } return false; }
// #include "titan_cpplib/others/print.cpp"
struct T {
int mx, cnt;
};
T opT(T s, T t) {
if (s.mx > t.mx) return s;
if (s.mx < t.mx) return t;
return {s.mx, s.cnt+t.cnt};
}
T opE() { return {-1, 0}; }
bool op(bool s, bool t) { return s | t; }
void solve() {
int n, q; cin >> n >> q;
atcoder::lazy_segtree<
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(15);
cerr << fixed << setprecision(15);
int t = 1;
for (int i = 0; i < t; ++i) {
solve();
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | G - Range Set Modifying Query |
| ユーザ | titan23 |
| 言語 | Python (PyPy 3.11-v7.3.20) |
| 得点 | 0 |
| コード長 | 1624 Byte |
| 結果 | CE |
コンパイルエラー
File "Main.py", line 1
// 連続する区間の個数は償却されていい感じになるので、区間になる箇所を素早く処理するとよさそう?
^
SyntaxError: invalid character '、' (U+3001)