結果
| 問題 |
No.9000 Hello World! (テスト用)
|
| ユーザー |
|
| 提出日時 | 2022-08-19 12:37:09 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 5,000 ms |
| コード長 | 871 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 39,808 KB |
| 最終ジャッジ日時 | 2024-10-07 16:52:43 |
| 合計ジャッジ時間 | 1,993 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();