본문 바로가기

슈콩

검색하기
슈콩
프로필사진 shukong

  • 분류 전체보기 (534)
    • Algorithms (454)
      • Baekjoon (235)
      • Programmers (88)
      • SWEA (129)
      • 이론 (2)
    • Diary (13)
      • Running Log (13)
    • Database (15)
      • SQL (15)
      • Oracle (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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 31
Tags
  • dfs
  • priorityqueue
  • 시뮬레이션
  • 운동기록
  • BFS
  • 문제해결
  • oracle
  • math
  • 알고리즘
  • MySQL
  • DP
  • SQL
  • 코딩테스트
  • 이분탐색
  • SWEA
  • 투포인터
  • 자바
  • greedy
  • binary search
  • 백준
  • db
  • BOJ
  • 프로그래머스
  • COS PRO
  • 건강
  • 코테
  • 문제풀이
  • 러닝일지
  • Java
  • 문자열
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2025/12/29 (1)

슈콩

COS PRO 1급 JAVA 각 숫자가 몇개가 있나요

[소스 코드]class Main { public String solution(int number) { String answer = ""; int[] numberCount = new int[10]; while(number > 0) { numberCount[number % 10]++; number /= 10; } for(int i = 9; i > 0; i--) if(numberCount[i] != 0) answer += (String.valueOf(i) + String.valueOf(numberCount[i])); return a..

카테고리 없음 2025. 12. 29. 21:03
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바