結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-18 22:47:31 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 856 bytes |
| コンパイル時間 | 3,295 ms |
| コンパイル使用メモリ | 275,140 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-11-18 22:47:35 |
| 合計ジャッジ時間 | 3,832 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
#include <random>
using i64 = long long;
template<class T>
std::ostream& operator<<(std::ostream& os, std::vector<T>& a) {
for (auto& x : a) os << x << " ";
return os;
}
struct DSU {
int n;
std::vector<int> f, siz;
DSU(){}
DSU(int N) : n(N), f(n), siz(n, 1) {
std::iota(f.begin(), f.end(), 0);
}
int find (int x) {
while (x != f[x]) x = f[x] = f[f[x]];
return x;
}
bool merge(int x, int y) {
x = find(x), y = find(y);
if (x == y) return false;
if (siz[x] > siz[y]) std::swap(x, y);
f[x] = y;
siz[y] += siz[x];
return true;
}
int size (int x) {
return siz[find(x)];
}
};
int dx[] = {0, 1, 0, -1}, dy[] = {1, 1, -1, -1};
int main() {
std::cin.tie(nullptr)->sync_with_stdio(false);
i64 a, b;
std::cin >> a >> b;
std::cout << (a + b - 1) / a << '\n';
return 0;
}