Skip to content

Instantly share code, notes, and snippets.

Zahar Koval StarOrpheus

Block or report user

Report or block StarOrpheus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
public class WordStatLineIndex {
public static final char[] buf = new char[256];
View Vector.cpp
template<typename T>
class Vector {
T *array;
size_t cap;
size_t end; // last element pointer
Vector() : Vector(1) {}
explicit Vector(size_t initialCap) {
View matrix.cpp
template<typename T, size_t n, size_t m>
using matrix = array<array<T, m>, n>;
template<typename T, size_t n >
matrix<T, n, n> get_one_matrix()
matrix<T, n, n> res;
for (size_t i = 0; i < n; i++)
for (size_t j = 0; j < n; j++)
res[i][j] = 0;
View sqrt_mo.cpp
int bl_sz = 1;
class query
int l;
int r;
int id;
bool comp(const query& a, const query& b)
View input.txt
View input.txt
This file has been truncated, but you can view the full file.
View Hash.cpp
const int P = max(rand(), 239017) | 1;
const int N = 500020;
const int MOD1 = 1000000007;
const int MOD2 = 1000000009;
array<pair<int, int>, N> p;
bool initp()
View fract.cpp
ll gcd(ll x, ll y)
while(x > 0 && y > 0)
if (x > y)
x = x % y;
y = y % x;
View Peaks.cpp
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
//using namespace __gnu_pbds;
#define INF (1<<30)
import java.util.*;
import static java.lang.Integer.min;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
You can’t perform that action at this time.