結果

問題 No.863 計算量
ユーザー gemmarogemmaro
提出日時 2019-11-01 08:06:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 139 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 15,268 KB
最終ジャッジ日時 2023-10-13 00:18:30
合計ジャッジ時間 2,987 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
15,108 KB
testcase_01 AC 82 ms
15,152 KB
testcase_02 AC 82 ms
15,100 KB
testcase_03 AC 82 ms
15,132 KB
testcase_04 AC 79 ms
15,016 KB
testcase_05 AC 80 ms
15,268 KB
testcase_06 AC 80 ms
15,228 KB
testcase_07 AC 80 ms
15,256 KB
testcase_08 AC 82 ms
15,100 KB
testcase_09 AC 80 ms
15,024 KB
testcase_10 AC 82 ms
15,024 KB
testcase_11 AC 81 ms
15,128 KB
testcase_12 AC 81 ms
15,020 KB
testcase_13 AC 82 ms
15,100 KB
testcase_14 AC 79 ms
15,244 KB
testcase_15 AC 78 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.chomp.to_i
b = gets.chomp.to_i

l = a * 200_000 / 5_000
c = a * 200_000 ** 2 / 5_000 ** 2

p ( (b - l).abs < (b - c).abs ) ? 1 : 2
0