結果
問題 |
No.9000 Hello World! (テスト用)
|
ユーザー |
|
提出日時 | 2021-10-12 21:30:40 |
言語 | TypeScript (5.7.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 863 bytes |
コンパイル時間 | 8,069 ms |
コンパイル使用メモリ | 229,176 KB |
実行使用メモリ | 39,784 KB |
最終ジャッジ日時 | 2024-12-31 16:40:43 |
合計ジャッジ時間 | 8,758 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
ソースコード
import * as fs from "fs"; // util for input const lineit = (function* () { for (const line of fs.readFileSync(process.stdin.fd, "utf8").split("\n")) yield line.trim(); })(); 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); const read = () => String((wordit.next()).value); const readchar = () => String((charit.next()).value); // main const main = function () { // param let s: string; // init s = read(); // solve let ans = "Hello World!"; // answer console.log(ans); return; }; main();