結果

問題 No.863 計算量
ユーザー Theta
提出日時 2022-10-19 13:09:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 398 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-29 16:06:59
合計ジャッジ時間 1,335 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    A = int(input())
    B = int(input())

    linear_rate = 5000*B / (200000*A)
    square_rate = B * 5000**2 / (A * 200000**2)

    if linear_rate > 1:
        linear_rate = 1/linear_rate
    if square_rate > 1:
        square_rate = 1/square_rate
    if abs(linear_rate - 1) < abs(square_rate - 1):
        print(1)
    else:
        print(2)


if __name__ == "__main__":
    main()
0