2024-05-09 00:27:45 +08:00
|
|
|
const fs = require('fs');
|
|
|
|
const path = require('path');
|
2024-05-09 00:46:17 +08:00
|
|
|
const fight = require('./md5-api.ts').fight;
|
2024-05-09 00:27:45 +08:00
|
|
|
|
|
|
|
// 从文件的 ./input.txt 中读取输入
|
|
|
|
// 然后丢给 md5.js
|
|
|
|
|
|
|
|
async function main() {
|
|
|
|
const input = fs.readFileSync(path.join(__dirname, 'input.txt'), 'utf8');
|
|
|
|
const result = await fight(input);
|
|
|
|
console.log(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
main();
|