結果

問題 No.219 巨大数の概算
ユーザー cielciel
提出日時 2017-10-20 01:37:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 121 ms / 1,500 ms
コード長 187 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,772 KB
最終ジャッジ日時 2023-09-25 15:40:31
合計ジャッジ時間 9,481 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
15,664 KB
testcase_01 AC 116 ms
15,652 KB
testcase_02 AC 118 ms
15,552 KB
testcase_03 AC 116 ms
15,552 KB
testcase_04 AC 117 ms
15,624 KB
testcase_05 AC 81 ms
15,428 KB
testcase_06 AC 88 ms
15,380 KB
testcase_07 AC 82 ms
15,548 KB
testcase_08 AC 86 ms
15,472 KB
testcase_09 AC 82 ms
15,340 KB
testcase_10 AC 119 ms
15,520 KB
testcase_11 AC 119 ms
15,588 KB
testcase_12 AC 118 ms
15,456 KB
testcase_13 AC 118 ms
15,588 KB
testcase_14 AC 117 ms
15,696 KB
testcase_15 AC 119 ms
15,772 KB
testcase_16 AC 118 ms
15,648 KB
testcase_17 AC 119 ms
15,508 KB
testcase_18 AC 119 ms
15,512 KB
testcase_19 AC 119 ms
15,540 KB
testcase_20 AC 119 ms
15,536 KB
testcase_21 AC 121 ms
15,576 KB
testcase_22 AC 118 ms
15,440 KB
testcase_23 AC 117 ms
15,660 KB
testcase_24 AC 118 ms
15,516 KB
testcase_25 AC 117 ms
15,460 KB
testcase_26 AC 121 ms
15,664 KB
testcase_27 AC 118 ms
15,652 KB
testcase_28 AC 121 ms
15,500 KB
testcase_29 AC 119 ms
15,452 KB
testcase_30 AC 117 ms
15,608 KB
testcase_31 AC 120 ms
15,736 KB
testcase_32 AC 120 ms
15,736 KB
testcase_33 AC 116 ms
15,632 KB
testcase_34 AC 115 ms
15,536 KB
testcase_35 AC 115 ms
15,620 KB
testcase_36 AC 114 ms
15,456 KB
testcase_37 AC 118 ms
15,444 KB
testcase_38 AC 120 ms
15,572 KB
testcase_39 AC 116 ms
15,696 KB
testcase_40 AC 116 ms
15,628 KB
testcase_41 AC 117 ms
15,580 KB
testcase_42 AC 117 ms
15,608 KB
testcase_43 AC 115 ms
15,444 KB
testcase_44 AC 120 ms
15,688 KB
testcase_45 AC 116 ms
15,764 KB
testcase_46 AC 115 ms
15,748 KB
testcase_47 AC 116 ms
15,604 KB
testcase_48 AC 115 ms
15,524 KB
testcase_49 AC 116 ms
15,552 KB
testcase_50 AC 117 ms
15,668 KB
testcase_51 AC 81 ms
15,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t=[0]*10+(10..100).map{|i|Math.log10(i)}
gets.to_i.times{
	a,b=gets.split.map &:to_i
	r=Math.log10(a)*b
	z=r.to_i
	r-=z-1
	x=(0..100).bsearch{|i|t[i]>r}-1
	puts '%d %d %d'%[x/10,x%10,z]
}
0