結果
問題 |
No.219 巨大数の概算
|
ユーザー |
![]() |
提出日時 | 2015-05-29 23:15:31 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 55 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 27,876 KB |
最終ジャッジ日時 | 2024-07-06 11:56:17 |
合計ジャッジ時間 | 5,648 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 1 |
other | TLE * 1 -- * 50 |
ソースコード
n = int(raw_input()) for i in range(n): a,b = map(int ,raw_input().split()) res = 1 while b > 0: if b & 1: res = res * a a = a * a b >>= 1 s = str(res) print s[0] ,s[1], len(s)-1