結果
問題 |
No.219 巨大数の概算
|
ユーザー |
|
提出日時 | 2016-11-01 10:27:49 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 00:38:59 |
合計ジャッジ時間 | 8,708 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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()