Don't you think it is difficult and troublesome to debug in online platform, especially in nowcoder and acmcoder. This is a platform to debug and document questions in local environment.
- copy and rename any directory in
niuke.(For example, the name of new directory is13) - modify
configfield in the main.js under root directory
const kinds = ['niuke', 'normal', 'leetcode'];
const config = {
kindNum: 0,
questionNum: 13,// input new directory name
}
- input the data in the
niuke/13/data.js - input the code and finish the
outputFnin theniuke/13/answer.js
//read_line() 赛码网
//readline() 牛客网
// 有些函数在tool里面,需要取出来
const { read_line, readline, print } = require('../../lib/platform');
const tool = require('../../lib/tool');
const outputFn = () => {
// code
}
module.exports = () => {
outputFn();
debugger
}
- input the question in the
niuke/13/question.txt(optional) - run debug in vscode