SYMBOL INDEX (3127 symbols across 294 files) FILE: 1.Template.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function nCr (line 46) | def nCr(n, r): function GCD (line 53) | def GCD(x, y): function LCM (line 61) | def LCM (x, y): function Divisors (line 64) | def Divisors(n) : function isprime (line 74) | def isprime(n): function SieveOfEratosthenes (line 80) | def SieveOfEratosthenes(n): function dfs (line 95) | def dfs(n,d,v,c): function knapSack (line 109) | def knapSack(W, wt, val, n): FILE: Atcoder/abc175/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc175/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc175/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc176/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc176/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc176/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Atcoder/abc177/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 122) | def inin(): function stin (line 124) | def stin(): function spin (line 126) | def spin(): function lin (line 128) | def lin(): #takes array as input function matrix (line 130) | def matrix(n): function string2intlist (line 135) | def string2intlist(s): function calculate_sum (line 138) | def calculate_sum(a, N): #sum of a to N function series (line 146) | def series(N): function count2Dmatrix (line 149) | def count2Dmatrix(i,list): function modinv (line 152) | def modinv(n,p): function GCD (line 155) | def GCD(x, y): function LCM (line 163) | def LCM (x, y): function Divisors (line 166) | def Divisors(n) : function isprime (line 176) | def isprime(n): function SieveOfEratosthenes (line 182) | def SieveOfEratosthenes(n): function dfs (line 197) | def dfs(n,d,v,c): FILE: Atcoder/abc177/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 145) | def inin(): function stin (line 147) | def stin(): function spin (line 149) | def spin(): function lin (line 151) | def lin(): #takes array as input function matrix (line 153) | def matrix(n): function string2intlist (line 158) | def string2intlist(s): function calculate_sum (line 161) | def calculate_sum(a, N): #sum of a to N function series (line 169) | def series(N): function count2Dmatrix (line 172) | def count2Dmatrix(i,list): function modinv (line 175) | def modinv(n,p): function GCD (line 178) | def GCD(x, y): function LCM (line 186) | def LCM (x, y): function Divisors (line 189) | def Divisors(n) : function isprime (line 199) | def isprime(n): function SieveOfEratosthenes (line 205) | def SieveOfEratosthenes(n): function dfs (line 220) | def dfs(n,d,v,c): FILE: Atcoder/abc184/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 126) | def dfs(n, d, v, c): function knapSack (line 141) | def knapSack(W, wt, val, n): FILE: Atcoder/abc184/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): FILE: Atcoder/abc184/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): FILE: Atcoder/arc104/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 119) | def inin(): function stin (line 121) | def stin(): function spin (line 123) | def spin(): function lin (line 125) | def lin(): #takes array as input function matrix (line 127) | def matrix(n): function string2intlist (line 132) | def string2intlist(s): function calculate_sum (line 135) | def calculate_sum(a, N): #sum of a to N function series (line 143) | def series(N): function count2Dmatrix (line 146) | def count2Dmatrix(i,list): function modinv (line 149) | def modinv(n,p): function GCD (line 152) | def GCD(x, y): function LCM (line 160) | def LCM (x, y): function Divisors (line 163) | def Divisors(n) : function isprime (line 173) | def isprime(n): function SieveOfEratosthenes (line 179) | def SieveOfEratosthenes(n): function dfs (line 194) | def dfs(n,d,v,c): FILE: Atcoder/arc104/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function GCD (line 46) | def GCD(x, y): function LCM (line 54) | def LCM (x, y): function Divisors (line 57) | def Divisors(n) : function isprime (line 67) | def isprime(n): function SieveOfEratosthenes (line 73) | def SieveOfEratosthenes(n): function dfs (line 88) | def dfs(n,d,v,c): FILE: Atcoder/arc110/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function GCD (line 46) | def GCD(x, y): function LCM (line 54) | def LCM (x, y): function Divisors (line 57) | def Divisors(n) : function isprime (line 67) | def isprime(n): function SieveOfEratosthenes (line 73) | def SieveOfEratosthenes(n): function dfs (line 88) | def dfs(n,d,v,c): FILE: CODECHEF/Ciel and A-B Problem.c function main (line 4) | int main() FILE: CODECHEF/Cleaning Up.c function main (line 4) | int main() FILE: CODECHEF/Lapindromes.c function main (line 6) | int main() FILE: CODECHEF/Racing Horses.c function main (line 4) | int main() FILE: CODECHEF/Sums is a Triangle.c function main (line 5) | int main() FILE: CODEFORCES/C/112A-Petya & Strings.cpp function main (line 2) | int main() FILE: CODEFORCES/C/118A. String Task.c function main (line 6) | int main() FILE: CODEFORCES/C/118A. String Task.cpp function main (line 2) | main() FILE: CODEFORCES/C/12A.Super Agent.c function main (line 6) | int main() FILE: CODEFORCES/C/13A.numbers.c function main (line 2) | int main() FILE: CODEFORCES/C/158A - Next Round.cpp function main (line 2) | int main() FILE: CODEFORCES/C/1A-Theatre Square.c function main (line 2) | int main() FILE: CODEFORCES/C/20-21 ICPC, NERC (Mirror)/C.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function count2Dmatrix (line 39) | def count2Dmatrix(i, list): function modinv (line 43) | def modinv(n, p): function nCr (line 47) | def nCr(n, r): function GCD (line 55) | def GCD(x, y): function Divisors (line 65) | def Divisors(n): function SieveOfEratosthenes (line 80) | def SieveOfEratosthenes(n): function dfs (line 99) | def dfs(n, d, v, c): FILE: CODEFORCES/C/20-21 ICPC, NERC (Mirror)/E.cpp function solve (line 46) | void solve() function main (line 55) | int main() FILE: CODEFORCES/C/20-21 ICPC, NERC (Mirror)/N.cpp function solve (line 47) | void solve() function main (line 112) | int main() FILE: CODEFORCES/C/231A-Team.cpp function main (line 2) | int main() FILE: CODEFORCES/C/282A-Bit++.cpp function main (line 2) | int main() FILE: CODEFORCES/C/2A.cpp function main (line 51) | int main() FILE: CODEFORCES/C/3A.cpp function main (line 52) | int main() FILE: CODEFORCES/C/428,div 2/A.Arya and Bran.c function main (line 2) | int main() FILE: CODEFORCES/C/429,div 2/A.c function main (line 6) | int main() FILE: CODEFORCES/C/433,div 2/A.Fraction.c function main (line 6) | int main() FILE: CODEFORCES/C/458,div 1+2/A.cpp function main (line 50) | int main() FILE: CODEFORCES/C/459 (Div. 2)/A. Eleven.cpp function main (line 4) | int main() FILE: CODEFORCES/C/463(1+2)/A.Palidromic Supersequence.cpp function main (line 3) | int main() FILE: CODEFORCES/C/463(1+2)/B. Recursive Queries.cpp function main (line 3) | int main() FILE: CODEFORCES/C/465,div 2/A. Fafa and his Company.cpp function main (line 4) | int main() FILE: CODEFORCES/C/465,div 2/B. Fafa and the Gates.cpp function main (line 4) | int main() FILE: CODEFORCES/C/478A-Initial Bet.cpp function main (line 4) | int main() FILE: CODEFORCES/C/4A-dividing watermelon.c function main (line 2) | int main() FILE: CODEFORCES/C/50A-Domino Piling.c function main (line 2) | int main() FILE: CODEFORCES/C/677A-Vanya and Fence.cpp function main (line 4) | int main() FILE: CODEFORCES/C/6A.triangle.cpp function main (line 50) | int main() FILE: CODEFORCES/C/705A-Hulk.cpp function main (line 4) | int main() FILE: CODEFORCES/C/71A. Way Too Long Words.cpp function main (line 2) | int main() FILE: CODEFORCES/C/7A. Kalevitch and Chess.cpp function main (line 50) | int main() FILE: CODEFORCES/C/8A. Train and Peter.cpp function main (line 50) | int main() FILE: CODEFORCES/C/96A-Football.cpp function main (line 2) | int main() FILE: CODEFORCES/C/A.cpp function main (line 3) | int main() FILE: CODEFORCES/C/Edu 38(div 2)/A. Word Correction.cpp function main (line 4) | int main() FILE: CODEFORCES/C/Edu 39(div 2)/A.cpp function main (line 4) | int main() FILE: CODEFORCES/C/Edu 39(div 2)/B.cpp function main (line 4) | int main() FILE: CODEFORCES/C/Practice - ECPC 2019/307919A_T2.cpp function solve (line 47) | void solve() { function main (line 72) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919B.cpp function heron (line 45) | double heron(double a, double b, double c) function solve (line 52) | double solve(double x, double y, double z) function solve2 (line 69) | void solve2() { function main (line 77) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919G.cpp function solve (line 49) | void solve() { function main (line 74) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919J_T2.cpp function solve (line 47) | void solve() { function main (line 132) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919K.cpp function solve (line 45) | void solve() { function main (line 110) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919M.cpp function solve (line 47) | void solve() { function main (line 66) | int main() { FILE: CODEFORCES/C/Practice - ECPC 2019/307919N.cpp function solve (line 45) | void solve() { function main (line 57) | int main() { FILE: CODEFORCES/C/Untitled1.c function main (line 51) | int main() FILE: CODEFORCES/C/char in 2D.c function main (line 6) | int main() FILE: CODEFORCES/Python/1.Template.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): # take inputs with space. e.g. n, m = spin() function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/122A.py function MI (line 10) | def MI(): return map(int, sys.stdin.readline().strip().split()) function LI (line 11) | def LI(): return list(map(int, sys.stdin.readline().strip().split())) function LLI (line 12) | def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readline... function LI_ (line 13) | def LI_(): return [int(x)-1 for x in sys.stdin.readline().strip().split()] function LF (line 14) | def LF(): return [float(x) for x in sys.stdin.readline().strip().split()] function LS (line 15) | def LS(): return sys.stdin.readline().strip().split() function I (line 16) | def I(): return int(sys.stdin.readline().strip()) function F (line 17) | def F(): return float(sys.stdin.readline().strip()) function S (line 18) | def S(): return sys.stdin.readline().strip() function pf (line 19) | def pf(s): return print(s, flush=True) function pe (line 20) | def pe(s): return print(str(s), file=sys.stderr) function JA (line 21) | def JA(a, sep): return sep.join(map(str, a)) function JAA (line 22) | def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a) function main (line 30) | def main(): FILE: CODEFORCES/Python/1343A. Candies.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/230A. Dragons.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/272A. Dima and Friends.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/459B. Pashmak and Flowers.py function ncr (line 4) | def ncr(n, r): FILE: CODEFORCES/Python/625B. War of the Corporations.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/641 (Div. 2)/A.py function f_n (line 6) | def f_n(n): FILE: CODEFORCES/Python/643 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/644 (Div. 3)/D.py function factor (line 5) | def factor(n, k): FILE: CODEFORCES/Python/645 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/646 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/646 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/646 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2D (line 26) | def count2D(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/647 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/647 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): function check (line 78) | def check(k): function solve (line 84) | def solve(): FILE: CODEFORCES/Python/647 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/648 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/648 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/648 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/649 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/649 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/650 (Div. 3)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/650 (Div. 3)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/650 (Div. 3)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/650 (Div. 3)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/651 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/651 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/651 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function isprime (line 41) | def isprime(n): function Divisors (line 47) | def Divisors(n) : function SieveOfEratosthenes (line 58) | def SieveOfEratosthenes(n): function dfs (line 73) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/651 (Div. 2)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/652 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/652 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/652 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/652 (Div. 2)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/653 (Div. 3)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/653 (Div. 3)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/653 (Div. 3)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/653 (Div. 3)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/653 (Div. 3)/E1.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/654 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/654 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function series (line 85) | def series(N): FILE: CODEFORCES/Python/654 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/655 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/655 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function LCM (line 40) | def LCM (x, y): function Divisors (line 43) | def Divisors(n): function SieveOfEratosthenes (line 54) | def SieveOfEratosthenes(n): function dfs (line 69) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/655 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/656 (Div. 3)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/656 (Div. 3)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/656 (Div. 3)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/656 (Div. 3)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/657 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/657 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function LCM (line 40) | def LCM (x, y): function Divisors (line 43) | def Divisors(n): function SieveOfEratosthenes (line 54) | def SieveOfEratosthenes(n): function dfs (line 69) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/657 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/657 (Div. 2)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/658 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function intersection (line 86) | def intersection(lst1, lst2): FILE: CODEFORCES/Python/658 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function LCM (line 40) | def LCM (x, y): function Divisors (line 43) | def Divisors(n): function SieveOfEratosthenes (line 54) | def SieveOfEratosthenes(n): function dfs (line 69) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/658 (Div. 2)/C1.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/659 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/660 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/660 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/661 (Div. 3)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/661 (Div. 3)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/661 (Div. 3)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/662 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/662 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/663 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/663 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/664 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function check (line 84) | def check(r,g,b,w): FILE: CODEFORCES/Python/664 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/664 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/665 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/665 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/665 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/666 (Div. 2)/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 145) | def inin(): function stin (line 147) | def stin(): function spin (line 149) | def spin(): function lin (line 151) | def lin(): #takes array as input function matrix (line 153) | def matrix(n): function string2intlist (line 158) | def string2intlist(s): function calculate_sum (line 161) | def calculate_sum(a, N): #sum of a to N function series (line 169) | def series(N): function count2Dmatrix (line 172) | def count2Dmatrix(i,list): function modinv (line 175) | def modinv(n,p): function GCD (line 178) | def GCD(x, y): function LCM (line 186) | def LCM (x, y): function Divisors (line 189) | def Divisors(n) : function isprime (line 199) | def isprime(n): function SieveOfEratosthenes (line 205) | def SieveOfEratosthenes(n): function dfs (line 220) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/666 (Div. 2)/C.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 152) | def inin(): function stin (line 154) | def stin(): function spin (line 156) | def spin(): function lin (line 158) | def lin(): #takes array as input function matrix (line 160) | def matrix(n): function string2intlist (line 165) | def string2intlist(s): function calculate_sum (line 168) | def calculate_sum(a, N): #sum of a to N function series (line 176) | def series(N): function count2Dmatrix (line 179) | def count2Dmatrix(i,list): function modinv (line 182) | def modinv(n,p): function GCD (line 185) | def GCD(x, y): function LCM (line 193) | def LCM (x, y): function Divisors (line 196) | def Divisors(n) : function isprime (line 206) | def isprime(n): function SieveOfEratosthenes (line 212) | def SieveOfEratosthenes(n): function dfs (line 227) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/667 (Div. 3)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 123) | def inin(): function stin (line 125) | def stin(): function spin (line 127) | def spin(): function lin (line 129) | def lin(): #takes array as input function matrix (line 131) | def matrix(n): function string2intlist (line 136) | def string2intlist(s): function calculate_sum (line 139) | def calculate_sum(a, N): #sum of a to N function series (line 147) | def series(N): function count2Dmatrix (line 150) | def count2Dmatrix(i,list): function modinv (line 153) | def modinv(n,p): function GCD (line 156) | def GCD(x, y): function LCM (line 164) | def LCM (x, y): function Divisors (line 167) | def Divisors(n) : function isprime (line 177) | def isprime(n): function SieveOfEratosthenes (line 183) | def SieveOfEratosthenes(n): function dfs (line 198) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/667 (Div. 3)/C.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 138) | def inin(): function stin (line 140) | def stin(): function spin (line 142) | def spin(): function lin (line 144) | def lin(): #takes array as input function matrix (line 146) | def matrix(n): function string2intlist (line 151) | def string2intlist(s): function calculate_sum (line 154) | def calculate_sum(a, N): #sum of a to N function series (line 162) | def series(N): function count2Dmatrix (line 165) | def count2Dmatrix(i,list): function modinv (line 168) | def modinv(n,p): function GCD (line 171) | def GCD(x, y): function LCM (line 179) | def LCM (x, y): function Divisors (line 182) | def Divisors(n) : function isprime (line 192) | def isprime(n): function SieveOfEratosthenes (line 198) | def SieveOfEratosthenes(n): function dfs (line 213) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/668 (Div. 2)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 121) | def inin(): function stin (line 123) | def stin(): function spin (line 125) | def spin(): function lin (line 127) | def lin(): #takes array as input function matrix (line 129) | def matrix(n): function string2intlist (line 134) | def string2intlist(s): function calculate_sum (line 137) | def calculate_sum(a, N): #sum of a to N function series (line 145) | def series(N): function count2Dmatrix (line 148) | def count2Dmatrix(i,list): function modinv (line 151) | def modinv(n,p): function GCD (line 154) | def GCD(x, y): function LCM (line 162) | def LCM (x, y): function Divisors (line 165) | def Divisors(n) : function isprime (line 175) | def isprime(n): function SieveOfEratosthenes (line 181) | def SieveOfEratosthenes(n): function dfs (line 196) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/668 (Div. 2)/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function inin (line 125) | def inin(): function stin (line 127) | def stin(): function spin (line 129) | def spin(): function lin (line 131) | def lin(): #takes array as input function matrix (line 133) | def matrix(n): function string2intlist (line 138) | def string2intlist(s): function calculate_sum (line 141) | def calculate_sum(a, N): #sum of a to N function series (line 149) | def series(N): function count2Dmatrix (line 152) | def count2Dmatrix(i,list): function modinv (line 155) | def modinv(n,p): function GCD (line 158) | def GCD(x, y): function LCM (line 166) | def LCM (x, y): function Divisors (line 169) | def Divisors(n) : function isprime (line 179) | def isprime(n): function SieveOfEratosthenes (line 185) | def SieveOfEratosthenes(n): function dfs (line 200) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/669 (Div. 2)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function count2Dmatrix (line 27) | def count2Dmatrix(i,list): function modinv (line 30) | def modinv(n,p): function GCD (line 33) | def GCD(x, y): function Divisors (line 41) | def Divisors(n) : function SieveOfEratosthenes (line 52) | def SieveOfEratosthenes(n): function dfs (line 67) | def dfs(n,d,v,c): function inin (line 155) | def inin(): function stin (line 157) | def stin(): function spin (line 159) | def spin(): function lin (line 161) | def lin(): #takes array as input function matrix (line 163) | def matrix(n): function count2Dmatrix (line 168) | def count2Dmatrix(i,list): function modinv (line 171) | def modinv(n,p): function GCD (line 174) | def GCD(x, y): function Divisors (line 182) | def Divisors(n) : function SieveOfEratosthenes (line 193) | def SieveOfEratosthenes(n): function dfs (line 208) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/669 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/670 (Div. 2)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function count2Dmatrix (line 27) | def count2Dmatrix(i,list): function modinv (line 30) | def modinv(n,p): function GCD (line 33) | def GCD(x, y): function Divisors (line 41) | def Divisors(n) : function SieveOfEratosthenes (line 52) | def SieveOfEratosthenes(n): function dfs (line 67) | def dfs(n,d,v,c): function inin (line 107) | def inin(): function stin (line 109) | def stin(): function spin (line 111) | def spin(): function lin (line 113) | def lin(): #takes array as input function matrix (line 115) | def matrix(n): function count2Dmatrix (line 120) | def count2Dmatrix(i,list): function modinv (line 123) | def modinv(n,p): function GCD (line 126) | def GCD(x, y): function Divisors (line 134) | def Divisors(n) : function SieveOfEratosthenes (line 145) | def SieveOfEratosthenes(n): function dfs (line 160) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/670 (Div. 2)/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function count2Dmatrix (line 27) | def count2Dmatrix(i,list): function modinv (line 30) | def modinv(n,p): function GCD (line 33) | def GCD(x, y): function Divisors (line 41) | def Divisors(n) : function SieveOfEratosthenes (line 52) | def SieveOfEratosthenes(n): function dfs (line 67) | def dfs(n,d,v,c): function inin (line 128) | def inin(): function stin (line 130) | def stin(): function spin (line 132) | def spin(): function lin (line 134) | def lin(): #takes array as input function matrix (line 136) | def matrix(n): function count2Dmatrix (line 141) | def count2Dmatrix(i,list): function modinv (line 144) | def modinv(n,p): function GCD (line 147) | def GCD(x, y): function Divisors (line 155) | def Divisors(n) : function SieveOfEratosthenes (line 166) | def SieveOfEratosthenes(n): function dfs (line 181) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/671 (Div. 2)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function count2Dmatrix (line 27) | def count2Dmatrix(i,list): function modinv (line 30) | def modinv(n,p): function GCD (line 33) | def GCD(x, y): function Divisors (line 41) | def Divisors(n) : function SieveOfEratosthenes (line 52) | def SieveOfEratosthenes(n): function dfs (line 67) | def dfs(n,d,v,c): function inin (line 110) | def inin(): function stin (line 112) | def stin(): function spin (line 114) | def spin(): function lin (line 116) | def lin(): #takes array as input function matrix (line 118) | def matrix(n): function count2Dmatrix (line 123) | def count2Dmatrix(i,list): function modinv (line 126) | def modinv(n,p): function GCD (line 129) | def GCD(x, y): function Divisors (line 137) | def Divisors(n) : function SieveOfEratosthenes (line 148) | def SieveOfEratosthenes(n): function dfs (line 163) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/671 (Div. 2)/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function count2Dmatrix (line 27) | def count2Dmatrix(i,list): function modinv (line 30) | def modinv(n,p): function GCD (line 33) | def GCD(x, y): function Divisors (line 41) | def Divisors(n) : function SieveOfEratosthenes (line 52) | def SieveOfEratosthenes(n): function dfs (line 67) | def dfs(n,d,v,c): function inin (line 110) | def inin(): function stin (line 112) | def stin(): function spin (line 114) | def spin(): function lin (line 116) | def lin(): #takes array as input function matrix (line 118) | def matrix(n): function count2Dmatrix (line 123) | def count2Dmatrix(i,list): function modinv (line 126) | def modinv(n,p): function GCD (line 129) | def GCD(x, y): function Divisors (line 137) | def Divisors(n) : function SieveOfEratosthenes (line 148) | def SieveOfEratosthenes(n): function dfs (line 163) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/672 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/672 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function nCr (line 32) | def nCr(n, r): function GCD (line 39) | def GCD(x, y): function Divisors (line 47) | def Divisors(n) : function SieveOfEratosthenes (line 58) | def SieveOfEratosthenes(n): function dfs (line 73) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/685 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/685 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/686 (Div. 3)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/686 (Div. 3)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/686 (Div. 3)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/688 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/690 (Div. 3)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/690 (Div. 3)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/691 (Div. 2)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/691 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/691 (Div. 2)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/692 (Div. 2, based on Technocup 2021 Elimination Round 3)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/692 (Div. 2, based on Technocup 2021 Elimination Round 3)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/692 (Div. 2, based on Technocup 2021 Elimination Round 3)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/693 (Div. 3)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/693 (Div. 3)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/693 (Div. 3)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/693 (Div. 3)/D.py function inin (line 3) | def inin(): function stin (line 7) | def stin(): function spin (line 11) | def spin(): function lin (line 15) | def lin(): # takes array as input function matrix (line 19) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): # sum of a to N function series (line 40) | def series(N): function count2Dmatrix (line 44) | def count2Dmatrix(i, list): function modinv (line 48) | def modinv(n, p): function nCr (line 52) | def nCr(n, r): function LCM (line 60) | def LCM(x, y): function Divisors (line 64) | def Divisors(n): function isprime (line 76) | def isprime(n): function SieveOfEratosthenes (line 90) | def SieveOfEratosthenes(n): function dfs (line 109) | def dfs(n, d, v, c): function knapSack (line 124) | def knapSack(W, wt, val, n): function modularExponentiation (line 140) | def modularExponentiation(x, n): function modInverse (line 150) | def modInverse(a, m): FILE: CODEFORCES/Python/694 (Div. 2)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/694 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/694 (Div. 2)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/695 (Div. 2)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/696 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/696 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/696 (Div. 2)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/697 (Div. 3)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 73) | def LCM(x, y): function Divisors (line 77) | def Divisors(n): function isprime (line 89) | def isprime(n): function SieveOfEratosthenes (line 103) | def SieveOfEratosthenes(n): function dfs (line 122) | def dfs(n, d, v, c): function knapSack (line 137) | def knapSack(W, wt, val, n): function modularExponentiation (line 153) | def modularExponentiation(x, n): function modInverse (line 163) | def modInverse(a, m): FILE: CODEFORCES/Python/697 (Div. 3)/B.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 73) | def LCM(x, y): function Divisors (line 77) | def Divisors(n): function isprime (line 89) | def isprime(n): function SieveOfEratosthenes (line 103) | def SieveOfEratosthenes(n): function dfs (line 122) | def dfs(n, d, v, c): function knapSack (line 137) | def knapSack(W, wt, val, n): function modularExponentiation (line 153) | def modularExponentiation(x, n): function modInverse (line 163) | def modInverse(a, m): FILE: CODEFORCES/Python/698 (Div. 2)/A.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 39) | def string2intlist(s): function calculate_sum (line 43) | def calculate_sum(a, N): # sum of a to N function series (line 53) | def series(N): function count2Dmatrix (line 57) | def count2Dmatrix(i, list): function modinv (line 61) | def modinv(n, p): function nCr (line 65) | def nCr(n, r): function LCM (line 73) | def LCM(x, y): function Divisors (line 77) | def Divisors(n): function isprime (line 89) | def isprime(n): function SieveOfEratosthenes (line 103) | def SieveOfEratosthenes(n): function dfs (line 122) | def dfs(n, d, v, c): function knapSack (line 137) | def knapSack(W, wt, val, n): function modularExponentiation (line 153) | def modularExponentiation(x, n): function modInverse (line 163) | def modInverse(a, m): FILE: CODEFORCES/Python/698 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/699 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/699 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/700 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/700 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/705 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: CODEFORCES/Python/705 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): function change (line 199) | def change(prev): FILE: CODEFORCES/Python/A. Bit++.py function solution (line 11) | def solution(): FILE: CODEFORCES/Python/DP/1369D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 100 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 100 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 102 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 102 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 103 (Div. 2)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 103 (Div. 2)/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function GCD (line 72) | def GCD(x, y): function LCM (line 82) | def LCM(x, y): function Divisors (line 86) | def Divisors(n): function isprime (line 98) | def isprime(n): function SieveOfEratosthenes (line 108) | def SieveOfEratosthenes(n): function dfs (line 127) | def dfs(n, d, v, c): function knapSack (line 142) | def knapSack(W, wt, val, n): function modularExponentiation (line 158) | def modularExponentiation(x, n): function modInverse (line 168) | def modInverse(a, m): FILE: CODEFORCES/Python/Edu 89 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 89 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 90 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 90 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 90 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function process (line 82) | def process(): FILE: CODEFORCES/Python/Edu 90 (Div. 2)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 91 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 91 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 91 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 92 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 92 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 92 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 93 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 93 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 93 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 94 (Div. 2)/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function GCD (line 46) | def GCD(x, y): function LCM (line 54) | def LCM (x, y): function Divisors (line 57) | def Divisors(n) : function isprime (line 67) | def isprime(n): function SieveOfEratosthenes (line 73) | def SieveOfEratosthenes(n): function dfs (line 88) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 94 (Div. 2)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function GCD (line 46) | def GCD(x, y): function LCM (line 54) | def LCM (x, y): function Divisors (line 57) | def Divisors(n) : function isprime (line 67) | def isprime(n): function SieveOfEratosthenes (line 73) | def SieveOfEratosthenes(n): function dfs (line 88) | def dfs(n,d,v,c): function knapSack (line 103) | def knapSack(W, wt, val, n): FILE: CODEFORCES/Python/Edu 94 (Div. 2)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function string2intlist (line 26) | def string2intlist(s): function calculate_sum (line 29) | def calculate_sum(a, N): #sum of a to N function series (line 37) | def series(N): function count2Dmatrix (line 40) | def count2Dmatrix(i,list): function modinv (line 43) | def modinv(n,p): function GCD (line 46) | def GCD(x, y): function LCM (line 54) | def LCM (x, y): function Divisors (line 57) | def Divisors(n) : function isprime (line 67) | def isprime(n): function SieveOfEratosthenes (line 73) | def SieveOfEratosthenes(n): function dfs (line 88) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Edu 95 (Div. 2)/A.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function knapSack (line 103) | def knapSack(W, wt, val, n): function inin (line 138) | def inin(): function stin (line 140) | def stin(): function spin (line 142) | def spin(): function lin (line 144) | def lin(): #takes array as input function matrix (line 146) | def matrix(n): function string2intlist (line 151) | def string2intlist(s): function calculate_sum (line 154) | def calculate_sum(a, N): #sum of a to N function series (line 162) | def series(N): function count2Dmatrix (line 165) | def count2Dmatrix(i,list): function modinv (line 168) | def modinv(n,p): function GCD (line 171) | def GCD(x, y): function LCM (line 179) | def LCM (x, y): function Divisors (line 182) | def Divisors(n) : function isprime (line 192) | def isprime(n): function SieveOfEratosthenes (line 198) | def SieveOfEratosthenes(n): function dfs (line 213) | def dfs(n,d,v,c): function knapSack (line 227) | def knapSack(W, wt, val, n): FILE: CODEFORCES/Python/Edu 95 (Div. 2)/B.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function matrix (line 22) | def matrix(n): function string2intlist (line 27) | def string2intlist(s): function calculate_sum (line 30) | def calculate_sum(a, N): #sum of a to N function series (line 38) | def series(N): function count2Dmatrix (line 41) | def count2Dmatrix(i,list): function modinv (line 44) | def modinv(n,p): function GCD (line 47) | def GCD(x, y): function LCM (line 55) | def LCM (x, y): function Divisors (line 58) | def Divisors(n) : function isprime (line 68) | def isprime(n): function SieveOfEratosthenes (line 74) | def SieveOfEratosthenes(n): function dfs (line 89) | def dfs(n,d,v,c): function knapSack (line 103) | def knapSack(W, wt, val, n): function inin (line 138) | def inin(): function stin (line 140) | def stin(): function spin (line 142) | def spin(): function lin (line 144) | def lin(): #takes array as input function matrix (line 146) | def matrix(n): function string2intlist (line 151) | def string2intlist(s): function calculate_sum (line 154) | def calculate_sum(a, N): #sum of a to N function series (line 162) | def series(N): function count2Dmatrix (line 165) | def count2Dmatrix(i,list): function modinv (line 168) | def modinv(n,p): function GCD (line 171) | def GCD(x, y): function LCM (line 179) | def LCM (x, y): function Divisors (line 182) | def Divisors(n) : function isprime (line 192) | def isprime(n): function SieveOfEratosthenes (line 198) | def SieveOfEratosthenes(n): function dfs (line 213) | def dfs(n,d,v,c): function knapSack (line 227) | def knapSack(W, wt, val, n): FILE: CODEFORCES/Python/Global Round 10/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 10/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 10/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 10/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 12/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/Global Round 12/B.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/Global Round 12/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: CODEFORCES/Python/Global Round 8/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 8/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 8/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 9/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 9/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/Global Round 9/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CODEFORCES/Python/ICPC Challenge 2020 Practice/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: CSAcademy/Frequent Numbers.c function main (line 5) | int main() FILE: CSAcademy/Round 47/Adjacent Vowels.c function main (line 6) | int main() FILE: CSAcademy/Round 47/Consecutive Sum.c function main (line 6) | int main() FILE: CSAcademy/Round 65/Encipherment.cpp function main (line 4) | int main() FILE: CSAcademy/Round 68(div 2)/A. String Concat.cpp function main (line 4) | int main() FILE: GeeksForGeeks/Count the triplets.py class Solution (line 2) | class Solution: method countTriplet (line 3) | def countTriplet(self, arr, n): FILE: GeeksForGeeks/Subarray with given sum.py class Solution (line 4) | class Solution: method subArraySum (line 5) | def subArraySum(self, arr, n, s): function main (line 32) | def main(): FILE: GeeksForGeeks/Triplets again.py function getijk (line 6) | def getijk(array): FILE: Hackerearth/Algorithm/Graph/Stay Healthy! Greedy.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function string2intlist (line 40) | def string2intlist(s): function calculate_sum (line 44) | def calculate_sum(a, N): # sum of a to N function series (line 54) | def series(N): function count2Dmatrix (line 58) | def count2Dmatrix(i, list): function modinv (line 62) | def modinv(n, p): function nCr (line 66) | def nCr(n, r): function LCM (line 74) | def LCM(x, y): function Divisors (line 78) | def Divisors(n): function isprime (line 90) | def isprime(n): function SieveOfEratosthenes (line 104) | def SieveOfEratosthenes(n): function dfs (line 123) | def dfs(n, d, v, c): function knapSack (line 140) | def knapSack(W, wt, val, n): function modularExponentiation (line 156) | def modularExponentiation(x, n): function modInverse (line 166) | def modInverse(a, m): FILE: Hackerearth/August Circuits '20/Anti-palindrome strings.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function calculate_sum (line 26) | def calculate_sum(a, N): #sum of a to N function series (line 34) | def series(N): function count2Dmatrix (line 37) | def count2Dmatrix(i,list): function modinv (line 40) | def modinv(n,p): function GCD (line 43) | def GCD(x, y): function LCM (line 51) | def LCM (x, y): function Divisors (line 54) | def Divisors(n) : function isprime (line 64) | def isprime(n): function SieveOfEratosthenes (line 70) | def SieveOfEratosthenes(n): function dfs (line 85) | def dfs(n,d,v,c): FILE: Hackerearth/Basic Number Theory-1/Love Triangle.py function love (line 3) | def love(i): FILE: Hackerearth/Basic Number Theory-1/Tutorial Code.py function binaryExponentiation (line 16) | def binaryExponentiation(b, n, m): function modInverse (line 24) | def modInverse(a, m) : FILE: Hackerearth/January Circuits '21/A chessboard.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: Hackerearth/January Circuits '21/Replace the strings.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: Hackerearth/January Circuits '21/Scoreboard queries.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: Hackerearth/January Circuits '21/The GCD Function.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function string2intlist (line 38) | def string2intlist(s): function calculate_sum (line 42) | def calculate_sum(a, N): # sum of a to N function series (line 52) | def series(N): function count2Dmatrix (line 56) | def count2Dmatrix(i, list): function modinv (line 60) | def modinv(n, p): function nCr (line 64) | def nCr(n, r): function LCM (line 72) | def LCM(x, y): function Divisors (line 76) | def Divisors(n): function isprime (line 88) | def isprime(n): function SieveOfEratosthenes (line 102) | def SieveOfEratosthenes(n): function dfs (line 121) | def dfs(n, d, v, c): function knapSack (line 136) | def knapSack(W, wt, val, n): function modularExponentiation (line 152) | def modularExponentiation(x, n): function modInverse (line 162) | def modInverse(a, m): FILE: LIGHTOJ/1000.c function main (line 4) | int main() FILE: LIGHTOJ/1001.c function main (line 4) | int main() FILE: LIGHTOJ/1006.c function fn (line 5) | int fn( long long int n ) { function main (line 16) | int main() { FILE: LIGHTOJ/1030.cpp function main (line 49) | int main() FILE: LIGHTOJ/1225.cpp function main (line 49) | int main() FILE: LIGHTOJ/1433. Minimum Arc Distance.cpp function main (line 4) | int main() FILE: LIGHTOJ/Python/1027.A Dangerous Maze.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function modinv (line 23) | def modinv(n,p): function GCD (line 26) | def GCD(x, y): function Divisors (line 34) | def Divisors(n) : function SieveOfEratosthenes (line 45) | def SieveOfEratosthenes(n): function dfs (line 60) | def dfs(n,d,v,c): function gcd (line 72) | def gcd(x ,y): FILE: LIGHTOJ/Python/1030.Discovering Gold.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function modinv (line 23) | def modinv(n,p): function GCD (line 26) | def GCD(x, y): function Divisors (line 34) | def Divisors(n) : function SieveOfEratosthenes (line 45) | def SieveOfEratosthenes(n): function dfs (line 60) | def dfs(n,d,v,c): function gcd (line 72) | def gcd(x ,y): FILE: LIGHTOJ/Python/1038. Race 1 Again.py function inin (line 14) | def inin(): function stin (line 16) | def stin(): function spin (line 18) | def spin(): function lin (line 20) | def lin(): #takes array as input function modinv (line 23) | def modinv(n,p): function GCD (line 26) | def GCD(x, y): function Divisors (line 34) | def Divisors(n) : function SieveOfEratosthenes (line 45) | def SieveOfEratosthenes(n): function dfs (line 60) | def dfs(n,d,v,c): function gcd (line 72) | def gcd(x ,y): FILE: LeetCode/1. Two Sum.py class Solution (line 1) | class Solution: method twoSum (line 2) | def twoSum(self, nums: List[int], target: int) -> List[int]: FILE: LeetCode/1108. Defanging an IP Address.py class Solution (line 1) | class Solution: method defangIPaddr (line 2) | def defangIPaddr(self, address: str) -> str: FILE: LeetCode/1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree.py class Solution (line 8) | class Solution: method getTargetCopy (line 10) | def getTargetCopy(self, original: TreeNode, cloned: TreeNode, target: ... FILE: LeetCode/1480. Running Sum of 1d Array.py class Solution (line 1) | class Solution: method runningSum (line 2) | def runningSum(self, nums: List[int]) -> List[int]: FILE: LeetCode/1689. Partitioning Into Minimum Number Of Deci-Binary Numbers.py class Solution (line 1) | class Solution: method minPartitions (line 2) | def minPartitions(self, n: str) -> int: FILE: LeetCode/1791. Find Center of Star Graph.py class Solution (line 1) | class Solution: method findCenter (line 2) | def findCenter(self, edges: List[List[int]]) -> int: FILE: LeetCode/1971. Find if Path Exists in Graph.py class Solution (line 4) | class Solution: method validPath (line 5) | def validPath(self, n: int, edges: List[List[int]], source: int, desti... FILE: LeetCode/2011. Final Value of Variable After Performing Operations.py class Solution (line 1) | class Solution: method finalValueAfterOperations (line 2) | def finalValueAfterOperations(self, operations: List[str]) -> int: FILE: LeetCode/2114. Maximum Number of Words Found in Sentences.py class Solution (line 1) | class Solution: method mostWordsFound (line 2) | def mostWordsFound(self, sentences: List[str]) -> int: FILE: LeetCode/2236. Root Equals Sum of Children.py class Solution (line 7) | class Solution: method checkTree (line 8) | def checkTree(self, root: Optional[TreeNode]) -> bool: FILE: LeetCode/3110. Score of a String.py class Solution (line 1) | class Solution: method scoreOfString (line 2) | def scoreOfString(self, s: str) -> int: FILE: LeetCode/535. Encode and Decode TinyURL.py class Codec (line 1) | class Codec: method __init__ (line 2) | def __init__(self): method encode (line 5) | def encode(self, longUrl: str) -> str: method decode (line 14) | def decode(self, shortUrl: str) -> str: FILE: LeetCode/617. Merge Two Binary Trees.py class Solution (line 7) | class Solution: method mergeTrees (line 8) | def mergeTrees(self, root1: Optional[TreeNode], root2: Optional[TreeNo... FILE: LeetCode/724. Find Pivot Index.py class Solution (line 1) | class Solution(object): method pivotIndex (line 2) | def pivotIndex(self, nums): FILE: LeetCode/771. Jewels and Stones.py class Solution (line 1) | class Solution: method numJewelsInStones (line 2) | def numJewelsInStones(self, jewels: str, stones: str) -> int: FILE: LeetCode/9. Palindrome Number.py class Solution (line 1) | class Solution: method isPalindrome (line 2) | def isPalindrome(self, x: int) -> bool: FILE: LeetCode/938. Range Sum of BST.py class Solution (line 7) | class Solution: method rangeSumBST (line 8) | def rangeSumBST(self, root: Optional[TreeNode], low: int, high: int) -... FILE: LeetCode/94. Binary Tree Inorder Traversal.py class TreeNode (line 2) | class TreeNode: method __init__ (line 4) | def __init__(self, val=0, left=None, right=None): class Solution (line 10) | class Solution: method inorderTraversal (line 12) | def inorderTraversal(self, root: Optional[TreeNode]) -> List[int]: FILE: LeetCode/997. Find the Town Judge.py class Solution (line 4) | class Solution: method findJudge (line 6) | def findJudge(self, n: int, trust: List[List[int]]) -> int: FILE: Toph/SELISE Coding Challenge 2020/A.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function dfs_cycle (line 86) | def dfs_cycle(u, p, color: list, function addEdge (line 112) | def addEdge(u, v): function printCycles (line 116) | def printCycles(edges, mark: list): FILE: Toph/SELISE Coding Challenge 2020/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/E.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/F.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/G.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: Toph/SELISE Coding Challenge 2020/H.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): function knapsack (line 81) | def knapsack(c, space, fun, n): FILE: Toph/SELISE Coding Challenge 2020/J.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function matrix (line 21) | def matrix(n): function count2Dmatrix (line 26) | def count2Dmatrix(i,list): function modinv (line 29) | def modinv(n,p): function GCD (line 32) | def GCD(x, y): function Divisors (line 40) | def Divisors(n) : function SieveOfEratosthenes (line 51) | def SieveOfEratosthenes(n): function dfs (line 66) | def dfs(n,d,v,c): FILE: UVA/10334 - Ray Through Glasses.cpp function main (line 4) | int main() { FILE: UVA/10407 - Simple division.py function solve (line 5) | def solve(row): FILE: Vjudge/RAPL Round 1(376797)/B.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): function bin2dec (line 74) | def bin2dec(n): FILE: Vjudge/RAPL Round 1(376797)/C.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: Vjudge/RAPL Round 1(376797)/D.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: Vjudge/RAPL Round 1(376797)/E.py function inin (line 13) | def inin(): function stin (line 15) | def stin(): function spin (line 17) | def spin(): function lin (line 19) | def lin(): #takes array as input function modinv (line 22) | def modinv(n,p): function GCD (line 25) | def GCD(x, y): function Divisors (line 33) | def Divisors(n) : function SieveOfEratosthenes (line 44) | def SieveOfEratosthenes(n): function dfs (line 59) | def dfs(n,d,v,c): FILE: Vjudge/RAPL TFC__(413583)/A.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): function modularExponentiation (line 122) | def modularExponentiation(x, n): function modInverse (line 131) | def modInverse(a, m): FILE: Vjudge/RAPL TFC__(413583)/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # takes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: Vjudge/TFC - 2/E.cpp function main (line 4) | int main() FILE: Vjudge/TFC3/C.py function inin (line 15) | def inin(): function stin (line 19) | def stin(): function spin (line 23) | def spin(): function lin (line 27) | def lin(): # tashiftes array as input function matrix (line 31) | def matrix(n): function count2Dmatrix (line 38) | def count2Dmatrix(i, list): function modinv (line 42) | def modinv(n, p): function nCr (line 46) | def nCr(n, r): function GCD (line 54) | def GCD(x, y): function Divisors (line 64) | def Divisors(n): function SieveOfEratosthenes (line 79) | def SieveOfEratosthenes(n): function dfs (line 98) | def dfs(n, d, v, c): FILE: Vjudge/TFC3/D.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function count2Dmatrix (line 39) | def count2Dmatrix(i, list): function modinv (line 43) | def modinv(n, p): function nCr (line 47) | def nCr(n, r): function GCD (line 55) | def GCD(x, y): function Divisors (line 65) | def Divisors(n): function SieveOfEratosthenes (line 80) | def SieveOfEratosthenes(n): function dfs (line 99) | def dfs(n, d, v, c): FILE: Vjudge/Team Practice Contest(419090)/B.py function inin (line 16) | def inin(): function stin (line 20) | def stin(): function spin (line 24) | def spin(): function lin (line 28) | def lin(): # takes array as input function matrix (line 32) | def matrix(n): function count2Dmatrix (line 39) | def count2Dmatrix(i, list): function modinv (line 43) | def modinv(n, p): function nCr (line 47) | def nCr(n, r): function GCD (line 55) | def GCD(x, y): function Divisors (line 65) | def Divisors(n): function SieveOfEratosthenes (line 80) | def SieveOfEratosthenes(n): function dfs (line 99) | def dfs(n, d, v, c):