69.400002
#include <stdio.h> double sum(double t, double km) { double money; if(km <= 3) { money = 13; } else { if(t >= 23 || t < 5) { money = 13 + ceil(km - 3) * (2.3 * 1.2); } else { money = 13 + ceil(km - 3) * 2.3; } } return money + 1; } int main() { printf("%f", sum(9, 12) + sum(18, 12)); return 0; }