結果

問題 No.46 はじめのn歩
コンテスト
ユーザー karaju
提出日時 2026-10-22 23:42:05
言語 C++23(gcc16)
(gcc 16.2.0 + boost 1.92.0 + ACL)
コンパイル:
g++-16 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 2,185 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,508 ms
コンパイル使用メモリ 388,788 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2026-10-22 23:42:25
合計ジャッジ時間 8,201 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder; 
#endif
using namespace std; using ll = long long; using pa = pair<ll,ll>; using ld = long double;
using pq = priority_queue<pa, vector<pa>, greater<pa>>; //グラフ系で使える
#define all(a) a.begin(),a.end()  
#define rall(a) a.rbegin(),a.rend()
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl;
#define deb( x ) cerr << #x << " = " << ( x ) << endl
template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;} template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;}
const int dy[4] = {0, 0, 1, -1}, dx[4] = {-1, 1, 0, 0}; const int ddy[8] = {-1, -1, -1, 0, 0, 1, 1, 1}, ddx[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
long long INF = 1LL << 62, mod = 998244353;
using mint = modint998244353; //問題で変える
#define int ll

struct S { long long maximum; bool empty; };
using F = std::optional<long long>;
S op(S x, S y) {
    if (x.empty) return y;
    if (y.empty) return x;
    return {std::max(x.maximum, y.maximum), false};
}
S e() { return {0, true}; }
S mapping(F f, S x) { if (f && !x.empty) x.maximum = *f; return x; }
F composition(F f, F g) { return f ? f : g; }
F id() { return std::nullopt; }
//x.maximumで最大値

//小数出力 = ldout, 入出力高速化 = forfast
//グリッドに抑える = grid
//素因数分解 = forprime, 素数列挙 = prime
//約数列挙 = divisor, nCr = ncr
//行列累乗など = matrix
//mo'sアルゴリズムのソート = mosort
//hash値(Zoblish) = forhash, Rolling Hash = roriha
//main内のlazy_segtree定義 それ単体 = makeseg
//lazysegの関数など (plus = 加算) + (min, max, sum), changemin, changemax
//lazyseg, 加算代入どちらもできるやつ = bothsum
//{初期値, false}を詰めた配列で初期化すること
//Segtree's monoids : https://blueberry1001.github.io/Blueberry-library/monoids.html
//Templetes : https://atcoder.jp/contests/abc318/submissions/80061677
//snippets(json) : https://atcoder.jp/contests/abc318/submissions/80067458
signed main(){
    int a, b;
    cin >> a >> b;
    cout << b / a << endl;

}
0