백준 2577번 문제 사이트 : https://www.acmicpc.net/problem/2577 #include #include #include #include using namespace std; #define Max 10 int Array[Max]; int main(void) { int a, b, c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); int num = a * b * c; int num1 = num; for (int i = 0; i < log10(num); i++) { Array[num1 % 10]++; num1 = num1 / 10; } for (int i = 0; i < Max; i++) { printf("%d\n", Array[i]); ..
백준 2448번 문제 사이트 : https://www.acmicpc.net/problem/2448 #include #include #include #include #define Max 10001 char map[Max][Max]; void star(int num, int x, int y) { if (num == 3) { map[y][x] = '*'; map[y + 1][x - 1] = '*'; map[y + 1][x + 1] = '*'; map[y + 2][x - 2] = '*'; map[y + 2][x - 1] = '*'; map[y + 2][x] = '*'; map[y + 2][x + 1] = '*'; map[y + 2][x + 2] = '*'; } else { star(num / 2, x, y); ..
백준 1316번 문제 사이트 : https://www.acmicpc.net/problem/1316 #include #include #include #include using namespace std; #define Max 26 int main(void) { int Testcase; int number = 0; scanf("%d", &Testcase); for (int t = 0; t < Testcase; t++) { bool check = true; bool Array[Max] = { false, }; char ch[101]; char last_ch = '\0'; scanf("%s", ch); for (int i = 0; ch[i] != '\0'; i++) { if (i == 0) { //제일 처음 문자..
백준 1157번 문제 사이트 : https://www.acmicpc.net/problem/1157 #include #include #include #include using namespace std; #define Max 26 int Array[Max]; int main(void) { char ch[1000000]; scanf("%s", ch); for (int i = 0; ch[i] != '\0'; i++) { if (ch[i] >= 'a' && ch[i] Max_num) { Max_num = Array[i]; Max_ch = i; check = true; } else if(Array[i] == Max_num){ check = false; } } if (check) { printf("%c", Max_c..
백준 1152번 문제 사이트 : https://www.acmicpc.net/problem/1152 #include #include #include #include using namespace std; #define Max 1000002 int Array[Max]; int main(void) { int index = 0; while (1) { char ch; if (scanf("%c", &ch) == -1) { break; } if (ch == '\n' || ch == '\0' ||ch == EOF) break; if (index == 0 && ch == ' ') { continue; } Array[index] = ch; index++; } if (Array[index - 1] == '\n') { Arra..
백준 1110번 문제 사이트 : https://www.acmicpc.net/problem/1110 #include #include #include #include using namespace std; int main(void) { int num; int index = 0; scanf("%d", &num); //26 int num1 = num / 10; //2 int num2 = num % 10; //6 int num3 = (num1 + num2) % 10; //8 int num4 = num2 * 10 + num3; //68 index++; while (num != num4) { num1 = num4 / 10; //6 8 4 num2 = num4 % 10; //8 4 2 num3 = (num1 + num2..
백준 1065번 문제 사이트 : https://www.acmicpc.net/problem/1065 #include #include #include #include using namespace std; #define Max 10001 bool check[Max] = { false, }; int main(void) { //1 자리, 2자리 수는 무조건 등차 for (int i = 1; i < 100; i++) { check[i] = true; } for (int i = 100; i < Max; i++) { int index = log10(i) + 1; //자릿수 int Arr[5]; int Arr_1[5]; int num = i; for (int l = 0; l < index; l++) { //자릿수 분할 ..
백준 4344번 문제 사이트 : https://www.acmicpc.net/problem/4344 #include #include #include #include using namespace std; int main(void) { int Testcase; scanf("%d", &Testcase); for (int T = 0; T < Testcase; T++) { int Student[1000] = { 0, }; int StudentNumber; scanf("%d", &StudentNumber); for (int S = 0; S < StudentNumber; S++) { //학생입력 scanf("%d", &Student[S]); } double Avg = 0; for (int S = 0; S < Stude..
- Total
- Today
- Yesterday
- 싱글톤
- DP
- Human Interface Guideline
- 디자인패턴
- HumanInterfaceGuidelines
- apple
- 알고리즘
- Human Interface Guidelines
- Swift
- ios
- HIG
- 온라인저지
- 부스트코스
- Firebase
- storage
- MVC
- 분할정복
- 오토레이아웃
- 백준
- UIView
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |