백준 8958번 문제 사이트 : https://www.acmicpc.net/problem/8958 #include #include #include #include using namespace std; #define Max 81 int Array[Max]; int main(void) { int Testcase; scanf("%d", &Testcase); for (int t = 0; t < Testcase; t++) { char ch[Max]; scanf("%s", ch); int score = 0; int number = 0; for (int i = 0;ch[i]!='\0'; i++) { if (ch[i] == 'O') { score += number; number++; } else { score += n..
백준 5622번 문제 사이트 : https://www.acmicpc.net/problem/5622 #include #include #include #include using namespace std; int Array[11] = { 0,2,3,4,5,6,7,8,9,10,11}; int main(void) { char ch[16]; int num = 0; scanf("%s", ch); for (int i = 0; ch[i] != '\0'; i++) { if (ch[i] == 'A' || ch[i] == 'B' || ch[i] == 'C') { num += Array[2]; } if (ch[i] == 'D' || ch[i] == 'E' || ch[i] == 'F') { num += Array[3]; } if..
백준 4673번 문제 사이트 : https://www.acmicpc.net/problem/4673 #include #include #include #include #include using namespace std; bool check[10002]; int main(void) { for (int i = 1; i < 10001; i++) { int ind = log10(i) + 1; int num = i; int sum = i; for (int l = 0; l < ind; l++) { sum += num % 10; num = num / 10; } check[sum] = true; } for (int i = 1; i < 10001; i++) { if (!check[i]) { printf("%d\n", i);..
백준 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..
백준 2941번 문제 사이트 : https://www.acmicpc.net/problem/2941 #include #include #include #include using namespace std; int main(void) { char ch[101]; int num = 0; scanf("%s", &ch); for (int i = 0; ch[i] != '\0';) { if (ch[i] == 'c') { if (ch[i + 1] == '=') { i += 2; num++; } else if (ch[i + 1] == '-') { i += 2; num++; } else { i++; num++; } } else if (ch[i] == 'd') { if (ch[i + 1] == '-') { i += 2; num..
백준 2920번 문제 사이트 : https://www.acmicpc.net/problem/2920 #include #include #include #include using namespace std; #define Max 8 int Array[Max]; int Array_1[Max]; int main(void) { for (int i = 0; i < Max; i++) { scanf("%d", &Array[i]); } for (int i = 0; i < Max - 1; i++) { Array_1[i] = Array[i] - Array[i + 1]; } bool check = true; for (int i = 0; i < Max - 2; i++) { if (Array_1[i] != Array_1[i + 1]..
백준 2908번 문제 사이트 : https://www.acmicpc.net/problem/2908 #include #include #include #include using namespace std; int main(void) { int num1, num2; scanf("%d %d", &num1, &num2); int num3 = 0, num4 = 0; int num = num1; for (int i = 0; i < log10(num1); i++) { num3 = num3*10 + num % 10; num = num / 10; } num = num2; for (int i = 0; i < log10(num2); i++) { num4 = num4 * 10 + num % 10; num = num / 10; }..
백준 2675번 문제 사이트 : https://www.acmicpc.net/problem/2675 #include #include #include #include using namespace std; int main(void) { int Testcase; scanf("%d", &Testcase); for (int t = 0; t < Testcase; t++) { int num; scanf("%d", &num); char ch[21]; scanf("%s", ch); for (int i = 0;ch[i]!='\0'; i++) { for (int l = 0; l < num; l++) { printf("%c", ch[i]); } } printf("\n"); } return 0; }
- Total
- Today
- Yesterday
- Human Interface Guidelines
- 디자인패턴
- ios
- 부스트코스
- storage
- apple
- HIG
- DP
- Human Interface Guideline
- 온라인저지
- UIView
- 백준
- Firebase
- 알고리즘
- HumanInterfaceGuidelines
- MVC
- 분할정복
- 싱글톤
- 오토레이아웃
- Swift
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |