結果

問題 No.219 巨大数の概算
ユーザー lloyzlloyz
提出日時 2023-05-31 00:05:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 1,500 ms
コード長 248 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 78,228 KB
最終ジャッジ日時 2023-08-28 01:17:16
合計ジャッジ時間 10,670 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
77,836 KB
testcase_01 AC 110 ms
77,944 KB
testcase_02 AC 108 ms
77,940 KB
testcase_03 AC 106 ms
77,992 KB
testcase_04 AC 105 ms
77,724 KB
testcase_05 AC 72 ms
71,564 KB
testcase_06 AC 89 ms
77,020 KB
testcase_07 AC 73 ms
71,608 KB
testcase_08 AC 90 ms
76,768 KB
testcase_09 AC 72 ms
71,868 KB
testcase_10 AC 107 ms
77,924 KB
testcase_11 AC 106 ms
77,744 KB
testcase_12 AC 108 ms
77,916 KB
testcase_13 AC 105 ms
77,624 KB
testcase_14 AC 104 ms
77,692 KB
testcase_15 AC 107 ms
78,008 KB
testcase_16 AC 107 ms
77,620 KB
testcase_17 AC 108 ms
77,804 KB
testcase_18 AC 107 ms
77,624 KB
testcase_19 AC 110 ms
77,676 KB
testcase_20 AC 108 ms
77,900 KB
testcase_21 AC 109 ms
77,948 KB
testcase_22 AC 110 ms
78,228 KB
testcase_23 AC 108 ms
77,988 KB
testcase_24 AC 106 ms
77,656 KB
testcase_25 AC 107 ms
78,036 KB
testcase_26 AC 107 ms
78,032 KB
testcase_27 AC 107 ms
77,776 KB
testcase_28 AC 106 ms
77,924 KB
testcase_29 AC 106 ms
77,668 KB
testcase_30 AC 106 ms
77,844 KB
testcase_31 AC 106 ms
77,808 KB
testcase_32 AC 106 ms
77,848 KB
testcase_33 AC 106 ms
78,076 KB
testcase_34 AC 109 ms
77,928 KB
testcase_35 AC 110 ms
77,808 KB
testcase_36 AC 103 ms
77,804 KB
testcase_37 AC 105 ms
77,916 KB
testcase_38 AC 106 ms
77,900 KB
testcase_39 AC 108 ms
77,792 KB
testcase_40 AC 107 ms
77,660 KB
testcase_41 AC 108 ms
77,772 KB
testcase_42 AC 105 ms
77,864 KB
testcase_43 AC 106 ms
77,972 KB
testcase_44 AC 108 ms
77,808 KB
testcase_45 AC 107 ms
77,808 KB
testcase_46 AC 108 ms
77,860 KB
testcase_47 AC 107 ms
77,760 KB
testcase_48 AC 105 ms
77,892 KB
testcase_49 AC 105 ms
77,656 KB
testcase_50 AC 106 ms
77,812 KB
testcase_51 AC 73 ms
71,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log10
import sys
input = sys.stdin.readline

for _ in range(int(input())):
    a, b = map(int, input().split())
    c = b * log10(a)
    z = int(c)
    r = c - z
    n = int(10**(r + 1))
    x, y = divmod(n, 10)
    print(x, y, z)
0