結果
問題 |
No.863 計算量
|
ユーザー |
|
提出日時 | 2019-12-30 16:23:19 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 81 ms / 1,000 ms |
コード長 | 131 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-08 17:39:40 |
合計ジャッジ時間 | 2,839 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
コンパイルメッセージ
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
ソースコード
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