Skip to content

Instantly share code, notes, and snippets.

import json
from collections import Counter
from pyarabic import araby
from pyarabic.araby import strip_diacritics
quran = json.load(open('quran.json'))
def normalize_arabic(text):
//God & me // ya mahdi adrekni
//@Shayan_Cheshmjahan: Oh my friend, congratulations!
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int maxn=1e5+12;
int n,col[maxn],sz[maxn],maxx,cnt[maxn];
long long ans[maxn],can;
bool badboy[maxn];
vector<int>g[maxn];
// God & me
// Together :)
#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 17, undef = maxn - 1;
int n, m, c;
vector<int> vec[maxn];
struct node{
int l, r, ans;
node(){ l = r = ans = undef; }
@ar-pa
ar-pa / BigInt.cpp
Last active October 24, 2023 09:30
bignum class for C++
// In the name of Allah.
// We're nothing and you're everything.
// Ya Ali!
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e2 + 14, lg = 15;