結果

問題 No.46 はじめのn歩
コンテスト
ユーザー vjudge1
提出日時 2026-02-11 01:29:20
言語 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
コード長 338 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,765 ms
コンパイル使用メモリ 333,372 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-11 01:29:25
合計ジャッジ時間 4,407 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#define int long long
using namespace std;
#define fastnuces ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);int t = 1;


void solve(){
int a,b;
cin>>a>>b;
int ans=b/a;
if(b%a!=0)ans++;
cout<<ans<<endl;


}


signed main() {
    fastnuces;
    // cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}
0