結果

問題 No.858 わり算
ユーザー 👑 yumechiyumechi
提出日時 2019-12-25 13:05:05
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 11,872 KB
実行使用メモリ 16,100 KB
最終ジャッジ日時 2023-10-25 01:38:29
合計ジャッジ時間 1,506 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 78 ms
16,100 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 78 ms
16,100 KB
testcase_06 WA -
testcase_07 AC 79 ms
16,100 KB
testcase_08 AC 82 ms
16,100 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, 52]
else
  printf "0.%s\n", s[0, 50]
end
0