ciel(tyama)'s programming contest solutions (Most of codeiq solutions are isolated to another repo) - cielavenir/procon ...
//T.C : O(n*m*m), we have n*m*2 states and we run for loop inside the recursion ...