結果

問題 No.219 巨大数の概算
ユーザー roiti46roiti46
提出日時 2015-05-29 22:39:00
言語 Python2
(2.7.18)
結果
AC  
実行時間 63 ms / 1,500 ms
コード長 217 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 6,512 KB
最終ジャッジ日時 2023-09-25 13:34:40
合計ジャッジ時間 7,046 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
6,244 KB
testcase_01 AC 63 ms
6,428 KB
testcase_02 AC 61 ms
6,320 KB
testcase_03 AC 62 ms
6,244 KB
testcase_04 AC 56 ms
6,132 KB
testcase_05 AC 12 ms
6,248 KB
testcase_06 AC 16 ms
6,512 KB
testcase_07 AC 12 ms
6,104 KB
testcase_08 AC 16 ms
6,312 KB
testcase_09 AC 11 ms
6,364 KB
testcase_10 AC 63 ms
6,500 KB
testcase_11 AC 61 ms
6,260 KB
testcase_12 AC 61 ms
6,428 KB
testcase_13 AC 61 ms
6,360 KB
testcase_14 AC 61 ms
6,484 KB
testcase_15 AC 62 ms
6,244 KB
testcase_16 AC 63 ms
6,276 KB
testcase_17 AC 62 ms
6,280 KB
testcase_18 AC 62 ms
6,384 KB
testcase_19 AC 62 ms
6,424 KB
testcase_20 AC 61 ms
6,244 KB
testcase_21 AC 62 ms
6,332 KB
testcase_22 AC 62 ms
6,500 KB
testcase_23 AC 60 ms
6,440 KB
testcase_24 AC 62 ms
6,508 KB
testcase_25 AC 63 ms
6,264 KB
testcase_26 AC 61 ms
6,432 KB
testcase_27 AC 62 ms
6,424 KB
testcase_28 AC 62 ms
6,440 KB
testcase_29 AC 62 ms
6,440 KB
testcase_30 AC 62 ms
6,424 KB
testcase_31 AC 62 ms
6,436 KB
testcase_32 AC 63 ms
6,508 KB
testcase_33 AC 63 ms
6,388 KB
testcase_34 AC 62 ms
6,280 KB
testcase_35 AC 63 ms
6,380 KB
testcase_36 AC 62 ms
6,428 KB
testcase_37 AC 62 ms
6,500 KB
testcase_38 AC 61 ms
6,360 KB
testcase_39 AC 62 ms
6,444 KB
testcase_40 AC 63 ms
6,440 KB
testcase_41 AC 63 ms
6,264 KB
testcase_42 AC 63 ms
6,436 KB
testcase_43 AC 63 ms
6,420 KB
testcase_44 AC 61 ms
6,436 KB
testcase_45 AC 61 ms
6,504 KB
testcase_46 AC 63 ms
6,244 KB
testcase_47 AC 62 ms
6,508 KB
testcase_48 AC 62 ms
6,320 KB
testcase_49 AC 60 ms
6,316 KB
testcase_50 AC 62 ms
6,444 KB
testcase_51 AC 12 ms
6,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log10
N = int(raw_input())
for loop in xrange(N):
    A, B = map(int, raw_input().split())
    t = int(B * log10(A))
    a = "%.16f" % 10 ** (B * log10(A) - t)
    x, y = a[0], a[2]
    print x, y, t
0