結果

問題 No.219 巨大数の概算
コンテスト
ユーザー togatoga
提出日時 2015-08-21 00:49:20
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 108 ms / 1,500 ms
+ 154µs
コード長 227 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 88 ms
コンパイル使用メモリ 80,640 KB
実行使用メモリ 85,248 KB
最終ジャッジ日時 2026-07-17 19:24:41
合計ジャッジ時間 8,015 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import math
N = input()
ans = 1e30
for i in range(N):
    a,b = map(int, raw_input().split())
    P = math.log10(a) * b
    Z = int(math.log10(a) * b)
    XY = pow(10.0, (P - int(P)))
    print int(XY),int(int(XY * 10) % 10),Z
0