diff --git "a/Programmers/\352\260\234\353\257\270_\352\265\260\353\213\250.cpp" "b/Programmers/\352\260\234\353\257\270_\352\265\260\353\213\250.cpp" new file mode 100644 index 0000000..f35a7de --- /dev/null +++ "b/Programmers/\352\260\234\353\257\270_\352\265\260\353\213\250.cpp" @@ -0,0 +1,16 @@ +#include +#include + +using namespace std; + +int solution(int hp) { + int result = 0; + + result += hp / 5; + hp = hp % 5; + result += hp / 3; + hp = hp % 3; + result += hp / 1; + + return result; +} \ No newline at end of file