Some code that i've wrote for algorithm competition