Skip to content

Commit

Permalink
[Gold I] Title: 책 페이지, Time: 0 ms, Memory: 2208 KB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
belowyoon committed Apr 1, 2024
1 parent a01c8d8 commit 0f77ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 백준/Gold/1019. 책 페이지/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### 제출 일자

2024년 4월 1일 16:21:49
2024년 4월 1일 16:30:33

### 문제 설명

Expand Down
6 changes: 2 additions & 4 deletions 백준/Gold/1019. 책 페이지/책 페이지.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ vector<int> dp;
void fillLast(int x) {
int frt = 0, bck = 1;
for (int i = num.size() - 1; i >= 0; i--) {
int tmp = num[i];
if (x != i) {
if (i > x) {
frt = frt * 10 + tmp;
frt = frt * 10 + num[i];
}
else {
tmp = 10;
bck *= tmp;
bck *= 10;
}
}
}
Expand Down

0 comments on commit 0f77ef7

Please sign in to comment.