結果
問題 | No.219 巨大数の概算 |
ユーザー | 👑 rin204 |
提出日時 | 2022-07-04 14:59:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 140 ms / 1,500 ms |
コード長 | 328 bytes |
コンパイル時間 | 413 ms |
コンパイル使用メモリ | 82,280 KB |
実行使用メモリ | 77,944 KB |
最終ジャッジ日時 | 2024-12-14 04:51:27 |
合計ジャッジ時間 | 10,056 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 51 |
ソースコード
from math import log10 def solve(): a, b = map(int, input().split()) c = log10(a) * b z = int(c) c -= z for i in range(11, 101): if log10(i / 10) >= c: i -= 1 x = i // 10 y = i % 10 break print(x, y, z) for _ in range(int(input())): solve()