Added test cases and judge simulator
change stdin and stdout
a remainder counter