1. An information processing apparatus comprising: an input accepting unit that accepts an input onto a display screen displayed on a display device; a determining unit that determines an input method of a first input using a first time and/or a first trajectory information from a start point to an end point of the first input accepted by the input accepting unit; a storage control unit that stores the first trajectory information of the first input of which the input method is determined by the determining unit in a trajectory-information storage unit for storing therein trajectory information of an input of which the input method is determined; and a restoring unit that restores trajectory information of the input accepted by the input accepting unit using the first trajectory information stored in the trajectory-information storage unit and a second trajectory information of a second input when a result of determination by the determining unit with respect to the second input accepted within a predetermined time since the first input is input is different from the input method of the first input.