結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー yu0912yu0912
提出日時 2020-07-23 10:15:44
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 42,172 KB
最終ジャッジ日時 2023-09-05 22:04:25
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

function main(input = "") {
  if (!input) throw Error;

  let data = input.split(" ");

  return `${parseInt(data[0]) + parseInt(data[1])} ${data[2]}`;
}

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

module.exports = main;
0