結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー DOEtoGuitarDOEtoGuitar
提出日時 2018-06-19 22:09:44
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 359 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 39,296 KB
最終ジャッジ日時 2024-04-21 02:08:36
合計ジャッジ時間 604 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
39,040 KB
testcase_01 AC 67 ms
39,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function main(input) {

  const data = input.split("\n");

  const first_line = data[0];
  const S = data[1];
  const first = first_line.split(' ');
  const A = parseInt(first[0]);
  const B = parseInt(first[1]);
  const N = A + B;
  const result = N + " " + S;
  console.log(result);

}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
0