結果

問題 No.668 6.0*10^23
ユーザー maimai
提出日時 2018-03-24 04:44:31
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 225 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 15,436 KB
最終ジャッジ日時 2023-09-12 17:41:05
合計ジャッジ時間 6,153 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,036 KB
testcase_01 WA -
testcase_02 AC 79 ms
15,100 KB
testcase_03 AC 79 ms
15,124 KB
testcase_04 AC 79 ms
15,116 KB
testcase_05 AC 79 ms
15,096 KB
testcase_06 AC 79 ms
15,152 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 78 ms
15,256 KB
testcase_10 AC 79 ms
15,332 KB
testcase_11 AC 79 ms
15,352 KB
testcase_12 AC 80 ms
15,152 KB
testcase_13 AC 80 ms
15,052 KB
testcase_14 AC 79 ms
15,124 KB
testcase_15 AC 80 ms
15,048 KB
testcase_16 AC 79 ms
15,252 KB
testcase_17 AC 79 ms
15,288 KB
testcase_18 AC 80 ms
15,124 KB
testcase_19 AC 79 ms
15,252 KB
testcase_20 AC 80 ms
15,104 KB
testcase_21 AC 80 ms
15,124 KB
testcase_22 AC 80 ms
15,168 KB
testcase_23 AC 80 ms
15,300 KB
testcase_24 AC 80 ms
15,032 KB
testcase_25 AC 79 ms
15,120 KB
testcase_26 AC 81 ms
15,056 KB
testcase_27 AC 80 ms
15,144 KB
testcase_28 AC 81 ms
15,288 KB
testcase_29 AC 81 ms
15,112 KB
testcase_30 AC 81 ms
15,284 KB
testcase_31 AC 81 ms
15,260 KB
testcase_32 AC 81 ms
15,104 KB
testcase_33 AC 80 ms
15,156 KB
testcase_34 AC 80 ms
15,268 KB
testcase_35 AC 80 ms
15,276 KB
testcase_36 AC 80 ms
15,268 KB
testcase_37 AC 79 ms
15,180 KB
testcase_38 AC 80 ms
15,276 KB
testcase_39 AC 81 ms
15,272 KB
testcase_40 AC 81 ms
15,144 KB
testcase_41 AC 80 ms
15,128 KB
testcase_42 AC 81 ms
15,308 KB
testcase_43 AC 81 ms
15,272 KB
testcase_44 AC 80 ms
15,148 KB
testcase_45 AC 79 ms
15,252 KB
testcase_46 AC 79 ms
15,172 KB
testcase_47 AC 80 ms
15,116 KB
testcase_48 AC 80 ms
15,072 KB
testcase_49 AC 80 ms
15,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

str = gets

if str.size < 40
    a,b,c=sprintf("%.1e",str.to_i).scan(/\d+/)
    puts a+"."+b+"*10^"+c.to_i.to_s
else
    a,b,c=sprintf("%.1e",str[0..20].to_i).scan(/\d+/)
    puts a+"."+b+"*10^"+(c.to_i+str.size-22).to_s
end
0