結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-21 00:49:20 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 1,500 ms |
| コード長 | 227 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 7,040 KB |
| 最終ジャッジ日時 | 2024-07-18 11:21:09 |
| 合計ジャッジ時間 | 5,447 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
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
togatoga