結果
問題 |
No.219 巨大数の概算
|
ユーザー |
![]() |
提出日時 | 2015-10-31 01:20:13 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 59,652 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 06:12:19 |
合計ジャッジ時間 | 10,632 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 51 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin>>n; while (n--) { double a, b, x, y, z; cin>>a>>b; auto t=pow(10.0, modf(log10(a)*b, &z)); while (t<1) { t*=10; --z; } y=modf(t, &x); cout<<x<<" "<<int(10*y)<<" "<<z<<endl; } }