로딩
티스토리 데이터 처리 중입니다.

백준 1157 _ 단어 공부

 백준 1157 _ 단어 공부

https://www.acmicpc.net/problem/1157 1157번: 단어 공부 알파벳 대소문자로 된 단어가 주어지면, 이 단어에서 가장 많이 사용된 알파벳이 무엇인지 알아내는 프로그램을 작성하시오. 단, 대문자와 소문자를 구분하지 않는다. www.acmicpc.net 내 소스 코드 #include #include #include using namespace std; int main(void) { ios::sync_with_stdio(false); cin.tie(NULL); int result[26] = { 0, }; int max = 0, answer; bool check = true; string s; cin >> s; for (int i = 0; i < s.length(); i++) {.....