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