This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |