結果
問題 |
No.219 巨大数の概算
|
ユーザー |
![]() |
提出日時 | 2020-12-19 11:04:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 77,952 KB |
最終ジャッジ日時 | 2024-09-21 10:10:22 |
合計ジャッジ時間 | 9,826 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 46 WA * 5 |
ソースコード
n = int(input()) from math import log from bisect import bisect_left res = [-1.0] + [log(i/10,10) for i in range(1,101)] #print(res) for _ in range(n): a,b = map(int,input().split()) c = b*log(a,10) z = int(c) idx = bisect_left(res, c-z) - 1 if idx < 1: idx = 1 if idx >= 100: idx = 99 x = idx//10 y = idx%10 print(x,y,z)