結果

問題 No.219 巨大数の概算
ユーザー 👑 tatt61880tatt61880
提出日時 2019-04-07 09:58:54
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 63 ms / 1,500 ms
コード長 567 bytes
コンパイル時間 2,726 ms
コンパイル使用メモリ 157,816 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-14 15:40:08
合計ジャッジ時間 9,327 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
4,348 KB
testcase_01 AC 55 ms
4,348 KB
testcase_02 AC 54 ms
4,352 KB
testcase_03 AC 53 ms
4,348 KB
testcase_04 AC 63 ms
4,352 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 7 ms
4,352 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 7 ms
4,352 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 55 ms
4,348 KB
testcase_11 AC 54 ms
4,348 KB
testcase_12 AC 54 ms
4,348 KB
testcase_13 AC 53 ms
4,348 KB
testcase_14 AC 54 ms
4,348 KB
testcase_15 AC 54 ms
4,352 KB
testcase_16 AC 54 ms
4,352 KB
testcase_17 AC 55 ms
4,348 KB
testcase_18 AC 53 ms
4,348 KB
testcase_19 AC 54 ms
4,348 KB
testcase_20 AC 53 ms
4,352 KB
testcase_21 AC 53 ms
4,352 KB
testcase_22 AC 54 ms
4,348 KB
testcase_23 AC 54 ms
4,352 KB
testcase_24 AC 55 ms
4,348 KB
testcase_25 AC 54 ms
4,348 KB
testcase_26 AC 54 ms
4,348 KB
testcase_27 AC 54 ms
4,352 KB
testcase_28 AC 54 ms
4,348 KB
testcase_29 AC 54 ms
4,352 KB
testcase_30 AC 52 ms
4,352 KB
testcase_31 AC 54 ms
4,348 KB
testcase_32 AC 55 ms
4,348 KB
testcase_33 AC 56 ms
4,352 KB
testcase_34 AC 54 ms
4,348 KB
testcase_35 AC 54 ms
4,352 KB
testcase_36 AC 54 ms
4,352 KB
testcase_37 AC 54 ms
4,352 KB
testcase_38 AC 52 ms
4,352 KB
testcase_39 AC 53 ms
4,352 KB
testcase_40 AC 53 ms
4,352 KB
testcase_41 AC 53 ms
4,352 KB
testcase_42 AC 57 ms
4,348 KB
testcase_43 AC 53 ms
4,356 KB
testcase_44 AC 54 ms
4,352 KB
testcase_45 AC 53 ms
4,352 KB
testcase_46 AC 53 ms
4,352 KB
testcase_47 AC 52 ms
4,352 KB
testcase_48 AC 54 ms
4,352 KB
testcase_49 AC 54 ms
4,352 KB
testcase_50 AC 53 ms
4,348 KB
testcase_51 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var N: int :: cui@input().toInt(&)
	for(1, N)
		var ss: [][]char :: cui@input().split(" ")
		var A: int :: ss[0].toInt(&)
		var B: int :: ss[1].toInt(&)
		do solve(A, B)
	end for
	
	func solve(A: int, B: int)
		var v: float :: B $ float * lib@log(10.0, A $ float)
		var Z: int :: v $ int
		do v :- Z $ float
		var X: int
		var Y: int
		for x(1, 9)
			for y(0, 9)
				if(lib@log(10.0, x $ float + 0.1 * (y + 1) $ float) >= v)
					do X :: x
					do Y :: y
					break x
				end if
			end for
		end for
		do cui@print("\{X} \{Y} \{Z}\n")
	end func
end func
0