We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c00fa commit f9ef859Copy full SHA for f9ef859
2 files changed
프로그래머스/1/147355. 크기가 작은 부분문자열/README.md
@@ -1,10 +1,10 @@
1
# [level 1] 크기가 작은 부분문자열 - 147355
2
3
-[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/147355)
+[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/147355?language=java)
4
5
### 성능 요약
6
7
-메모리: 10.3 MB, 시간: 0.04 ms
+메모리: 85.5 MB, 시간: 4.55 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2024년 07월 04일 22:05:55
+2026년 06월 23일 13:47:26
20
21
### 문제 설명
22
프로그래머스/1/147355. 크기가 작은 부분문자열/크기가 작은 부분문자열.java
@@ -0,0 +1,12 @@
+class Solution {
+ public int solution(String t, String p) {
+ int answer = 0;
+ int n = p.length();
+ long ab = Long.parseLong(p);
+ for (int i = 0; i <= t.length() - n; i++) {
+ long num = Long.parseLong(t.substring(i, i+n));
+ if (num <= ab) answer++;
+ }
+ return answer;
11
12
+}
0 commit comments