結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-01 10:27:49 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 77,368 KB |
| 最終ジャッジ日時 | 2025-12-03 22:28:29 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 46 RE * 5 |
ソースコード
from math import log10
def solve():
A, B = map(int, raw_input().split())
x = B*log10(A)
n = int(x)
m = x-int(x)
i = 10
while log10(i/10.) < m:
i += 1
i -= 1
print str(i)[0], str(i)[1], n
for _ in xrange(input()):
solve()