結果

問題 No.858 わり算
ユーザー 👑 yumechiyumechi
提出日時 2019-12-25 13:05:37
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 11,936 KB
実行使用メモリ 16,228 KB
最終ジャッジ日時 2023-10-25 01:39:00
合計ジャッジ時間 2,058 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 86 ms
16,092 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 83 ms
16,092 KB
testcase_06 WA -
testcase_07 AC 85 ms
16,092 KB
testcase_08 AC 84 ms
16,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b=gets.split.map(&:to_i)
s = "%.52d" % ((a * (10**52))/b)
if a >= b
  printf "%d.%s\n", s[0], s[1, 51]
else
  printf "0.%s\n", s[0, 50]
end
0