v0.0, not sure right or not
it works fine, except out of time.
now it becomes fast, just because io operator.(gets > scanf)
it works fine and i'm going to submit it to test.
use gets to improve speed.