https://oj.lidemy.com/problem/1001
var readline = require('readline');
var lines = []
var rl = readline.createInterface({
input: process.stdin
});
// 監聽輸入事件
rl.on('line', function (line) {
lines.push(line)
});
// 程式結束事件
rl.on('close', function() {
solve(lines)
})
// 執行解題 function
function solve(lines) {
var tmp = lines[0].split(' ')
console.log(Number(tmp[0]) + Number(tmp[1]))
}
import sdk from ‘@stackblitz/sdk’
Aug 20, 2023Always Use a Custom Hook for Context API, Not useContext (React Context API, TypeScript)
Aug 13, 2023[ToC] 登入 問題 成因 行動 vue3-loading-overlay 跳錯,說找不到檔案和 css 裝錯,裝成 vue-loading-overlay
Mar 3, 2022目錄 [ToC] 產品列表頁面 產品列表 1. 呼叫 api 取得啟用商品 2. 將商品 v-for 到列表上,其中圖片是用 backgroud 的方式,寫法如下,特別注意後面的地方是字串,所以要用引號包起來 <div style="height: 100px;
Feb 13, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up