Skip to content

Commit

Permalink
fix: テンプレート修正
Browse files Browse the repository at this point in the history
  • Loading branch information
taizod1024 committed Sep 24, 2021
1 parent b4234c0 commit 0ff51a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/default.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from "fs";

// util for input
const lineit = (function* () { for (const line of fs.readFileSync(0, "utf8").split("\n")) yield line; })();
const lineit = (function* () { for (const line of fs.readFileSync(process.stdin.fd, "utf8").split("\n")) yield line; })();
const wordit = (function* () { while (true) { let line = lineit.next(); if (line.done) break; for (const word of String(line.value).split(" ")) yield word; } })();
const charit = (function* () { while (true) { let word = wordit.next(); if (word.done) break; for (const char of String(word.value).split("")) yield char; } })();
const readline = () => String((lineit.next()).value);
Expand Down

0 comments on commit 0ff51a6

Please sign in to comment.