From febe8da44b59870545d917da65c2df6b8067cb6a Mon Sep 17 00:00:00 2001 From: shaza0q <90998258+shaza0q@users.noreply.github.com> Date: Tue, 5 Oct 2021 19:14:42 +0530 Subject: [PATCH] Update october challenge 2021 div3-three boxes solution.cpp --- .../october challenge 2021 div3-three boxes solution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/October challenge 2021 div 3 - THREE BOXES/october challenge 2021 div3-three boxes solution.cpp b/October challenge 2021 div 3 - THREE BOXES/october challenge 2021 div3-three boxes solution.cpp index fa337659..333f44f4 100644 --- a/October challenge 2021 div 3 - THREE BOXES/october challenge 2021 div3-three boxes solution.cpp +++ b/October challenge 2021 div 3 - THREE BOXES/october challenge 2021 div3-three boxes solution.cpp @@ -13,7 +13,7 @@ int main() cin>>a>>b>>c>>d; int sum=a+b+c; if(sum<=d)ans=1; - else if((a==d && b==d && c==d) || (a+b>d && a+c>d && c+b>d))ans=3; + else if(a+b>d)ans=3; else ans=2; cout<