結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-14 21:18:52 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 282µs | |
| コード長 | 395 bytes |
| 記録 | |
| コンパイル時間 | 3,030 ms |
| コンパイル使用メモリ | 350,452 KB |
| 実行使用メモリ | 7,344 KB |
| 最終ジャッジ日時 | 2026-08-14 21:18:57 |
| 合計ジャッジ時間 | 3,700 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
vector<int> d4 = {0,1,0,-1,0};
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int a, b; cin >> a >> b;
if (b%a==0) cout << b/a << endl;
else cout << b/a + 1 << endl;
return 0;
}