結果

問題 No.9000 Hello World! (テスト用)
ユーザー yu0912
提出日時 2020-07-23 01:03:35
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-06-23 03:51:01
合計ジャッジ時間 976 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

const { readFileSync, existsSync } = require("fs");

const main = (input = "") => {
  return "Hello World!";
};

const stdin = "/dev/stdin";

if (existsSync(stdin)) {
  const input = readFileSync(stdin, "utf8");
  console.log(main(input));
}

module.exports = main;
0