結果

問題 No.219 巨大数の概算
ユーザー char134217728char134217728
提出日時 2017-09-08 23:47:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 119 ms / 1,500 ms
コード長 177 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,872 KB
最終ジャッジ日時 2023-09-25 15:39:07
合計ジャッジ時間 9,870 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
15,656 KB
testcase_01 AC 111 ms
15,784 KB
testcase_02 AC 115 ms
15,852 KB
testcase_03 AC 116 ms
15,568 KB
testcase_04 AC 111 ms
15,700 KB
testcase_05 AC 81 ms
15,608 KB
testcase_06 AC 84 ms
15,668 KB
testcase_07 AC 81 ms
15,248 KB
testcase_08 AC 86 ms
15,588 KB
testcase_09 AC 81 ms
15,412 KB
testcase_10 AC 112 ms
15,688 KB
testcase_11 AC 112 ms
15,700 KB
testcase_12 AC 112 ms
15,704 KB
testcase_13 AC 113 ms
15,792 KB
testcase_14 AC 113 ms
15,796 KB
testcase_15 AC 113 ms
15,820 KB
testcase_16 AC 113 ms
15,680 KB
testcase_17 AC 112 ms
15,560 KB
testcase_18 AC 113 ms
15,616 KB
testcase_19 AC 112 ms
15,644 KB
testcase_20 AC 114 ms
15,676 KB
testcase_21 AC 114 ms
15,672 KB
testcase_22 AC 116 ms
15,872 KB
testcase_23 AC 114 ms
15,696 KB
testcase_24 AC 113 ms
15,708 KB
testcase_25 AC 117 ms
15,664 KB
testcase_26 AC 116 ms
15,820 KB
testcase_27 AC 114 ms
15,612 KB
testcase_28 AC 115 ms
15,560 KB
testcase_29 AC 112 ms
15,620 KB
testcase_30 AC 119 ms
15,760 KB
testcase_31 AC 113 ms
15,808 KB
testcase_32 AC 112 ms
15,856 KB
testcase_33 AC 114 ms
15,812 KB
testcase_34 AC 116 ms
15,672 KB
testcase_35 AC 114 ms
15,744 KB
testcase_36 AC 116 ms
15,684 KB
testcase_37 AC 116 ms
15,564 KB
testcase_38 AC 113 ms
15,852 KB
testcase_39 AC 111 ms
15,436 KB
testcase_40 AC 112 ms
15,616 KB
testcase_41 AC 114 ms
15,636 KB
testcase_42 AC 114 ms
15,728 KB
testcase_43 AC 113 ms
15,804 KB
testcase_44 AC 111 ms
15,772 KB
testcase_45 AC 113 ms
15,788 KB
testcase_46 AC 112 ms
15,576 KB
testcase_47 AC 115 ms
15,792 KB
testcase_48 AC 111 ms
15,564 KB
testcase_49 AC 112 ms
15,564 KB
testcase_50 AC 112 ms
15,700 KB
testcase_51 AC 80 ms
15,544 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets.to_i.times do
  a, b = gets.split(" ").map &:to_i
  a = Math.log10(a) * b
  b = a.floor
  a %= 1
  a = 10 ** a
  a *= 10
  a = a.floor
  puts "#{a / 10} #{a % 10} #{b}"
end
0