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

12 lines
150 B
C
Raw Normal View History

2024-10-16 03:19:34 +00:00
#include <stdio.h>
int a, t, b;
int main() {
scanf("%d%d%d", &a, &t, &b);
2024-10-16 03:29:14 +00:00
printf("%d", (long long)t * (b - 1) / (a - 1));
2024-10-16 03:19:34 +00:00
return 0;
}