Skip to content

Commit 89a2fcc

Browse files
[BOJ] 2914 저작권 (B3)
1 parent 0848335 commit 89a2fcc

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

서정우/11주차/260312.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const fs = require("fs");
2+
const filePath = process.platform === "linux" ? "/dev/stdin" : "./서정우/input.txt";
3+
const input = fs
4+
.readFileSync(filePath)
5+
.toString()
6+
.trim()
7+
.split("\n")
8+
.map((el) => el.trim());
9+
10+
const [N, M] = input[0].split(" ").map(Number);
11+
console.log(N * (M - 1) + 1);

서정우/input.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
8
2-
1 3 3 2 1 1 3 2
1+
10 10

0 commit comments

Comments
 (0)