From fa4d1064cd494ea2f796ec99451360e267ebf2ce Mon Sep 17 00:00:00 2001 From: Baoshuo Ren Date: Wed, 16 Oct 2024 11:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E8=B7=B5=E8=AF=BE=E5=86=85?= =?UTF-8?q?=E3=80=911.=E9=A1=BA=E5=BA=8F=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 【实践课内】1.顺序结构/7-4 21-爬楼梯.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/【实践课内】1.顺序结构/7-4 21-爬楼梯.c b/【实践课内】1.顺序结构/7-4 21-爬楼梯.c index 777bb23..7a49d1a 100644 --- a/【实践课内】1.顺序结构/7-4 21-爬楼梯.c +++ b/【实践课内】1.顺序结构/7-4 21-爬楼梯.c @@ -5,7 +5,7 @@ int a, t, b; int main() { scanf("%d%d%d", &a, &t, &b); - printf("%d", 1ll * t * (b - 1) / (a - 1)); + printf("%d", (long long)t * (b - 1) / (a - 1)); return 0; }