結果

問題 No.46 はじめのn歩
ユーザー IamAFunOfKonIamAFunOfKon
提出日時 2016-09-13 22:56:52
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 42,812 KB
最終ジャッジ日時 2024-04-21 01:24:51
合計ジャッジ時間 1,360 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
40,576 KB
testcase_01 AC 73 ms
40,832 KB
testcase_02 AC 72 ms
40,576 KB
testcase_03 AC 72 ms
40,960 KB
testcase_04 AC 75 ms
40,704 KB
testcase_05 AC 73 ms
40,960 KB
testcase_06 AC 73 ms
40,704 KB
testcase_07 WA -
testcase_08 AC 70 ms
40,576 KB
testcase_09 AC 71 ms
40,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
var a;
var b;
reader.on('line', function (line) {
  lines.push(line);
  var ab = [];
  lines[0].split(" ").map(function(x) {
     ab.push(parseInt(x));
  } );
  var a = ab[0];
  var b = ab[1];
  if (b%a != 0) { 
    console.log(parseInt(b/a)+1);
  }else{
    console.log(parseInt(b/a));
  }
    
  process.exit(0);
});
process.stdin.on('end', function () {
});
0