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
- c++
- 게임개발공모전
- 재귀
- 운영체제
- c#
- 이분탐색
- 웅진씽크빅
- fsm
- BFS
- 구현
- 언리얼
- 이득우
- DFS
- unity
- 시리얼라이제이션
- 백준
- unreal
- lower_bound
- 유니티
- 너비우선탐색
- 유한상태기계
- 알고리즘
- upper_bound
- 개발일지
- UI 자동화
- 프로그래머스
- 안드로이드
- 게임개발
- binary_search
- 인프런
Archives
- Today
- Total
목록C++ #백준 #백준1157 (1)
초고교급 희망

#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