結果

問題 No.219 巨大数の概算
ユーザー finefine
提出日時 2016-01-09 23:26:09
言語 Ruby
(3.3.0)
結果
AC  
実行時間 111 ms / 1,500 ms
コード長 204 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 15,868 KB
最終ジャッジ日時 2023-09-25 15:03:24
合計ジャッジ時間 9,094 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
15,868 KB
testcase_01 AC 108 ms
15,652 KB
testcase_02 AC 108 ms
15,736 KB
testcase_03 AC 107 ms
15,584 KB
testcase_04 AC 106 ms
15,528 KB
testcase_05 AC 80 ms
15,392 KB
testcase_06 AC 84 ms
15,440 KB
testcase_07 AC 80 ms
15,356 KB
testcase_08 AC 83 ms
15,540 KB
testcase_09 AC 80 ms
15,372 KB
testcase_10 AC 109 ms
15,644 KB
testcase_11 AC 109 ms
15,596 KB
testcase_12 AC 111 ms
15,840 KB
testcase_13 AC 109 ms
15,812 KB
testcase_14 AC 109 ms
15,664 KB
testcase_15 AC 107 ms
15,688 KB
testcase_16 AC 108 ms
15,668 KB
testcase_17 AC 108 ms
15,684 KB
testcase_18 AC 109 ms
15,864 KB
testcase_19 AC 109 ms
15,800 KB
testcase_20 AC 110 ms
15,692 KB
testcase_21 AC 108 ms
15,816 KB
testcase_22 AC 108 ms
15,852 KB
testcase_23 AC 109 ms
15,840 KB
testcase_24 AC 108 ms
15,860 KB
testcase_25 AC 109 ms
15,836 KB
testcase_26 AC 110 ms
15,440 KB
testcase_27 AC 109 ms
15,780 KB
testcase_28 AC 107 ms
15,596 KB
testcase_29 AC 108 ms
15,668 KB
testcase_30 AC 107 ms
15,560 KB
testcase_31 AC 110 ms
15,692 KB
testcase_32 AC 107 ms
15,788 KB
testcase_33 AC 109 ms
15,592 KB
testcase_34 AC 109 ms
15,668 KB
testcase_35 AC 109 ms
15,640 KB
testcase_36 AC 108 ms
15,696 KB
testcase_37 AC 107 ms
15,692 KB
testcase_38 AC 107 ms
15,648 KB
testcase_39 AC 107 ms
15,600 KB
testcase_40 AC 108 ms
15,660 KB
testcase_41 AC 106 ms
15,632 KB
testcase_42 AC 111 ms
15,824 KB
testcase_43 AC 109 ms
15,800 KB
testcase_44 AC 108 ms
15,856 KB
testcase_45 AC 109 ms
15,712 KB
testcase_46 AC 109 ms
15,824 KB
testcase_47 AC 108 ms
15,668 KB
testcase_48 AC 107 ms
15,568 KB
testcase_49 AC 107 ms
15,864 KB
testcase_50 AC 108 ms
15,644 KB
testcase_51 AC 78 ms
15,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

include Math
gets.to_i.times{
    a,b = gets.split.map(&:to_i)
    tmp = b * log10(a)
    z = tmp.floor
    tmp = ((10 ** (tmp - z)) * 10).floor
    x,y = tmp / 10,tmp % 10
    puts "#{x} #{y} #{z}"
    }
0