Skip to content

Commit

Permalink
이슈 #379에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 21, 2024
1 parent 040582f commit b6a0b96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Programmers/종이_자르기.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <string>
#include <vector>

using namespace std;

int solution(int M, int N) {
if (M == 1 && N == 1) {
return 1;
}

return M * N - 1;
}

0 comments on commit b6a0b96

Please sign in to comment.