結果
問題 | No.388 階段 (1) |
ユーザー |
|
提出日時 | 2024-06-02 08:05:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 393 bytes |
コンパイル時間 | 1,703 ms |
コンパイル使用メモリ | 165,080 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 03:01:21 |
合計ジャッジ時間 | 2,415 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 4 WA * 8 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ill = int long long;#define rep(i, n) for (ill i = 0; i < (n); i++)#define all(s) s.begin(), s.end()using inp = pair<int, int>;using vecb = vector<bool>;using vecb2 = vector<vecb>;int main(){int s, f;cin >> s >> f;int cnt = 1;while (s >= f){f = f + f;cnt++;}cout << cnt << endl;}