Skip to content

tuanzijiang/exerciseFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exerciseFactory

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.

How to use it

  1. copy and rename any directory in niuke.(For example, the name of new directory is 13)
  2. modify config field in the main.js under root directory
const kinds = ['niuke', 'normal', 'leetcode'];
const config = {
  kindNum: 0,
  questionNum: 13,// input new directory name
}
  1. input the data in the niuke/13/data.js
  2. input the code and finish the outputFn in the niuke/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
}
  1. input the question in the niuke/13/question.txt(optional)
  2. run debug in vscode

About

一个在vscode上调试牛客网、赛码网等平台的简易OJ练习器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors