結果

問題 No.668 6.0*10^23
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2020-01-08 10:41:07
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-05-02 12:32:58
合計ジャッジ時間 6,865 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
12,288 KB
testcase_01 WA -
testcase_02 AC 93 ms
12,288 KB
testcase_03 AC 93 ms
12,288 KB
testcase_04 AC 92 ms
12,032 KB
testcase_05 AC 93 ms
12,288 KB
testcase_06 AC 93 ms
12,032 KB
testcase_07 AC 90 ms
12,288 KB
testcase_08 AC 91 ms
12,160 KB
testcase_09 WA -
testcase_10 AC 92 ms
12,288 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 94 ms
12,160 KB
testcase_14 WA -
testcase_15 AC 95 ms
12,160 KB
testcase_16 AC 92 ms
12,288 KB
testcase_17 WA -
testcase_18 AC 91 ms
12,032 KB
testcase_19 AC 91 ms
12,160 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 90 ms
12,288 KB
testcase_23 AC 91 ms
12,160 KB
testcase_24 AC 90 ms
12,032 KB
testcase_25 AC 90 ms
12,160 KB
testcase_26 AC 91 ms
12,160 KB
testcase_27 AC 91 ms
12,160 KB
testcase_28 AC 92 ms
12,160 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 94 ms
12,160 KB
testcase_34 AC 90 ms
12,288 KB
testcase_35 AC 93 ms
12,160 KB
testcase_36 AC 92 ms
12,160 KB
testcase_37 WA -
testcase_38 AC 92 ms
12,160 KB
testcase_39 WA -
testcase_40 AC 92 ms
12,032 KB
testcase_41 AC 90 ms
12,160 KB
testcase_42 AC 94 ms
12,160 KB
testcase_43 AC 94 ms
12,160 KB
testcase_44 AC 93 ms
12,160 KB
testcase_45 AC 92 ms
12,160 KB
testcase_46 WA -
testcase_47 AC 93 ms
12,288 KB
testcase_48 AC 93 ms
12,288 KB
testcase_49 AC 92 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def ans(f, exp)
  sprintf('%0.1f*10^%d', f, exp)
end

S = gets.chomp
f = S[0,3].to_i + 5

if f >= 1000
  puts ans(f.to_f / 1000, S.size)
else
  puts ans(f.to_f / 100, S.size - 1)
end
0