結果
問題 |
No.9000 Hello World! (テスト用)
|
ユーザー |
|
提出日時 | 2021-10-12 22:01:28 |
言語 | TypeScript (5.7.2) |
結果 |
AC
|
実行時間 | 68 ms / 5,000 ms |
コード長 | 864 bytes |
コンパイル時間 | 8,885 ms |
コンパイル使用メモリ | 229,316 KB |
実行使用メモリ | 39,808 KB |
最終ジャッジ日時 | 2024-12-31 16:40:50 |
合計ジャッジ時間 | 9,084 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 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();