結果

問題 No.221 犯罪都市
ユーザー simansiman
提出日時 2016-03-24 00:42:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 176 bytes
コンパイル時間 803 ms
コンパイル使用メモリ 11,304 KB
実行使用メモリ 15,288 KB
最終ジャッジ日時 2023-08-26 12:21:12
合計ジャッジ時間 2,495 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
15,040 KB
testcase_01 AC 73 ms
15,028 KB
testcase_02 AC 72 ms
14,992 KB
testcase_03 AC 75 ms
15,120 KB
testcase_04 AC 75 ms
15,088 KB
testcase_05 AC 72 ms
15,288 KB
testcase_06 AC 72 ms
15,096 KB
testcase_07 AC 72 ms
15,248 KB
testcase_08 AC 72 ms
15,140 KB
testcase_09 AC 71 ms
15,140 KB
testcase_10 AC 71 ms
15,100 KB
testcase_11 AC 69 ms
15,092 KB
testcase_12 AC 71 ms
15,248 KB
testcase_13 AC 69 ms
14,988 KB
testcase_14 AC 68 ms
15,088 KB
testcase_15 AC 71 ms
15,000 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

class Yukicoder
  def initialize
    n = gets.to_i

    a = (10000 - n) * 0.01
    b = n * 0.99 + (10000 - n) * 0.01

    puts Rational(a,b).to_f * 100
  end
end

Yukicoder.new
0