結果

問題 No.46 はじめのn歩
ユーザー koturn
提出日時 2016-02-10 06:08:32
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 887 ms
コンパイル使用メモリ 60,556 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-21 22:04:26
合計ジャッジ時間 986 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cmath>
#include <cstdlib>
#include <iostream>


int
main()
{
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int a, b;
  std::cin >> a >> b;
  std::div_t d = std::div(b, a);
  std::cout << (d.quot + (d.rem != 0)) << std::endl;

  return EXIT_SUCCESS;
}
0