結果

問題 No.46 はじめのn歩
ユーザー dgd1724
提出日時 2016-09-12 18:24:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 399 bytes
コンパイル時間 699 ms
コンパイル使用メモリ 72,940 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 04:03:46
合計ジャッジ時間 1,134 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <time.h>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <iomanip>

int main(void) {

	//test用
	//std::ifstream in("test.txt");
	//std::cin.rdbuf(in.rdbuf());

	int a, b;
	std::cin >> a >> b;

	if (b%a != 0) {
		std::cout << b/a+1 << std::endl;
	}
	else {
		std::cout << b / a << std::endl;
	}
}
0