結果

問題 No.219 巨大数の概算
ユーザー 👑 yumechiyumechi
提出日時 2015-06-05 22:00:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 100 ms / 1,500 ms
コード長 399 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 10,676 KB
最終ジャッジ日時 2023-09-25 14:17:54
合計ジャッジ時間 7,989 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
10,460 KB
testcase_01 AC 94 ms
10,592 KB
testcase_02 AC 96 ms
10,572 KB
testcase_03 AC 93 ms
10,568 KB
testcase_04 AC 81 ms
10,416 KB
testcase_05 AC 16 ms
8,072 KB
testcase_06 AC 22 ms
8,660 KB
testcase_07 AC 16 ms
7,956 KB
testcase_08 AC 22 ms
8,800 KB
testcase_09 AC 17 ms
7,912 KB
testcase_10 AC 96 ms
10,496 KB
testcase_11 AC 98 ms
10,460 KB
testcase_12 AC 95 ms
10,548 KB
testcase_13 AC 95 ms
10,572 KB
testcase_14 AC 96 ms
10,448 KB
testcase_15 AC 94 ms
10,500 KB
testcase_16 AC 95 ms
10,508 KB
testcase_17 AC 96 ms
10,448 KB
testcase_18 AC 94 ms
10,456 KB
testcase_19 AC 95 ms
10,484 KB
testcase_20 AC 96 ms
10,500 KB
testcase_21 AC 95 ms
10,484 KB
testcase_22 AC 97 ms
10,620 KB
testcase_23 AC 97 ms
10,448 KB
testcase_24 AC 98 ms
10,504 KB
testcase_25 AC 97 ms
10,568 KB
testcase_26 AC 97 ms
10,452 KB
testcase_27 AC 96 ms
10,572 KB
testcase_28 AC 97 ms
10,452 KB
testcase_29 AC 96 ms
10,644 KB
testcase_30 AC 96 ms
10,572 KB
testcase_31 AC 97 ms
10,432 KB
testcase_32 AC 96 ms
10,488 KB
testcase_33 AC 98 ms
10,432 KB
testcase_34 AC 96 ms
10,504 KB
testcase_35 AC 95 ms
10,572 KB
testcase_36 AC 98 ms
10,432 KB
testcase_37 AC 95 ms
10,464 KB
testcase_38 AC 97 ms
10,456 KB
testcase_39 AC 100 ms
10,452 KB
testcase_40 AC 97 ms
10,460 KB
testcase_41 AC 98 ms
10,484 KB
testcase_42 AC 97 ms
10,460 KB
testcase_43 AC 95 ms
10,464 KB
testcase_44 AC 94 ms
10,632 KB
testcase_45 AC 96 ms
10,616 KB
testcase_46 AC 97 ms
10,676 KB
testcase_47 AC 96 ms
10,612 KB
testcase_48 AC 96 ms
10,564 KB
testcase_49 AC 97 ms
10,640 KB
testcase_50 AC 95 ms
10,508 KB
testcase_51 AC 16 ms
7,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
li = [list(map(int, input().split())) for _ in range(N)]
for i in range(N):
	t = li[i][1] * math.log10(li[i][0])
	Z = int(t)
	f = t - Z
	X, Y = 0, 0
	for i in range(1, 11):
		if math.log10(i) > f:
			X = i-1
			break
	for j in range(0, 11):
		if j == 0:
			if math.log10(X) > f:
				break
		else:
			if math.log10(X + j / 10) > f:
				Y = j - 1
				break
	print(X, Y, Z)
0