結果
問題 | No.219 巨大数の概算 |
ユーザー | pluto77 |
提出日時 | 2016-02-18 07:32:34 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 61 ms / 1,500 ms |
コード長 | 216 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,784 KB |
最終ジャッジ日時 | 2024-07-18 12:08:00 |
合計ジャッジ時間 | 5,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 51 |
ソースコード
#coding: utf-8 #yuki_219 import math n=int(raw_input()) for i in xrange(n): s=map(int,raw_input().split()) a=s[0] b=s[1] x=b*math.log(a,10) xt=int(x) y=x-xt z=10**y X=int(z) Y=int(z*10)%10 print X,Y,xt