This is a customizable segment tree class that supports lazy propagation, in an STD-similar way.
Version: 2.2
Last commit: Fix styling
- Fixing the lazy update
- Optimizations for lazy update
using System; | |
using System.Threading.Tasks; | |
using Telegram.Bot; | |
using Telegram.Bot.Args; | |
using Telegram.Bot.Types; | |
using Telegram.Bot.Types.Enums; | |
namespace ConsoleTgBot | |
{ | |
static class Program |
// Copyright 2022 | |
// Written by: mdubaisi, Muaath_5 | |
// A C++ console app to play chess with a friend offline | |
#include <bits/stdc++.h> | |
#define endl '\n' | |
#define E8 Pos('E', 8) | |
#define E1 Pos('E', 1) |
// Copyright 2022 - Muaath Alqarni | |
#define _CRT_NO_DEPRECATE | |
#include <iostream> | |
#include <vector> | |
#define endl '\n'; | |
#define fast std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); | |
using std::cin; | |
using std::cout; |