結果

問題 No.219 巨大数の概算
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-25 11:02:43
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 55 ms / 1,500 ms
コード長 523 bytes
コンパイル時間 2,062 ms
コンパイル使用メモリ 147,160 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-14 16:27:36
合計ジャッジ時間 8,140 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	for(1, n)
		var a: int :: cui@inputInt()
		var b: int :: cui@inputInt()
		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 xx(1, 9)
			for yy(0, 9)
				if(lib@log(10.0, xx $ float + 0.1 * (yy + 1) $ float) >= v)
					do x :: xx
					do y :: yy
					break xx
				end if
			end for
		end for
		do cui@print("\{x} \{y} \{z}\n")
	end func
end func
0