結果

問題 No.863 計算量
ユーザー nobukichi
提出日時 2019-08-27 00:59:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 240 bytes
コンパイル時間 549 ms
コンパイル使用メモリ 58,844 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-08 19:56:45
合計ジャッジ時間 1,361 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;

    double p = log((double) b / a) / log(40.0);

    cout << (fabs(p - 1.0) < fabs(p - 2.0) ? '1' : '2') << endl;

    return 0;
}


0