結果
| 問題 | 
                            No.9001 標準入出力の練習問題(テスト用)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-07-23 10:34:23 | 
| 言語 | JavaScript  (node v23.5.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 65 ms / 1,000 ms | 
| コード長 | 387 bytes | 
| コンパイル時間 | 196 ms | 
| コンパイル使用メモリ | 6,944 KB | 
| 実行使用メモリ | 39,168 KB | 
| 最終ジャッジ日時 | 2024-06-23 17:24:08 | 
| 合計ジャッジ時間 | 612 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 | 
ソースコード
function main(input = '') {
  if (!input) throw Error;
  let lines = input.split('\n');
  let [a, b] = lines[0].split(' ');
  return `${parseInt(a) + parseInt(b)} ${lines[1]}`;
}
const { readFileSync, existsSync } = require('fs');
const stdin = '/dev/stdin';
if (existsSync(stdin)) {
  const input = readFileSync(stdin, 'utf8');
  console.log(main(input));
}
module.exports = main;