
백준 1157번 단어 공부 https://www.acmicpc.net/problem/1157 1157번: 단어 공부알파벳 대소문자로 된 단어가 주어지면, 이 단어에서 가장 많이 사용된 알파벳이 무엇인지 알아내는 프로그램을 작성하시오. 단, 대문자와 소문자를 구분하지 않는다.www.acmicpc.net 정답 코드 #include #include using namespace std; string str; int dat[125]; void find(char al); int find2(); int max1 = 0; int main() { cin >> str; char a = 'a'; char b = 'A'; int dx = 0; for (int x = 0; x < 26; x++) { find(a); a += 1..

백준 1152번 단어의 개수 https://www.acmicpc.net/problem/1152 1152번: 단어의 개수첫 줄에 영어 대소문자와 공백으로 이루어진 문자열이 주어진다. 이 문자열의 길이는 1,000,000을 넘지 않는다. 단어는 공백 한 개로 구분되며, 공백이 연속해서 나오는 경우는 없다. 또한 문자열www.acmicpc.net 정답 코드 #include #include #include char arr[1000001]; int find1(); int main(){ gets(arr); int pass = find1(); if (arr[0] == ' ') printf("%d",pass); else printf("%d",pass+1); } int find1() { int len = strlen(a..

백준 1124번 언더프라임 https://www.acmicpc.net/problem/1124 1124번: 언더프라임자연수 X를 소인수분해하면, 곱해서 X가 되는 소수의 목록을 얻을 수 있다. 예를 들어, 12 = 2 × 2 × 3이다. 1은 소수가 아니다. 어떤 수 X를 소인수분해 해서 구한 소수의 목록의 길이가 소수이면, www.acmicpc.net 정답 코드 #include #include using namespace std; int arr[100001] = { 1,1 }; void prime() { for (int x = 2; x > b; prime(); int sum = 0; for (int x = a; x
- Total
- Today
- Yesterday
- CSS
- js
- 유클리드 호제법
- HTML5
- 에라토스테네스의 체
- DP
- 카운팅 정렬
- C++ Stack
- 세그먼트 트리
- 알고리즘
- 백준
- C++
- c++ string
- 알고리즘 공부
- 자바
- 백준 풀이
- java
- DFS
- 스프링 부트 crud 게시판 구현
- 반복문
- 투 포인터
- 우선순위 큐
- html
- 유니온 파인드
- 스택
- 자료구조
- BFS
- 이분 매칭
- Do it!
- 자바스크립트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |