Skip to content

Commit 5d486b8

Browse files
[BOJ] 1543 문서 검색 (S5)
1 parent 304c5c7 commit 5d486b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

서정우/3주차/260116.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// https://www.acmicpc.net/problem/1543
2+
3+
const fs = require("fs");
4+
const filePath =
5+
process.platform === "linux" ? "/dev/stdin" : __dirname + "/input.txt";
6+
const input = fs.readFileSync(filePath).toString().trim().split("\n");
7+
8+
const [string, word] = input.map((item) => item.trim());
9+
console.log(string.split(word).length - 1);

0 commit comments

Comments
 (0)