1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-23 15:48:42 +00:00
202401-programming-assignments/【实践课内】1.顺序结构/7-4 21-爬楼梯.c

12 lines
150 B
C

#include <stdio.h>
int a, t, b;
int main() {
scanf("%d%d%d", &a, &t, &b);
printf("%d", (long long)t * (b - 1) / (a - 1));
return 0;
}