목록전체 글 (250)
정화 코딩

https://www.acmicpc.net/problem/9328 #include #include #include using namespace std;int dx[] = {1, -1, 0, 0};int dy[] = {0, 0, 1, -1};int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int tc; cin >> tc; while (tc--) { int h, w; cin >> h >> w; vector m(h); vector> chk(h, vector(w, false)); vector open(26, false); queue>..

솔브닥 class 4+ 풀고 있었는데 거기에 피보나치 수 6 문제가 있길래 이참에 피보나치 수 문제를 쭉 풀어볼까 한다. 피보나치 수 (백준 2747번)https://www.acmicpc.net/problem/2747 #include #include using namespace std;int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; vector fib(n + 1); fib[0] = 0; fib[1] = 1; for (int i = 2; i 바텀업 dp로 풀었다. (AC) 피보나치 수 2 (백준 2748번)https://www.acmicpc.net/..

semester.controller.ts 파일 생성생성은 지난 포스트에서 했었다. https://jungh150c.tistory.com/184semester의 create DTO 생성semester 폴더 아래에 새로운 dto 폴더를 만들고 create-semester.dto.ts 파일을 만들어준다....apps\admin-backend> pnpm i class-validatorclass-validator 패키지를 설치해준다.// src/semester/dto/create-semester.dto.tsimport { Season } from '@prisma/client';import { IsInt, IsEnum, IsNotEmpty } from 'class-validator';export class Crea..
semester.controller.ts 파일과 semester.service.ts 파일 생성# controller 파일 생성 명령어...apps\admin-backend> nest g controller semester --no-spec// src/semester/semester.controller.tsimport { Controller } from '@nestjs/common';@Controller('semester')export class SemesterController {}위의 명령어로 파일을 생성했을 때 기본적으로 들어있는 내용이다.# service 파일 생성 명령어...apps\admin-backend> nest g service semester --no-spec// src/semester/..

https://www.acmicpc.net/problem/17404 #include #include using namespace std;int MAXV = 1000 * 1000 + 1;int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; vector> rgb(n + 1, vector(3)); for (int i = 1; i > rgb[i][j]; } } vector> dp(n + 1, vector(3)); int ans = MAXV; // 첫번째 집이 각각 r, g, b일 때로 나눠서 dp 채우기 for (int first = 0;..
Datahw2_MATRIX.TRAINDOC_WORD_MATRIX_TRAIN2144 1448abil absolut abus access accid accord account accur ...0 6 1 25 1 41 1 40 1 ...0 78 4 77 1 214 1 18 1 ...0 26 1 149 1 197 1 37 2 ...0 11 3 75 1 39 1 39 1 ......1 12 1 1 2 9 2 19 1 ...1 13 2 32 2 87 1 99 1 ...1 3 1 6 1 2 1 17 2 ...1 141 1 50 1 30 2 92 1 ......첫 번째 줄 : 메타정보두 번째 줄의 첫 번째 수 (2144) : 문서/이메일의 개수두 번째 줄의 첫 번째 수 (1448) : 단어/토큰의 개수세 번째 줄 : ..

https://www.acmicpc.net/problem/10942 #include #include using namespace std;int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, m; cin >> n; vector a(n); vector> dp(n, vector(n, 0)); for (int i = 0; i > a[i]; dp[i][i] = 1; if (i == 0) continue; if (a[i] == a[i - 1]) dp[i - 1][i] = 1; } for (int i = 0; i > m; while (m--)..
원래의 prisma 폴더 가져오기admin-backend/├── src/│ ├── prisma/│ │ ├── schema.prisma│ │ └── ...│ ├── semester/│ ├── .env│ ├── app.module.ts│ ├── main.ts├── test/├── .gitignore├── package.json└── ...나는 기존에 NestJS가 아닌 Express로 Prisma를 사용했었다. 그래서 기존의 prisma 폴더를 그대로 가져와 새롭게 만든 폴더 admin-backend 아래 src 폴더 아래에 넣어주었다. (.env도 일단 그대로 복사했다.)prisma 관련 필요한 패키지 설치...icpc-sinchon-workspace\apps\admin-b..