Last active
March 6, 2021 16:11
-
-
Save devgenjin77/7b0c5b54ad3d51d018e3f7a4a8d765ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int solve(int a, int b){ | |
if(a + b >= 15 && b >= 8){ | |
return 1; | |
} else if(a + b >= 10 && b >= 3){ | |
return 2; | |
} else if(a + b >= 3){ | |
return 3; | |
} else { | |
return 4; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment