A charged capacitor with capacitance C is being discharged through a variable resistor that has its resistance dependent on time: R = R(t). Find this function if the current through it remains constant until the capacitor is completely discharged and the resistance at the initial moment of the discharge process is equal to R0.