結果

問題 No.219 巨大数の概算
ユーザー airisairis
提出日時 2015-05-29 23:27:46
言語 Python2
(2.7.18)
結果
AC  
実行時間 62 ms / 1,500 ms
コード長 208 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 6,636 KB
最終ジャッジ日時 2023-09-25 13:43:58
合計ジャッジ時間 6,381 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
6,456 KB
testcase_01 AC 59 ms
6,552 KB
testcase_02 AC 60 ms
6,396 KB
testcase_03 AC 60 ms
6,464 KB
testcase_04 AC 60 ms
6,632 KB
testcase_05 AC 12 ms
6,584 KB
testcase_06 AC 16 ms
6,388 KB
testcase_07 AC 12 ms
6,216 KB
testcase_08 AC 16 ms
6,548 KB
testcase_09 AC 12 ms
6,588 KB
testcase_10 AC 60 ms
6,392 KB
testcase_11 AC 59 ms
6,624 KB
testcase_12 AC 60 ms
6,412 KB
testcase_13 AC 59 ms
6,380 KB
testcase_14 AC 60 ms
6,612 KB
testcase_15 AC 61 ms
6,408 KB
testcase_16 AC 60 ms
6,412 KB
testcase_17 AC 60 ms
6,388 KB
testcase_18 AC 59 ms
6,556 KB
testcase_19 AC 61 ms
6,376 KB
testcase_20 AC 60 ms
6,412 KB
testcase_21 AC 60 ms
6,380 KB
testcase_22 AC 59 ms
6,384 KB
testcase_23 AC 59 ms
6,384 KB
testcase_24 AC 61 ms
6,524 KB
testcase_25 AC 61 ms
6,384 KB
testcase_26 AC 61 ms
6,528 KB
testcase_27 AC 59 ms
6,584 KB
testcase_28 AC 60 ms
6,456 KB
testcase_29 AC 60 ms
6,636 KB
testcase_30 AC 60 ms
6,468 KB
testcase_31 AC 60 ms
6,636 KB
testcase_32 AC 59 ms
6,444 KB
testcase_33 AC 60 ms
6,612 KB
testcase_34 AC 62 ms
6,556 KB
testcase_35 AC 59 ms
6,388 KB
testcase_36 AC 60 ms
6,388 KB
testcase_37 AC 61 ms
6,632 KB
testcase_38 AC 59 ms
6,560 KB
testcase_39 AC 61 ms
6,636 KB
testcase_40 AC 60 ms
6,460 KB
testcase_41 AC 60 ms
6,460 KB
testcase_42 AC 60 ms
6,520 KB
testcase_43 AC 59 ms
6,388 KB
testcase_44 AC 60 ms
6,564 KB
testcase_45 AC 60 ms
6,552 KB
testcase_46 AC 60 ms
6,376 KB
testcase_47 AC 59 ms
6,460 KB
testcase_48 AC 59 ms
6,456 KB
testcase_49 AC 59 ms
6,388 KB
testcase_50 AC 60 ms
6,612 KB
testcase_51 AC 11 ms
6,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import log
n = input()
for i in xrange(n):
  a, b = map(int, raw_input().split())
  z = int(b * log(a, 10))
  xy = 10 ** (b * log(a, 10) - z)
  x = int(xy)
  y = int((xy - x) * 10)
  print x, y, z

0