Skip to content

Commit

Permalink
Update october challenge 2021 div3-three boxes solution.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
shaza0q authored Oct 5, 2021
1 parent cf19a89 commit febe8da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<<ans<<endl;
Expand Down

0 comments on commit febe8da

Please sign in to comment.