結果

問題 No.219 巨大数の概算
ユーザー yaoshimaxyaoshimax
提出日時 2015-05-31 17:40:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 63 ms / 1,500 ms
コード長 236 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 6,736 KB
最終ジャッジ日時 2023-09-25 14:14:10
合計ジャッジ時間 6,235 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
6,572 KB
testcase_01 AC 60 ms
6,724 KB
testcase_02 AC 60 ms
6,580 KB
testcase_03 AC 61 ms
6,556 KB
testcase_04 AC 60 ms
6,548 KB
testcase_05 AC 11 ms
6,276 KB
testcase_06 AC 16 ms
6,344 KB
testcase_07 AC 11 ms
6,220 KB
testcase_08 AC 16 ms
6,376 KB
testcase_09 AC 12 ms
6,264 KB
testcase_10 AC 62 ms
6,580 KB
testcase_11 AC 61 ms
6,732 KB
testcase_12 AC 61 ms
6,632 KB
testcase_13 AC 60 ms
6,576 KB
testcase_14 AC 62 ms
6,560 KB
testcase_15 AC 61 ms
6,736 KB
testcase_16 AC 62 ms
6,664 KB
testcase_17 AC 62 ms
6,612 KB
testcase_18 AC 60 ms
6,732 KB
testcase_19 AC 61 ms
6,620 KB
testcase_20 AC 60 ms
6,576 KB
testcase_21 AC 62 ms
6,612 KB
testcase_22 AC 63 ms
6,516 KB
testcase_23 AC 62 ms
6,736 KB
testcase_24 AC 61 ms
6,732 KB
testcase_25 AC 62 ms
6,576 KB
testcase_26 AC 60 ms
6,568 KB
testcase_27 AC 61 ms
6,732 KB
testcase_28 AC 62 ms
6,564 KB
testcase_29 AC 62 ms
6,556 KB
testcase_30 AC 62 ms
6,612 KB
testcase_31 AC 61 ms
6,516 KB
testcase_32 AC 61 ms
6,724 KB
testcase_33 AC 61 ms
6,720 KB
testcase_34 AC 63 ms
6,672 KB
testcase_35 AC 62 ms
6,728 KB
testcase_36 AC 62 ms
6,620 KB
testcase_37 AC 61 ms
6,696 KB
testcase_38 AC 60 ms
6,628 KB
testcase_39 AC 61 ms
6,724 KB
testcase_40 AC 62 ms
6,556 KB
testcase_41 AC 61 ms
6,696 KB
testcase_42 AC 62 ms
6,692 KB
testcase_43 AC 60 ms
6,512 KB
testcase_44 AC 62 ms
6,564 KB
testcase_45 AC 61 ms
6,736 KB
testcase_46 AC 61 ms
6,672 KB
testcase_47 AC 61 ms
6,668 KB
testcase_48 AC 61 ms
6,512 KB
testcase_49 AC 61 ms
6,732 KB
testcase_50 AC 62 ms
6,660 KB
testcase_51 AC 12 ms
6,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N=int(raw_input())
for i in range(N):
    A,B=map(int,raw_input().split())
    v=B*math.log10(A)
    Z=int(v)
    p=pow(10,v-int(v))
    if( p<1 ):
        Z-=1
        p*=10
    X=int(p)
    Y=int((p-X)*10)
    print X,Y,Z
0