結果

問題 No.428 小数から逃げる夢
ユーザー fine
提出日時 2016-10-03 00:12:32
言語 Ruby
(ruby 2.5.3p57)
結果
AC  
実行時間 10 ms
コード長 278 Byte
コンパイル時間 17 ms
使用メモリ 8,916 KB
最終ジャッジ日時 2019-07-13 10:25:38

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
in001txt AC 10 ms
6,868 KB
in002txt AC 9 ms
6,872 KB
in003txt AC 9 ms
6,872 KB
in004txt AC 10 ms
6,872 KB
in005txt AC 9 ms
6,868 KB
in006txt AC 9 ms
6,872 KB
in007txt AC 10 ms
6,872 KB
in008txt AC 9 ms
6,868 KB
in009txt AC 9 ms
8,916 KB
in010txt AC 9 ms
6,872 KB
in011txt AC 9 ms
6,872 KB
in012txt AC 10 ms
6,872 KB
in013txt AC 9 ms
6,872 KB
in014txt AC 8 ms
6,868 KB
in015txt AC 10 ms
6,872 KB
in016txt AC 9 ms
6,868 KB
in017txt AC 9 ms
6,868 KB
in018txt AC 10 ms
6,872 KB
in019txt AC 9 ms
6,872 KB
in020txt AC 9 ms
6,872 KB
in021txt AC 9 ms
8,916 KB
in022txt AC 9 ms
6,872 KB
in023txt AC 9 ms
6,868 KB
in024txt AC 9 ms
6,868 KB
in025txt AC 8 ms
6,872 KB
in026txt AC 9 ms
6,872 KB
in027txt AC 10 ms
6,872 KB
in028txt AC 9 ms
6,868 KB
in029txt AC 9 ms
6,868 KB
in030txt AC 9 ms
6,872 KB
in031txt AC 9 ms
6,868 KB
in032txt AC 9 ms
6,872 KB
in033txt AC 9 ms
6,872 KB
in034txt AC 9 ms
6,872 KB
in035txt AC 9 ms
6,872 KB
in036txt AC 9 ms
8,916 KB
in037txt AC 9 ms
6,872 KB
in038txt AC 9 ms
6,868 KB
in039txt AC 9 ms
6,868 KB
in040txt AC 9 ms
6,872 KB
in041txt AC 8 ms
6,868 KB
in042txt AC 9 ms
6,868 KB
in043txt AC 10 ms
6,872 KB
in044txt AC 9 ms
8,916 KB
in045txt AC 8 ms
6,868 KB
in046txt AC 10 ms
6,868 KB
in047txt AC 9 ms
6,868 KB
in048txt AC 9 ms
6,868 KB
in049txt AC 10 ms
6,872 KB
in050txt AC 9 ms
6,872 KB
in051txt AC 9 ms
8,916 KB
in052txt AC 8 ms
6,872 KB
in053txt AC 9 ms
6,868 KB
in054txt AC 9 ms
6,872 KB
in055txt AC 9 ms
6,868 KB
in056txt AC 8 ms
6,868 KB
in057txt AC 9 ms
6,868 KB
in058txt AC 9 ms
6,872 KB
in059txt AC 9 ms
6,868 KB
in060txt AC 9 ms
6,868 KB
in061txt AC 9 ms
6,872 KB
in062txt AC 9 ms
6,872 KB
in063txt AC 9 ms
6,868 KB
in064txt AC 9 ms
6,868 KB
in065txt AC 9 ms
6,872 KB
in066txt AC 8 ms
6,872 KB
in067txt AC 9 ms
6,872 KB
in068txt AC 9 ms
6,872 KB
in069txt AC 9 ms
6,868 KB
in070txt AC 9 ms
8,912 KB
in071txt AC 9 ms
6,872 KB
in072txt AC 10 ms
6,868 KB
in073txt AC 9 ms
6,872 KB
in074txt AC 10 ms
6,872 KB
in075txt AC 9 ms
6,868 KB
in076txt AC 10 ms
6,868 KB
in077txt AC 10 ms
6,872 KB
in078txt AC 9 ms
6,872 KB
in079txt AC 9 ms
6,872 KB
in080txt AC 8 ms
6,872 KB
in081txt AC 9 ms
6,872 KB
in082txt AC 9 ms
6,872 KB
in083txt AC 9 ms
6,868 KB
in084txt AC 9 ms
6,872 KB
in085txt AC 10 ms
6,868 KB
in086txt AC 9 ms
6,868 KB
in087txt AC 9 ms
6,868 KB
in088txt AC 9 ms
8,916 KB
in089txt AC 9 ms
6,868 KB
in090txt AC 9 ms
6,872 KB
in091txt AC 9 ms
6,872 KB
in092txt AC 9 ms
6,872 KB
in093txt AC 9 ms
6,872 KB
in094txt AC 9 ms
6,868 KB
in095txt AC 9 ms
6,872 KB
in096txt AC 10 ms
6,872 KB
in097txt AC 9 ms
6,872 KB
in098txt AC 10 ms
6,868 KB
in099txt AC 9 ms
6,868 KB
in100txt AC 9 ms
6,872 KB
テストケース一括ダウンロード
コンパイルメッセージ
Syntax OK

ソースコード

diff #
require 'bigdecimal'
D = "0.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991"
d = BigDecimal.new(D)
n = gets.to_i
puts (d * n).to_s("F")
0