結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-25 23:26:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 1,500 ms |
| コード長 | 730 bytes |
| コンパイル時間 | 835 ms |
| コンパイル使用メモリ | 91,120 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 11:19:58 |
| 合計ジャッジ時間 | 4,793 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
using namespace std;
int main()
{
int n;
cin >> n;
while(--n >= 0){
long double a, b;
cin >> a >> b;
long double p = log(a) / log(10.0) * b;
long long z = (long long) p;
p -= z;
int xy = (int) (pow(10.0, p) * 10);
cout << (xy / 10) << ' ' << (xy % 10) << ' ' << z << endl;
}
return 0;
}