백준 1475번 문제 사이트 : https://www.acmicpc.net/problem/1475 #include #include #include #include using namespace std; #define Max 11 int Array[Max]; int main(void) { int input; scanf("%d", &input); if (input) { int num = log10(input) + 1; for (int i = 0; i < num; i++) { int index = input % 10; if (index == 6 || index == 9) { Array[6]++; } else { Array[input % 10]++; } input = input / 10; } int max = 0..
백준 10250번 문제 사이트 : https://www.acmicpc.net/problem/10250 #include #include #include #include using namespace std; #define Max 100 int Array[Max * Max]; int main(void) { int Testcase; scanf("%d", &Testcase); for (int T = 0; T < Testcase; T++) { int H,W,N; int index = 1; scanf("%d %d %d", &H, &W, &N); for (int w = 1; w
백준 2775번 문제 사이트 : https://www.acmicpc.net/problem/2775 #include #include #include #include using namespace std; #define Max 15 int Map[Max][Max]; int main(void) { for (int x = 0; x < Max; x++) { Map[0][x] = x+1; } for (int y = 1; y < Max; y++) { Map[y][0] = 1; } for (int y = 1; y < Max; y++) { for (int x = 1; x < Max; x++) { Map[y][x] = Map[y][x-1] + Map[y-1][x]; } } int Testcase; scanf("%d", &T..
백준 1193번 문제 사이트 : https://www.acmicpc.net/problem/1193 #include #include #include #include using namespace std; int main(void) { int input; scanf("%d", &input); if (input == 1) { printf("1"); } else { int sum = 0; int Up, Down; int n = 1; for (;; n++) { sum = sum + n; if (sum
백준 10809번 문제 사이트 : https://www.acmicpc.net/problem/10809 #include #include #include #include using namespace std; #define Max 26 int Array[Max]; int main(void) { for (int i = 0; i < Max; i++) { Array[i] = -1; } char ch[101]; scanf("%s", ch); for (int i = 0;ch[i]!='\0'; i++) { if (Array[ch[i] - 'a'] == -1) { Array[ch[i] - 'a'] = i; } } for (int i = 0; i < Max; i++) { printf("%d ", Array[i]); } re..
백준 10039번 문제 사이트 : https://www.acmicpc.net/problem/10039 #include #include #include #include using namespace std; #define Max 5 int Array[Max]; int main(void) { for (int i = 0; i < Max; i++) { int num; scanf("%d", &num); if (num < 40) { Array[i] = 40; } else { Array[i] = num; } } int avg = 0; for (int i = 0; i < Max; i++) { avg += Array[i]; } avg = avg / 5; printf("%d", avg); return 0; }
- Total
- Today
- Yesterday
- Firebase
- 분할정복
- 알고리즘
- HIG
- Human Interface Guidelines
- 온라인저지
- MVC
- Swift
- storage
- UIView
- HumanInterfaceGuidelines
- 싱글톤
- 백준
- DP
- Human Interface Guideline
- 오토레이아웃
- apple
- 디자인패턴
- 부스트코스
- ios
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |