Skip to content

Commit 7480209

Browse files
committed
99차 1번 문제풀이
1 parent d779f62 commit 7480209

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

live9/test99/문제1/조진우.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require("fs");
22
const input = fs
3-
.readFileSync("./input.txt", "utf8")
4-
// .readFileSync("/dev/stdin", "utf8")
3+
// .readFileSync("./input.txt", "utf8")
4+
.readFileSync("/dev/stdin", "utf8")
55
.toString()
66
.trim()
77
.split("\n")
@@ -11,8 +11,8 @@ function solution(input) {
1111
const t = input[0][0];
1212
const arr = input[1];
1313

14-
let max = 0;
15-
let min = 0;
14+
let max = -Infinity;
15+
let min = Infinity;
1616

1717
const dfs = (index, value, [plus, minus, multiply, divide]) => {
1818
if (index === t) {

0 commit comments

Comments
 (0)