Cod sursa(job #3156159)

Utilizator dorufDoru Floare doruf Data 10 octombrie 2023 18:34:06
Problema Potrivirea sirurilor Scor 0
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.53 kb
#include <bits/stdc++.h>
using namespace std;

const string taskname("aimi");

ifstream fin(taskname + ".in");
ofstream fout(taskname + ".out");

const int Inf = 1e9;

struct SegTree {
  int n;
  vector<int> sgt;
  vector<int> lazy;

  void init(int _n) {
    n = _n;
    sgt = vector<int> (4 * n + 5, Inf);
    lazy = vector<int> (4 * n + 5, -1);
  }

  void

  void update(int x, int l, int r, int ql, int qr, int val) {
    if (l > ql || r < ql)
      return;
    if (ql <= l && r <= qr) {

    }
  }
};