結果

問題 No.219 巨大数の概算
ユーザー Lycoris_iLycoris_i
提出日時 2015-09-09 00:35:09
言語 Ruby
(3.3.0)
結果
AC  
実行時間 140 ms / 1,500 ms
コード長 207 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 11,288 KB
実行使用メモリ 16,416 KB
最終ジャッジ日時 2023-09-25 14:49:58
合計ジャッジ時間 11,054 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
16,116 KB
testcase_01 AC 138 ms
16,208 KB
testcase_02 AC 138 ms
16,124 KB
testcase_03 AC 135 ms
16,280 KB
testcase_04 AC 119 ms
16,160 KB
testcase_05 AC 81 ms
15,556 KB
testcase_06 AC 87 ms
15,620 KB
testcase_07 AC 81 ms
15,328 KB
testcase_08 AC 87 ms
15,832 KB
testcase_09 AC 81 ms
15,552 KB
testcase_10 AC 138 ms
16,124 KB
testcase_11 AC 139 ms
16,172 KB
testcase_12 AC 138 ms
16,196 KB
testcase_13 AC 138 ms
16,320 KB
testcase_14 AC 138 ms
16,300 KB
testcase_15 AC 140 ms
16,140 KB
testcase_16 AC 139 ms
16,376 KB
testcase_17 AC 138 ms
16,264 KB
testcase_18 AC 136 ms
16,276 KB
testcase_19 AC 135 ms
16,384 KB
testcase_20 AC 136 ms
16,144 KB
testcase_21 AC 139 ms
16,304 KB
testcase_22 AC 136 ms
16,204 KB
testcase_23 AC 135 ms
16,360 KB
testcase_24 AC 136 ms
16,288 KB
testcase_25 AC 135 ms
16,136 KB
testcase_26 AC 139 ms
16,160 KB
testcase_27 AC 135 ms
16,200 KB
testcase_28 AC 135 ms
16,380 KB
testcase_29 AC 135 ms
16,124 KB
testcase_30 AC 134 ms
16,128 KB
testcase_31 AC 135 ms
16,136 KB
testcase_32 AC 138 ms
16,076 KB
testcase_33 AC 139 ms
16,248 KB
testcase_34 AC 137 ms
16,264 KB
testcase_35 AC 139 ms
16,352 KB
testcase_36 AC 135 ms
16,320 KB
testcase_37 AC 136 ms
16,336 KB
testcase_38 AC 137 ms
16,416 KB
testcase_39 AC 138 ms
16,188 KB
testcase_40 AC 138 ms
16,224 KB
testcase_41 AC 134 ms
16,152 KB
testcase_42 AC 136 ms
16,120 KB
testcase_43 AC 137 ms
16,316 KB
testcase_44 AC 138 ms
16,136 KB
testcase_45 AC 136 ms
16,320 KB
testcase_46 AC 137 ms
16,276 KB
testcase_47 AC 136 ms
16,144 KB
testcase_48 AC 136 ms
16,212 KB
testcase_49 AC 138 ms
16,104 KB
testcase_50 AC 134 ms
16,220 KB
testcase_51 AC 81 ms
15,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = Array.new
n.times { a << gets.split(" ").map(&:to_i) }
a.each {|b|
  z = (b[1] * Math.log10(b[0])).floor
  xy = (10 ** (b[1] * Math.log10(b[0]) - z)).to_s
  puts "#{xy[0]} #{xy[2]} #{z}"
}
0