A comparison of star formation history between NGC 300 and M33