結果
問題 |
No.9000 Hello World! (テスト用)
|
ユーザー |
|
提出日時 | 2021-12-24 15:22:29 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 62 ms / 5,000 ms |
コード長 | 871 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 39,680 KB |
最終ジャッジ日時 | 2024-09-19 13:48:28 |
合計ジャッジ時間 | 2,212 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
let fs = require("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; // init s = read(); // solve let ans = "Hello World!"; // answer console.log(ans); return; }; main();