S

@sim7391

최소 동전 개수

C
17 hours ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int DP[10000]; int min(int a, int b){ return (a > b) ? b : a; }

파스칼의 삼각형 DP버전

C
17 hours ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int n, m; int DP[100][100]; void pascal(int x, int y){ if (x >= n) return;

파스칼의 삼각형 반복문 버전

C
1 week ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int n, a, b, s; scanf("%d", &n); int pa[n][n];

DP Factorial

C
1 week ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int DP[100]; int fac(int n){ if(n<=1) return n;

DP 피보나치 수열

C
1 week ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int DP[100]; int fib(int n){ if(n<=1) return n;

콘솔 기능(Dev-C++에서 실행) Horse Arrow Game

C
3 weeks ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> #define LEFT_WALL 1 #define TOP_WALL 1 #define RIGHT_WALL 42 #define BOTTOM_WALL 22

SuperSum

C
4 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int SuperSum(int k, int n){ int sum = 0; if (k == 0) return n; for(int i=1; i<=n; i++)

콜라츠 추측 반대로(반복문X)

C
4 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> void c(int n){ if(n==1){ printf("%d ", 1); return; }

콜라츠 추측(반복문X)

C
4 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> void c(int n){ if(n==1) return; if(n%2 == 0){ printf("%d ", n/2); c(n/2);

별찍기(반복문X)

C
4 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int cnt=0; int a; int b=0; void star(int n){ a=n-1-b;

하노이

C
1 month ago
#include <stdio.h> #include <string.h> #include <stdlib.h> void hanoi(int n, int from, int temp, int to){ if(n==1){ printf("%d %d\n", from, to); return; }

콘솔 기능(Dev-C++에서 실행) 블록쌓기(난이도 설정 추가)

C++
1 month ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> #define LEFT_WALL 1 #define TOP_WALL 1 #define RIGHT_WALL 42 #define BOTTOM_WALL 22

콘솔 기능(Dev-C++에서 실행) 슬롯머신

C++
1 month ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> //1. 프로그램 시작 -> 2. 랜덤 초기화 -> 3. 현재 돈 출력 //-> 4. 배팅 -> 5. if(돈 부족 -> 에러 출력 -> 4번 돌아감) //-> 6. else(슬롯 머신 시작) -> 7. [잭팟 || 보상지금 || 꽝] //->

콘솔 기능(Dev-C++에서 실행) 블록쌓기

C++
2 months ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> #define box_length 15 #define box_height 15 #define BLOCK_COLS 15

콘솔 기능(Dev-C++에서 실행) 스톱워치

C++
2 months ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> void display_time(int hour, int min, long sec){ system("cls"); printf("디지털 stopwatch\n\n");

콘솔 기능(Dev-C++에서 실행) 바둑돌 놓기

C++
2 months ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> void gotoxy(int x, int y); void draw_board(int cols, int rows); void move_arrow_key(int key, int *x, int *y, int x_max, int y_max); void display_stone(

콘솔 기능(Dev-C++에서 실행) 커서만 구현

C++
2 months ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> void gotoxy(int x, int y){ COORD pos; pos.X = x - 1; pos.Y = y - 1;

콘솔 기능(Dev-C++에서 실행) 4까지만 구현

C++
3 months ago
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #include <time.h> #define WIDTH 30 #define HEIGHT 15 #if defined(_MSC_VER)

백준 28278번 문제

C
3 months ago
#include <stdio.h> #include <stdlib.h> #define MAX 1000000 int stack[MAX]; int main() { int n, a, x; scanf("%d", &n);

Stack

C
3 months ago
#include <stdio.h> #include <stdlib.h> typedef struct{ int* arr; int top; int capacity; }Stack; void initStack(Stack* s, int size){