結果

問題 No.219 巨大数の概算
ユーザー airis
提出日時 2015-05-29 23:27:46
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 1,500 ms
コード長 208 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2024-07-18 10:47:26
合計ジャッジ時間 5,718 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

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