Skip to content

Commit

Permalink
fix: テンプレート修正
Browse files Browse the repository at this point in the history
  • Loading branch information
taizod1024 committed Jun 6, 2021
1 parent 28a14e7 commit 1717ed0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions template/default_read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ export { };
// main
async function main() {
// input
const readline = require('readline').createInterface({ input: process.stdin });
const readiter = readline[Symbol.asyncIterator]();
async function read() { return (await readiter.next()).value; }
const rl = require('readline').createInterface({ input: process.stdin });
const readlineiter = rl[Symbol.asyncIterator]();
const readworditer = (async function* () { let vals = (await readlineiter.next()).value.split(" "); for (let nx = 0; nx < vals.length; nx++) yield vals[nx]; })();
const readline = async () => { return (await readlineiter.next()).value; };
const readword = async () => { return (await readworditer.next()).value; };
// param
let n: number;
let anm: number[][];
// init
n = Number((await read()));
n = Number((await readline()));
anm = [];
for (let nx = 0; nx < n; nx++) {
anm.push((await read()).split(" ").map(x => Number(x)));
anm.push((await readline()).split(" ").map(x => Number(x)));
}
// WIP 新テンプレート
// TODO 新テンプレート
// solve
let ans = 0;
// answer
Expand Down

0 comments on commit 1717ed0

Please sign in to comment.