結果

問題 No.219 巨大数の概算
ユーザー mamekinmamekin
提出日時 2015-07-25 23:24:14
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 708 bytes
コンパイル時間 840 ms
コンパイル使用メモリ 89,808 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 13:53:07
合計ジャッジ時間 9,730 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#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){
        double a, b;
        cin >> a >> b;

        double p = log(a) / log(10.0) * b;
        int z = (int) p;
        p -= z;
        int xy = (int) (pow(10.0, p) * 10);

        cout << (xy / 10) << ' ' << (xy % 10) << ' ' << z << endl;
    }

    return 0;
}
0