結果
| 問題 | No.428 小数から逃げる夢 | 
| コンテスト | |
| ユーザー |  miraxial | 
| 提出日時 | 2016-10-25 23:54:25 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 220 bytes | 
| コンパイル時間 | 37 ms | 
| コンパイル使用メモリ | 7,552 KB | 
| 実行使用メモリ | 12,416 KB | 
| 最終ジャッジ日時 | 2024-11-24 03:45:58 | 
| 合計ジャッジ時間 | 11,176 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 99 RE * 1 | 
コンパイルメッセージ
Syntax OK
ソースコード
d=([*1..99].map(&:to_s)+[?0]).*("").to_i
n=gets.to_i
if n==1
  puts "0."+d
else
  d=(d*n).to_s
  g=d.length-190
  d=?0+d
  d=[d[0..g],d[g+1..-1]]
  if g==0
    puts "0."+d[1]
  else
    puts d[0][1..-1]+?.+d[1]
  end
end
            
            
            
        