Skip to content

Instantly share code, notes, and snippets.

@devgenjin77
Last active March 6, 2021 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devgenjin77/7b0c5b54ad3d51d018e3f7a4a8d765ec to your computer and use it in GitHub Desktop.
Save devgenjin77/7b0c5b54ad3d51d018e3f7a4a8d765ec to your computer and use it in GitHub Desktop.
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