Codeforces Round #383 (Div. 1), problem: (E) Arpa’s abnormal DNA and Mehrdad’s deep interest Solution in C/C++

By | 2017-04-07T22:11:47+00:00 December 17th, 2016|Categories: C/C++, Programming|Tags: , , |

#include <stdio.h> #include <iostream> #include <algorithm> #include <memory.h> #include <string.h> #define rank _ran using namespace std; typedef long long LL; const int maxn = 200005; const int inf = 1<<29; const int tre = 120; char S[maxn],T[maxn]; char str[maxn];int len,bit[maxn]; int bac[maxn],sa[maxn],SA[maxn]; int rank[maxn],Rank[maxn],h[maxn]; [...]