結果

問題 No.46 はじめのn歩
ユーザー te-sh
提出日時 2016-08-27 14:43:37
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 684 ms
コンパイル使用メモリ 98,560 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 03:42:16
合計ジャッジ時間 1,059 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.array, std.range;
import std.string, std.conv;
import std.stdio, std.typecons;

void main()
{
  auto rd = readln.split.map!(to!int);
  auto a = rd[0];
  auto b = rd[1];

  writeln(b / a + (b % a == 0 ? 0 : 1));
}
0