From 12b66e5322e03ebe617b15b0e1f3b2fb6838191b Mon Sep 17 00:00:00 2001 From: t0ji <108709544+t0ji-rabiulislamraihan@users.noreply.github.com> Date: Thu, 16 Nov 2023 18:01:44 +0600 Subject: [PATCH] Update 1638 - Bookworm.cpp --- Timus Online Judge/1638 - Bookworm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Timus Online Judge/1638 - Bookworm.cpp b/Timus Online Judge/1638 - Bookworm.cpp index ac40091..c2f85ff 100644 --- a/Timus Online Judge/1638 - Bookworm.cpp +++ b/Timus Online Judge/1638 - Bookworm.cpp @@ -6,7 +6,7 @@ int main(){ int w1,w2,n1,n2; scanf("%d %d %d %d",&w1,&w2,&n1,&n2); - if(n1<=n2) printf("%d\n",(n2-n1)*2*w2+(n2-n1-1)*w1); + if(n1