If the election be confirmed or the contest be dismissed, judgment shall be rendered against the contestant for all costs. No costs shall be rendered against the contestee unless found responsible for any of the provisions in (a) through (f) of K.S.A. 25-1436. The court, in the interests of justice may waive any costs assessed pursuant to this section in which case the costs shall be paid by the state from any appropriations therefor. Payment by the state shall be made by the director of accounts and reports upon voucher therefor approved by the clerk of the district court.
K.S.A. 25-1452