diff --git a/Baekjoon/js/1008.js b/Baekjoon/js/1008.js new file mode 100755 index 0000000..5d69558 --- /dev/null +++ b/Baekjoon/js/1008.js @@ -0,0 +1,5 @@ +const fs = require("fs"); +const n = fs.readFileSync("/dev/stdin").toString().split(" "); +const a = parseInt(n[0]); +const b = parseInt(n[1]); +console.log(a/b); \ No newline at end of file diff --git a/Baekjoon/js/10430.js b/Baekjoon/js/10430.js new file mode 100755 index 0000000..b47f688 --- /dev/null +++ b/Baekjoon/js/10430.js @@ -0,0 +1,6 @@ +const fs = require("fs"); +const n = fs.readFileSync("/dev/stdin").toString().split(" "); +const a = parseInt(n[0]); +const b = parseInt(n[1]); +const c = parseInt(n[2]); +console.log((a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c); \ No newline at end of file diff --git a/Baekjoon/js/10869.js b/Baekjoon/js/10869.js new file mode 100755 index 0000000..04bcdae --- /dev/null +++ b/Baekjoon/js/10869.js @@ -0,0 +1,5 @@ +const fs = require("fs"); +const n = fs.readFileSync("/dev/stdin").toString().split(" "); +const a = parseInt(n[0]); +const b = parseInt(n[1]); +console.log(a+b,a-b,a*b,Math.floor(a/b),a%b); \ No newline at end of file diff --git a/Baekjoon/js/10926.js b/Baekjoon/js/10926.js new file mode 100755 index 0000000..9467615 --- /dev/null +++ b/Baekjoon/js/10926.js @@ -0,0 +1,3 @@ +const fs = require("fs"); +const s = fs.readFileSync("/dev/stdin").toString().trim(); +console.log(s+"??!"); \ No newline at end of file diff --git a/Baekjoon/js/10998.js b/Baekjoon/js/10998.js new file mode 100755 index 0000000..2776e61 --- /dev/null +++ b/Baekjoon/js/10998.js @@ -0,0 +1,5 @@ +const fs = require("fs"); +const n = fs.readFileSync("/dev/stdin").toString().split(" "); +const a = parseInt(n[0]); +const b = parseInt(n[1]); +console.log(a*b); \ No newline at end of file diff --git a/Baekjoon/js/11382.js b/Baekjoon/js/11382.js new file mode 100755 index 0000000..1801e18 --- /dev/null +++ b/Baekjoon/js/11382.js @@ -0,0 +1,2 @@ +const n = require("fs").readFileSync("/dev/stdin").toString().split(" ").map(Number); +console.log(n[0]+n[1]+n[2]); \ No newline at end of file diff --git a/Baekjoon/js/18108.js b/Baekjoon/js/18108.js new file mode 100755 index 0000000..15a717d --- /dev/null +++ b/Baekjoon/js/18108.js @@ -0,0 +1,3 @@ +const fs = require("fs"); +const n = fs.readFileSync("/dev/stdin").toString(); +console.log(n-543); \ No newline at end of file diff --git a/Baekjoon/js/2588.js b/Baekjoon/js/2588.js new file mode 100755 index 0000000..986b2c5 --- /dev/null +++ b/Baekjoon/js/2588.js @@ -0,0 +1,5 @@ +const n = require("fs").readFileSync("/dev/stdin").toString().split("\n").map(Number); +const a = n[1]%10; +const b = (n[1]%100 - a)/10; +const c = (n[1]%1000-n[1]%100)/100; +console.log(n[0]*a,n[0]*b,n[0]*c,n[0]*n[1]);