Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
Tags
- lower_bound
- 백준
- 프로그래머스
- 유한상태기계
- fsm
- 이득우
- unity
- 구현
- 게임개발공모전
- 운영체제
- BFS
- 개발일지
- 언리얼
- DFS
- unreal
- 안드로이드
- binary_search
- 너비우선탐색
- 재귀
- 인프런
- UI 자동화
- upper_bound
- 알고리즘
- 이분탐색
- 웅진씽크빅
- c++
- c#
- 유니티
- 게임개발
- 시리얼라이제이션
Archives
- Today
- Total
목록C++ #백준 #백준1157 (1)
초고교급 희망
[백준][C++] 1157번 단어 공부
#include #include #include using namespace std; int main() { int max = 0, index = 0, arr[26] = {}; int count = 0; string S; const string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; cin >> S; //대소문자 변환 for (int i = 0; i < S.length(); i++) { S[i] = toupper(S[i]); arr[a.find(S[i])]++; } for (int i = 0; i < 26; i++) { if (max < arr[i]) { max = arr[i]; count = 0; index = i; } if (max == arr[i]) count++; } if (..
Algorithm/Baekjoon
2021. 7. 8. 12:34