結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
orendon
|
| 提出日時 | 2022-02-28 10:28:15 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 3,887 ms |
| コンパイル使用メモリ | 68,048 KB |
| 最終ジャッジ日時 | 2025-01-28 03:54:15 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <iostream>
#include <set>
using namespace std;
#define endl '\n'
typedef long long ll;
void solve() {
int a, b;
cin >> a >> b;
int steps = b/a;
if (b%a != 0) steps++;
cout << steps << endl;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
solve();
return 0;
}
orendon