結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-10-31 02:15:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 634 ms |
| コンパイル使用メモリ | 60,324 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-13 06:13:23 |
| 合計ジャッジ時間 | 10,341 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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>10) {
t*=0.1;
++z;
}
while (t<1) {
t*=10;
--z;
}
y=modf(t, &x);
cout<<x<<" "<<int(10*y)<<" "<<z<<endl;
}
}
hogeover30