結果

問題 No.863 計算量
ユーザー 👑 yumechiyumechi
提出日時 2019-12-30 16:23:19
言語 Ruby
(3.2.2)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 131 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-08-08 12:00:56
合計ジャッジ時間 3,523 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,124 KB
testcase_01 AC 82 ms
15,092 KB
testcase_02 AC 81 ms
15,380 KB
testcase_03 AC 82 ms
15,304 KB
testcase_04 AC 81 ms
15,272 KB
testcase_05 AC 81 ms
15,176 KB
testcase_06 AC 81 ms
15,268 KB
testcase_07 AC 80 ms
15,252 KB
testcase_08 AC 82 ms
15,148 KB
testcase_09 AC 82 ms
15,136 KB
testcase_10 AC 83 ms
15,156 KB
testcase_11 AC 81 ms
15,332 KB
testcase_12 AC 81 ms
15,180 KB
testcase_13 AC 80 ms
15,336 KB
testcase_14 AC 81 ms
15,172 KB
testcase_15 AC 82 ms
15,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:5: warning: `**' after local variable or literal is interpreted as binary operator
Main.rb:5: warning: even though it seems like argument prefix
Syntax OK

ソースコード

diff #

a = gets.to_f
b = gets.to_f

p, q = a / 5000, a / (5000**2)
dp, dq = b - p * 200000, b - q * (200000 **2)
p dp.abs < dq.abs ? 1 : 2
0