Skip to content

Commit 9b3d0dc

Browse files
committed
02.16: math(Loteria Falha)
1 parent 0fc7048 commit 9b3d0dc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

baekjoon/30664.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Loteria Falha : 수학
2+
const arr = require("fs")
3+
.readFileSync(0, "utf-8")
4+
.split("\n")
5+
.map((v) => BigInt(v))
6+
.slice(0, -2);
7+
const answer = arr.map((num) => (num % 42n === 0n ? "PREMIADO" : "TENTE NOVAMENTE"));
8+
console.log(answer.join("\n"));

0 commit comments

Comments
 (0)