Skip to content

Commit 5c9ef18

Browse files
[BOJ] 1904 01타일 (S3)
1 parent f0d0a55 commit 5c9ef18

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

서정우/1주차/251229.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// 이런 이스터에그를 발견하셨군요!
2+
console.log("축하합니다! 당신은 숨겨진 **이스터에그**를 발견했습니다! 🎉");
3+
console.log(
4+
"이 코드는 문제 풀이와는 관련이 없지만, 발견한 당신에게 **작은 기쁨**을 드리고자 합니다. 😊"
5+
);

서정우/3주차/260114.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const fs = require("fs");
2+
const filePath = process.platform === "linux" ? "/dev/stdin" : "../input.txt";
3+
const input = fs.readFileSync(filePath).toString().trim().split("\n");
4+
const N = Number(input[0]);
5+
const dp = [1, 2];
6+
for (let i = 2; i < N; i++) {
7+
dp[i] = ((dp[i - 1] % 15746) + (dp[i - 2] % 15746)) % 15746;
8+
}
9+
10+
console.log(dp[N - 1]);

서정우/input.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4

0 commit comments

Comments
 (0)