import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); // 알파벳 26개 int[] arr = new int[26]; // for (int i = 0; i < s.length(); i++) { int a = s.charAt(i)-97; arr[a]++; } // 출력 for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } } } www.acmicpc.net/problem/10808
import java.util.Scanner; public class Main { public static void main(String[] args) { /** * #10871) X보다 작은 수 * 정수 N개로 이루어진 수열 A와 정수 X, * 이때 A에서 X보다 작은 수를 모두 출력하기 * * ex) 10 5 * 1 10 4 9 2 3 8 5 7 6 * * -> 1 4 2 3 // 적어도 하나 존재 */ Scanner scanner = new Scanner(System.in); // System.out.println("N : "); int N = scanner.nextInt(); // System.out.println("X : "); int X = scanner.nextInt(); int[] arr ..
- Total
- Today
- Yesterday
- 프로그래머스
- BOJ
- 이펙티브자바 아이템60
- java
- 킹수빈닷컴
- ㅇㄷㅇㅈ
- js array
- 이펙티브자바
- 이펙티브자바 아이템59
- 이펙티브자바 스터디
- JPA 연관관계 매핑
- 김영한 JPA
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- HTTP 완벽가이드
- js api
- 모던자바스크립트
- 김영한 http
- 백기선 스터디
- dreamcoding
- http
- Spring Security
- 프로그래머스 SQL
- GCP
- 백준
- REST API
- js promise
- HTTP 완벽 가이드
- 드림코딩
- JS 딥다이브
- 패스트캠퍼스 컴퓨터공학 완주반
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |