結果

問題 No.46 はじめのn歩
コンテスト
ユーザー vjudge1
提出日時 2026-02-11 01:14:32
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,218 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,955 ms
コンパイル使用メモリ 352,552 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-02-11 01:14:37
合計ジャッジ時間 4,777 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ordered_set tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update>
#define ll long long
#define vi vector<int>
#define vll vector<ll>
#define all(a) a.begin(), a.end()
#define f(i, s, e) for (ll i = s; i < e; ++i)
#define fr(i, s, e) for (ll i = s; i > e; --i)
#define vvi vector<vector<int>>
#define pb push_back
template <class T>
void print_v(vector<T> &v)
{
    for (auto x : v)
        cout << x << ' ';
    cout << '\n';
}



#define pii pair<int, int>
#define pll pair<ll, ll>
#define fraction(a)               \
    cout.unsetf(ios::floatfield); \
    cout.precision(a);            \
    cout.setf(ios::fixed, ios::floatfield);
void yes() { cout << "YES\n"; }
void no() { cout << "NO\n"; }



void solve() {
    ll a, b;
    cin >> a >> b;
    cout << (b + a - 1) / a << '\n';
    
}


int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    int t = 1;
    // cin >> t;
    while (t--)
        solve();
    return 0;
}
0